Should you ever decide to go with a command-line way, you can do
adb shell dumpsys package | awk -v RS='\n +Package' '/android\.permission\.CAMERA/{print $1}' | sed -e 's/\[//g' -e 's/\]//g' -e 's/Verifiers\://g' | tail -n +2 | while read line; do adb shell pm uninstall $line; done;
Replace adb shell pm uninstall $line
with echo "adb shell pm uninstall $line"
for a dry run / demo.
dumpsys package
: list all the installed packages with their infoawk
: finds the permission (mentioned in the command) in the output of previous command and list the package name corresponding to the permission (originally, by muru)sed
andtail
: does some cleaning of bits and pieces of last outputwhile
anddo
:while
reads each line from the output anddo
does the job you tell it to, on each line
Dummy output (before beginning while
)
com.sand.airdroid com.android.camera2 com.bartat.android.elixir com.google.android.googlequicksearchbox com.rootuninstaller.batrsaverpro com.ceco.gm2.gravitybox com.scottmain.android.searchlight com.google.zxing.client.android com.wakdev.droidautomation.free com.google.android.apps.plus com.android.wallpaper cc.weline
You would need a *nix system, adb setup in PC and device connected to it in debugging mode.
For Windows users, this answer by Lucky may help.