adb命令使用bat展示:截屏和双清(清数据和删文件夹)
生活随笔
收集整理的這篇文章主要介紹了
adb命令使用bat展示:截屏和双清(清数据和删文件夹)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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:UsersAllenJDesktop線上xiaomi_highger.apk 多個設備時裝包:adb -s 設備號 install XXX;adb -s 設備號 adb 命令
總結
以上是生活随笔為你收集整理的adb命令使用bat展示:截屏和双清(清数据和删文件夹)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SIM卡信息的管理
- 下一篇: JavaFx-----五子棋(单机版和对