1.截屏
adb shell screencap -p /sdcard/01.png adb pull /sdcard/01.png
2.雙清
@echo off choice /C cie /M “comiccat,ireader,end” if errorlevel 3 goto end if errorlevel 2 goto ireader if errorlevel 1 goto comiccat :comiccat adb shell pm clear 包名1 adb shell rm -r /sdcard/文件夾1 goto end :ireader adb shell pm clear 包名2 adb shell rm -r /sdcard/文件夾2 goto end :end echo good bye
3.adb命令:
安裝包:adb install -r XXXX 截圖:adb shell screencap -p /sdcard/01.png(截屏);adb pull /sdcard/01.png(下載截圖) 抓取崩潰日志:adb logcat -v time >.\\logcat.log 查看機型:adb shell getprop ro.product.model 查看包名:adb shell dumpsys window | findstr mCurrentFocus(該應用開啟狀態) 清除數據和緩存:adb shell pm clear 包名 刪除文件夾:#開始shell命令 adb shell #進入到sdcard卡目錄 cd sdcard #將列出所有文件夾 ls #刪除文件或文件夾 rm -r Lovel(文件夾名稱) 卸載APK:adb uninstall APK的包名 adb安裝指令:adb uninstall com.xiaomi.bussiness.store 覆蓋低版本APK:Android設備有更小版本Apk,進行覆蓋安裝:adb install -r xx.apk 覆蓋高版本::Android設備有更高版本Apk,進行覆蓋安裝:adb install -r -d adb install -r -d C:\Users\AllenJ\Desktop\線上\xiaomi_highger.apk 多個設備時裝包:adb -s 設備號 install XXX;adb -s 設備號 adb 命令