- Home /
How do I get Unity to stop making changes to AndroidManifest.xml?
Okay, so I have a custom manifest file in assets/Plugins/Android/AndroidManifest.xml
Our publisher mentioned that we had a permission request for the camera in our manifest. We didn't have on in our custom manifest file, so this was pretty confusing. I then decoded the APK using apktool, and sure enough the camera permission was added.
After some monkeying around, I found that if I set android:required="false", that will prevent the permission from being added, and the tag will be left alone.
Our publisher also requires that we set android:minSdkVersion and android:targetSdkVersion. When we build, Unity removes the entire uses-sdk tag!
How the hell do we stop Unity from gutting our manifests!? At the very least, we need to be able to add something to the manifest and keep it there. Is there some build setting we can check, or a config file we can change?
Answer by gvenez · Aug 14, 2013 at 05:09 AM
The mindSk and target is set/over written from the Player->Settings. And for me the Manifest file was never overwritten.
So what is the point of a custom Android manifest. I don't think it works that way. Thanks nyways
Answer by NOGOODGAMES · Aug 04, 2020 at 10:50 PM
Still having this issue. SUPER ANNOYING. ANY HELP@GreatBigJerk
I have literally searched everywhere to no avail!!!!!!