1
\$\begingroup\$

My game has a lot of unnecessary permissions added to it, I suspect some are coming from plugins and some from Unity. I've looked at all the AndroidManifest.xml files and couldn't find any that use those permissions so I suspect it's added as a post build process or some other way by the plugins wrapped up in a binary or something.

Is there a way to remove those permissions in a post process build step?

\$\endgroup\$
1
\$\begingroup\$

You have to build from Unity into an Gradle Android project ("Export Project") and then edit/replace the file before building the APK using Android Studio.

More info on Unity's website: https://docs.unity3d.com/Manual/android-BuildProcess.html

\$\endgroup\$
  • \$\begingroup\$ ah that's a huge pain especially for cloud builds... \$\endgroup\$ – meds Jul 21 '17 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.