Forum Discussion
UltimaVYT
2 years agoExplorer
Keep Getting error called android.permission.Read_phone_state.
IF ANYONE KNOWS A FIX COMMENT ON THIS POST
jakobanarkylabs
2 years agoExplorer
It seems that the Unity Editor, from version 2022.3.39 and onwards, have started automatically adding some new permissions to the AndroidManifest.xml. See this post:
https://discussions.unity.com/t/unnecessary-additional-permissions-in-lts-unity-versions-2022-3-39f1/1496218
I had the same problem when trying 2022.3.40. Haven't yet tried 2022.3.41.
Maybe the best way at the moment would be to manually specify in the custom AndroidManifest.xml that the permission android.permission.READ_PHONE_STATE should be removed:
<uses-permission tools:node="remove" android:name="android.permission.READ_PHONE_STATE"/>Make sure that the manifest is including tools:
xmlns:tools="http://schemas.android.com/tools"
- jiea2 years agoExplorer
This helped, tnx.
I just don't get how when I export gradle project and navigate to AndroidManifest, there is no this permission defined, but in the generated APK from it, the permission is present.
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
- 3 years ago
- 12 months ago