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?