- Enable developer mode on android by tapping build number repeatedly
- Connect to computer via usb
- Ensure that adb is installed
adb --version adb devicesto see devices, may need to auth on phoneadb shellto get shellpm list packagesto list packagespm list packages -3 | cut -f 2 -d ":"to list user installed packagespm list permissionsto list all permissions available system-wideappops get <PackageName>to list permissions for a specific appappops set <PackageName> <PermissionName> ignoreto ignore a permission for a specific appappops set <PackageName> <PermissionName> allowto allow a permission for a specific app- you can run shell commands without entering the shell by prepending with
adb shell- Allows for
command | pbcopyto pipe output to clipboard
- Allows for
-
-
Save satyamisme/59d191f03ebfde31d6f62ad01ea9cecd to your computer and use it in GitHub Desktop.
Change android appops with adb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment