SenseGlove-Unity
SenseGlove-Unity copied to clipboard
App crashing on Oculus Quest 2
When using the Senseglove integration with the new API Target 32 (new Minimum Requirement for the Oculus Store) the app is crashing due to Bluetooth permissions.
2023-09-11 15:29:18.380 4961-5195 AndroidRuntime pid-4961 E FATAL EXCEPTION: Thread-6
Process: com.ExtendRobotics.AMAS.quest, PID: 4961
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@264482b9: AdapterService getBondedDevices
at android.os.Parcel.createExceptionOrNull(Parcel.java:2426)
at android.os.Parcel.createException(Parcel.java:2410)
at android.os.Parcel.readException(Parcel.java:2393)
at android.os.Parcel.readException(Parcel.java:2335)
at android.bluetooth.IBluetooth$Stub$Proxy.getBondedDevices(IBluetooth.java:3077)
at android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.java:2491)
at com.senseglove.sgconnect.BluetoothPorts.GetSGDevices(BluetoothPorts.java:64)
at com.senseglove.sgconnect.DeviceScanner.UpdateConnections(DeviceScanner.java:212)
at com.senseglove.sgconnect.DeviceScanner.RunScanner(DeviceScanner.java:147)
at com.senseglove.sgconnect.DeviceScanner$1.run(DeviceScanner.java:54)
at java.lang.Thread.run(Thread.java:920)
Setup :
Unity : 2021.3.14f1