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.
adb shell cmd appops set
.