Forum Discussion
GamerRoman22
1 year agoExplorer
FAIL_FORBIDDEN_PERMISSION Developer Hub error READ_PHONE_STATE Error
I have no other errors besides this one when I upload my build to the alpha production stage. The error says this: FAIL_FORBIDDEN_PERMISSION The upload could not be completed because your application...
- 1 year ago
Yes, there seems to be a change on Unity 2022.3.xx in one of the latest lts version that seems to add that permision.
To fix it you can modify for AndroidManifest in your project (search for it) and at the bottom, just before the </manifest> tag, add the following line:
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />you will need to add the tools at the top of the manifest... like this:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" xmlns:tools="http://schemas.android.com/tools">with that change it will remove that permision at build time.
Digibix
1 year agoStart Partner
Yes, there seems to be a change on Unity 2022.3.xx in one of the latest lts version that seems to add that permision.
To fix it you can modify for AndroidManifest in your project (search for it) and at the bottom, just before the </manifest> tag, add the following line:
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
you will need to add the tools at the top of the manifest... like this:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto"
xmlns:tools="http://schemas.android.com/tools">
with that change it will remove that permision at build time.
GamerRoman22
1 year agoExplorer
IF ANYONE NEEDS TO KNOW: THE CORRECT MANIFEST IS LOCATED HERE: APPNAME\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main
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
- 2 years ago
- 10 months ago