Forum Discussion
GamerRoman22
2 years 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...
- 2 years 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
2 years agoMember
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.
- GamerRoman222 years agoExplorer
This did not work. Every time I try to edit the manifest files, (there are 13 of them) the files regenerate or restore themselves to their original state. I have looked at all of them.
Thank you for responding so quickly.
- GamerRoman222 years agoExplorer
Never mind it worked (I was on the wrong file) I have been trying to get this game up for so long... So I just wanted to thank you so much for this. I am so happy that I can finally just make my game.
Thank you so much for your quick response and helpful answer.
- GamerRoman222 years agoExplorer
IF ANYONE NEEDS TO KNOW: THE CORRECT MANIFEST IS LOCATED HERE: APPNAME\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main
- Chill_noob722 years agoHonored Guest
i can't find the Android manifest in my project where is it??? can you send me a screen shot
- GamerRoman222 years agoExplorer
I said above the path is: APPNAME\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\src\main
- Chill_noob722 years agoHonored Guest
i still cant find it u have a screenshot?
- Procat2 years agoHonored Guest
help?
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
- 4 years ago
- 8 months ago
- 3 years ago