Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need BLUETOOTH PRIVILEGED permission #14

Open
fbiego opened this issue Aug 11, 2020 · 3 comments
Open

Need BLUETOOTH PRIVILEGED permission #14

fbiego opened this issue Aug 11, 2020 · 3 comments

Comments

@fbiego
Copy link

fbiego commented Aug 11, 2020

D/HidPeripheral: Need BLUETOOTH PRIVILEGED permission: Neither user 10152 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
    java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission: Neither user 10152 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
        at android.os.Parcel.readException(Parcel.java:1683)
        at android.os.Parcel.readException(Parcel.java:1636)
        at android.bluetooth.IBluetooth$Stub$Proxy.setPairingConfirmation(IBluetooth.java:1616)
        at android.bluetooth.BluetoothDevice.setPairingConfirmation(BluetoothDevice.java:1273)
        at jp.kshoji.blehid.HidPeripheral$5.onConnectionStateChange(HidPeripheral.java:609)
        at android.bluetooth.BluetoothGattServer$1.onServerConnectionState(BluetoothGattServer.java:105)
        at android.bluetooth.IBluetoothGattServerCallback$Stub.onTransact(IBluetoothGattServerCallback.java:82)
        at android.os.Binder.execTransact(Binder.java:570)

Android docs says 'Not for use by third-party applications.'
BLUETOOTH PRIVILEGED

How do I make it work?

@tobiasBora
Copy link

Not sure, but this suggest that it's possible to add it via adb #8

@iroidzeel
Copy link

Im trying to use this app but nothing happens no crash logs and nothing how did you get this BLUETOOTH PRIVILEGED issue?

it is working now for you?

@fbiego
Copy link
Author

fbiego commented Jan 31, 2021

happens during pairing because setPairingConfirmation(true) requires BLUETOOTH PRIVILEGED.
Even after granting the permission by installing as a system app, pairing fails #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants