adbui.bat1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| @echo off setlocal EnableExtensions
%~d0
cd %~dp0
for /f "skip=1 tokens=1" %%i in ('adb devices -l') do ( echo ----------------------------------------- echo --------------------------
echo current device: %%i echo --------------------------
for /f "tokens=1" %%k in (adbui.txt) do (
for /f "tokens=2 delims=:" %%j in ('adb -s %%i shell pm list packages -3') do (
if %%j == %%k ( echo uninstall: %%j echo. echo code: adb -s %%i uninstall %%j
adb -s %%i uninstall %%j echo. ) else ( echo no uninstall: %%j )
) ) echo ----------------------------------------- )
|