Forum Discussion
harrz-s
5 years agoExplorer
SecurityException when accessing Bluetooth API
I'm trying to access the Bluetooth API within a Unity project, but I end up with a SecurityException: 01-24 20:40:47.280 26380 26405 E Unity : AndroidJavaException: java.lang.SecurityException: N...
harrz-s
5 years agoExplorer
First of all, I could finally identify the problem by exporting the Gradle project via File - Build Settings... and selecting Export Project. In the resulting project folder, when I navigated to
After a lot of testing around, it seems that I had some sort of strange interaction between the Oculus Integration Asset and the new Unity XR Plugin Management together with the Oculus XR Plugin. The error did not occur with version 1.4.3 of the Oculus XR Plugin, but with any higher version.
I wanted to compile a sample project and open a bug report, but now I cannot reproduce the error anymore. Let's see whether the bug decides to come back at some point.
unityLibrary\src\main and opened up AndroidManifest.xml, I could see that the permission android.permission.BLUETOOTH had been stripped out, which explains the error message.After a lot of testing around, it seems that I had some sort of strange interaction between the Oculus Integration Asset and the new Unity XR Plugin Management together with the Oculus XR Plugin. The error did not occur with version 1.4.3 of the Oculus XR Plugin, but with any higher version.
I wanted to compile a sample project and open a bug report, but now I cannot reproduce the error anymore. Let's see whether the bug decides to come back at some point.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 1 month ago
- 3 months ago
- 4 months ago