Skip to content

Fix the issue where gatt.disconnect() may throw a SecurityException#621

Merged
philips77 merged 1 commit intonordicsemi:mainfrom
LuoPeiQin:main
Jun 5, 2025
Merged

Fix the issue where gatt.disconnect() may throw a SecurityException#621
philips77 merged 1 commit intonordicsemi:mainfrom
LuoPeiQin:main

Conversation

@LuoPeiQin
Copy link
Copy Markdown
Contributor

@LuoPeiQin LuoPeiQin commented Jun 5, 2025

Fix the following Firebase crash:

Fatal Exception: java.lang.SecurityException: Need BLUETOOTH_PRIVILEGED permission: Neither user 10049 nor current process has android.permission.BLUETOOTH_PRIVILEGED.
       at android.os.Parcel.createExceptionOrNull(Parcel.java:2439)
       at android.os.Parcel.createException(Parcel.java:2423)
       at android.os.Parcel.readException(Parcel.java:2406)
       at android.os.Parcel.readException(Parcel.java:2348)
       at android.bluetooth.IBluetoothGatt$Stub$Proxy.clientDisconnect(IBluetoothGatt.java:2526)
       at android.bluetooth.BluetoothGatt.disconnect(BluetoothGatt.java:1005)
       at no.nordicsemi.android.ble.BleManagerHandler.internalDisconnect(BleManagerHandler.java:813)
       at no.nordicsemi.android.ble.BleManagerHandler.onRequestTimeout(BleManagerHandler.java:1717)
       at no.nordicsemi.android.ble.TimeoutableRequest.lambda$notifyStarted$0(TimeoutableRequest.java:230)
       at no.nordicsemi.android.ble.BleManagerHandler$3.run(BleManagerHandler.java:1738)
       at java.util.TimerThread.mainLoop(Timer.java:562)
       at java.util.TimerThread.run(Timer.java:512)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 5, 2025

CLA assistant check
All committers have signed the CLA.

@philips77 philips77 merged commit 5d2abcd into nordicsemi:main Jun 5, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants