I'm using BugSense in by application to get error reports. Today I got this stack trace.
java.lang.SecurityException: Calling uid 10104 gave packageandroid which is owned by uid 1000
at android.os.Parcel.readException(Parcel.java:1322)
at android.os.Parcel.readException(Parcel.java:1276)
at android.bluetooth.IBluetooth$Stub$Proxy.disable(IBluetooth.java:632)
at android.bluetooth.BluetoothAdapter.disable(BluetoothAdapter.java:569)
That is my application is trying to disable Bluetooth after asking the user. The code is executed in a handler if that matters.
I have Bluetooth admin permission set:
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
So what I'm I doing wrong?