preferExternal Android Manifest setting

I had a recent app rejected due to the fact that I had a setting called preferExternal set in the AndroidManifest.

Does anyone have suggestions of how to remove this entry ? I tried editing the xml from within the apk but it looked like a binary file.

In Android section you have:

Install Location Specifies application install location on the device (for detailed information, please refer to App install location  |  Android Developers).

Automatic: Let OS decide. User will be able to move the app back and forth.

Prefer External: Install app to external storage (SD-Card) if possible. OS does not guarantee that will be possible; if not, the app will be installed to internal memory.

Force Internal: Force app to be installed into internal memory. User will be unable to move the app to external storage.

Found a workaround, went to C:\Program Files\Unity\Hub\Editor\2022.2.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\Apk\LauncherManifest.xml and changed the default config which the Unity uses before merging with the custom one. Woah, the APK uploaded, success!

The way you are supposed to edit the manifest is by adding your own AndroidManifest.xml to “Plugins/Android/AndroidManifest.xml” in your project, and that one will get included instead of the default.

You can find the default template at “C:\Program Files\Unity\Editor\Data\PlaybackEngines\androidplayer\AndroidManifest.xml” or whatever your equivalent directory for your Unity install is.

The help page for this crap is here:
http://unity3d.com/support/documentation/Manual/Plugins.html
(but the manifest bits are all buried and hard to find)