Tuesday, December 1, 2015

Revoke App Permissions Without Root?


I have some apps that are asking for unnecessary permissions. I would like to revoke these, but I've read that this is not possible without rooting.


Is there any way to do this without having to root?



Answer



Yes there is, though it's not really elegant and it's a REALLY bad idea to do it.
The app that you do it to, will more than likely break if you revoked a permission and it tries to use it. If this wouldn't be enough you will lose your app data and you won't be able to update from the Play Store. With that said it's not that hard to do.


You need apktool. Refer to this guide on how to use it (you'll need the decompile and compile commands.) And this on signing the apk after you're done. You need to modify the AndroidManifest.xml file. Look for lines like this:




and remove it if it bothers you.



After you're finished recompile the app than sign it. Now you can uninstall the original app and install the new one using a file manager or in adb using


adb install /local/path

To find out what each permission allows, you can refer to the incomplete documentation or try searching for it's name.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...