Created
October 25, 2017 12:40
-
-
Save ahmadronaghdev/fdce068aa2e4f5ccf512756578d6ccd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Reset Permission | |
| adb shell pm reset-permissions your.package.name | |
| Grant And Revoke Permission | |
| adb shell pm [grant|revoke] com.my.app android.permission.ACCESS_FINE_LOCATION | |
| aapt d permissions ./path/to/your.apk \ | |
| | sed -n \ | |
| -e "s/'//g" \ | |
| -e "/^uses-permission: name=android.permission\./s/^[^=]*=//p" \ | |
| | xargs -n 1 adb shell pm grant com.your.package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment