Removing Android app permissions.
What's the most straightforward way to remove some app permissions?
I noticed that on install my app asks for much more than it will ever use and I don't want users to think that something shady is going on. I see the Extra Permissions section in the Android Settings, but I'm trying to remove permissions, not add them.
Thanks ahead of time.
asked Oct 16 '15 at 02:14 AM in Packaging & Deployment
Good news, I got rid of all the permissions :) In your projectfolder go to GAME\Main\Intermediate\Android\APK. You can look at the AndroidManifest.XML, and see all of the permissions. You can't change this file by simply deleting all the permissions, but here is what you do:
Maybe you'll need to adjust some things to make it work for your project, or put in some permissions that you do want to use. For example, I still put in the wake_lock, because it doesn't even ask users for permission, and it's a nice feature :) After building the game, your project's AndroidManifest.XML will be updated, and will not need any permissions.
Hope this helps! :)
There is an elegant solution using the UPL mechanism, which allows you to modify android manifest and Activity class.
(1) Create a file
Now the unnecessary permissions will be removed from manifest.
answered Dec 12 '16 at 02:45 AM
I found my self a solution for removing the permissions when you can't use the ManifestRequirementsOverride.txt. It is based on the post of MarcelBlanck (#3) but it works with the Launcher Version 4.14.3 and Blueprint projects.
You have to do this only once per Engine Version and after that you only have to add your needed permissions in the project settings. So no more ManifestRequirementsOverride.txt is needed anymore.
I will post a detailed instruction in february, but if you want to know it faster, you can text me.
answered Jan 13 '17 at 09:57 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here