Also I wondering why I get Pairing Consent status on Android Mobile Phone ??
Seems like Pairing Consent should be provided on Android,Things device ... Am I right ? On Monday, January 4, 2021 at 6:58:07 PM UTC+2 Denis Kotov wrote: > Here StackTrace fro the error: > ``` > java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission: Neither > user 15005 nor current process has android.permission.BLUETOOTH_PRIVILEGED. > at android.os.Parcel.createException(Parcel.java:1953) > at android.os.Parcel.readException(Parcel.java:1921) > at android.os.Parcel.readException(Parcel.java:1871) > at > android.bluetooth.IBluetooth$Stub$Proxy.setPairingConfirmation(IBluetooth.java:1861) > at > android.bluetooth.BluetoothDevice.setPairingConfirmation(BluetoothDevice.java:1389) > at > crc64a34fe476f2f70be2.BleController_BroadcastReceiverCallback.n_onReceive(Native > > Method) > at > crc64a34fe476f2f70be2.BleController_BroadcastReceiverCallback.onReceive(BleController_BroadcastReceiverCallback.java:29) > at > android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1533) > at > android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown > > Source:2) > at android.os.Handler.handleCallback(Handler.java:907) > at android.os.Handler.dispatchMessage(Handler.java:105) > at android.os.Looper.loop(Looper.java:216) > at android.app.ActivityThread.main(ActivityThread.java:7625) > at java.lang.reflect.Method.invoke(Native Method) > at > com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987) > > ``` > > On Monday, January 4, 2021 at 6:55:09 PM UTC+2 Denis Kotov wrote: > >> For crashing on SetpairingConfirmation it seems like it happens due to: >> ``` >> Exception of type 'System.NotImplementedException' was thrown >> ``` >> But it is strange because I checked version of Sdk: >> ``` >> if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat) >> ``` >> >> On Monday, January 4, 2021 at 6:41:34 PM UTC+2 Denis Kotov wrote: >> >>> >>> Hi all, >>> >>> By some reason I got in my Android Application `*extraPairingVariant*` >>> = `3` that is relate to `PairingVariantConsent` ... >>> >>> But I did not understand why because code is run on Phone device >>> Android Device: HUAWEI P10 Plus >>> My code looks pretty similar to this >>> https://stackoverflow.com/a/36399113/5157245 >>> >>> Also when I try to `*device.SetPairingConfirmation(true);*` I get error >>> `*PRIVILEGED*`, but all accesses I have set in manifest: `*Bluetooth*` >>> and `*BluetoothAdmin*` >>> >>> Have somebody such issues ? >>> >> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/a5f70402-a6ba-488f-8d7d-b641f9499d9en%40googlegroups.com.

