- Enable developer mode on android by tapping build number repeatedly
- Connect to computer via usb
- Ensure that adb is installed
adb --version
adb devices
to see devices, may need to auth on phoneadb shell
to get shellpm list packages
to list packagespm list packages -3 | cut -f 2 -d ":"
to list user installed packagespm list permissions
to list all permissions available system-wideappops get <PackageName>
to list permissions for a specific appappops set <PackageName> <PermissionName> ignore
to ignore a permission for a specific appappops set <PackageName> <PermissionName> allow
to allow a permission for a specific app- you can run shell commands without entering the shell by prepending with
adb shell
- Allows for
command | pbcopy
to 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