3

I want to list all apps with a specific permission. For instance, output the package names of apps with the VIBRATE permission. The apps with a specific permission then be revoked or enabled as instructed here.

adb shell 'pm list packages -e' outputs all packages.

user598527
  • 662
  • 1
  • 8
  • 27

1 Answers1

0

You can try this:
adb shell cmd appops query-op PERMISSION
For example:
adb shell cmd appops query-op READ_CONTACTS

End Anti-Semitic Hate
  • 4,400
  • 23
  • 61
  • 100
DizNoze
  • 1
  • 1