adb命令使用bat展示:截屏和双清(清数据和删文件夹)
生活随笔
收集整理的這篇文章主要介紹了
adb命令使用bat展示:截屏和双清(清数据和删文件夹)
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
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 查看機(jī)型:adb shell getprop ro.product.model 查看包名:adb shell dumpsys window | findstr mCurrentFocus(該應(yīng)用開(kāi)啟狀態(tài)) 清除數(shù)據(jù)和緩存:adb shell pm clear 包名 刪除文件夾:#開(kāi)始shell命令 adb shell #進(jìn)入到sdcard卡目錄 cd sdcard #將列出所有文件夾 ls #刪除文件或文件夾 rm -r Lovel(文件夾名稱) 卸載APK:adb uninstall APK的包名 adb安裝指令:adb uninstall com.xiaomi.bussiness.store 覆蓋低版本APK:Android設(shè)備有更小版本Apk,進(jìn)行覆蓋安裝:adb install -r xx.apk 覆蓋高版本::Android設(shè)備有更高版本Apk,進(jìn)行覆蓋安裝:adb install -r -d adb install -r -d C:UsersAllenJDesktop線上x(chóng)iaomi_highger.apk 多個(gè)設(shè)備時(shí)裝包:adb -s 設(shè)備號(hào) install XXX;adb -s 設(shè)備號(hào) adb 命令
總結(jié)
以上是生活随笔為你收集整理的adb命令使用bat展示:截屏和双清(清数据和删文件夹)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: SIM卡信息的管理
- 下一篇: JavaFx-----五子棋(单机版和对