stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.64k stars 957 forks source link

Android 13+ Bluetooth permission error #2348

Open Basewq opened 5 months ago

Basewq commented 5 months ago

Release Type: Official Release

Version: 4.1+

Platform(s): Android 13/API 33

Describe the bug Trying to run a game on an Android device/emulator with Android 13/API 33 or above will throw the exception like: Java.Lang.RuntimeException: 'Unable to start activity ComponentInfo: java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@5a253c89: AdapterService getBondedDevices'

Additional context This issue was made so people searching this error message can see this page since it had not been officially logged previously.

Workaround is described in this discussion https://github.com/stride3d/stride/discussions/1657 to declare bluetooth permissions.

The solution requires updating Silk library to the version when this issue is closed

Once updated this bluetooth permission should no longer be needed.

Feralnex commented 1 month ago

I've got it on Android 12 too