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?

The mindSk and target is set/over written from the Player->Settings. And for me the Manifest file was never overwritten.

Still having this issue. SUPER ANNOYING. ANY HELP@GreatBigJerk