My app requires special permissions that my app doesn’t even use for
ex:
identity find accounts on the device
read phone status and identity modify or delete the contents of your USB storage
view Wi-Fi connections
read phone status and identity
My app doesn’t do any of this, how do i remove these permissions?
You can create an override file for the Requirements section of the XML with just the ones you want. Create a file in your project’s Build/Android called ManifestRequirementsOverride.txt. Everything after the <!-- Requirements → up to </manifest> in AndroidManifest.xml will be replaced with whatever you put in there.
Should I make ManifestRequirementsOverride.txt file completely empty to remove all permissions, or it has to contain something specific in order to work?
Don’t work anymore ? I tried now on 4.21.2 version and still have the issues “need permissions read_phone_State” but i don’t care about this permissions
I had a similar issue of my own. I’m packaging for the Oculus Go. However, the AndroidManifest.xml was requesting access to the camera. This prevents an upload to the Oculus Go store.
Hey Guys, I had the same problem and fixed it now with some different site informations.
What should you do:
1- Go to your project forder, then build - android:
Mycase: C:\Users\pc\Desktop\uegame\SpeedBall_MobileR\Build\Android
2- Add ManifestRequirementsOverride.txt
3-Inside ManifestRequirementsOverride.txt, I wrote the necessary permissions only, without adding beginning requirements and the last manifest
4-Just whatever you need, keep them there, then I realize that My application doesn’t want these permissions anymore now
5- Then Thank me
I hope it will make you save some time…