adb shell pm list packages 列出所有包名
adb uninstall PACKAGE_NAME 卸载

1
2
3
4
5
6
7
#!/bin/bash

for package_name in `adb shell pm list packages -3 | awk 'BEGIN { FS = ":|\r" } { print $2 }'`; do
echo adb uninstall ${package_name}
adb uninstall ${package_name}
echo -------------
done