首页 > 数据库技术 > 详细

adb命令使用bat展示:截屏和双清(清数据和删文件夹)

时间:2020-01-19 15:53:38      阅读:254      评论:0      收藏:0      [点我收藏+]

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 命令

  

adb命令使用bat展示:截屏和双清(清数据和删文件夹)

原文:https://www.cnblogs.com/wxcx/p/12213760.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!