AppRTCBluetoothManager crash

On Android 12 our app crashes whenever a sendbird call is initialized. And it is all related to sendbird. We don’t even use bluetooth throughout the app. Is the BLUETOOTH_CONNECT permission now a requirement for calls? Do we have to adapt our permission requests to adapt for this or is this a bug?

Fatal Exception: java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@f277b06b: AdapterService getBondedDevices
       at android.os.Parcel.createExceptionOrNull(Parcel.java:2437)
       at android.os.Parcel.createException(Parcel.java:2421)
       at android.os.Parcel.readException(Parcel.java:2404)
       at android.os.Parcel.readException(Parcel.java:2346)
       at android.bluetooth.IBluetooth$Stub$Proxy.getBondedDevices(IBluetooth.java:5111)
       at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:3731)
       at com.sendbird.calls.internal.pc.AppRTCBluetoothManager.logBluetoothAdapterInfo(AppRTCBluetoothManager.kt:299)
       at com.sendbird.calls.internal.pc.AppRTCBluetoothManager.start(AppRTCBluetoothManager.kt:121)
       at com.sendbird.calls.internal.pc.AppRTCAudioManager.start(AppRTCAudioManager.kt:173)
       at com.sendbird.calls.internal.pc.PeerConnectionClient.startAudioManager(PeerConnectionClient.kt:477)
       at com.sendbird.calls.DirectCall$startAudioManager$1.invoke(DirectCall.kt:1545)
       at com.sendbird.calls.DirectCall$startAudioManager$1.invoke(DirectCall.kt:109)
       at com.sendbird.calls.SendBirdCall$runOnUIThread$1.run(SendBirdCall.kt:90)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8582)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:563)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)

Hi @George_Fodor , Thank you for the report. I’ll look into it and try to release hotfix version and guidance.

Regards,
Nathan

1 Like

Hi @George_Fodor, we’ve just released calls 1.9.0 version which include the bug fix you reported. Now, SDK will not cause a crash even if the app haven’t acquired BLUETOOTH_CONNECT permission.

Please update your SDK version and feel free to reach out to me if you still have problems.

Regards,
Nathan.

1 Like