adb常用命令

卸载:python deploy.py unload
安装:python deploy.py debug new

抓log日志
保存在电脑
adb logcat -v time > kkk.log(保存的路径)

2:
adb shell     
$ logcat -v time > sdcard/111.log(保存在手机sd卡里面)

提取
adb pull sdcard/lll.log(后面的为log日志名称)

卸载当前程序
python deploy.py unload
 
安装程序
 python deploy.py debug new
 
 杀掉进程
 1: adb shell
 2: $su
 3: # ps |grep
 4: #kill 1810(包名那一项)
 
 重启设备
 adb reboot
 
 截屏:
adb shell screencap -p /sdcard/hello.png

杀掉进程
adb shell am force-stop com.

安装apk
adb install -r .\apk(名字)TAB键

日志展示在当前窗口
adb logcat -v time |grep ()包名)

卸载当前程序
adb uninstall (包名)

安装apk
adb install -r +(apk名称)

返回上一级
cd..

打开目录下的所有文件
dir

录制屏幕
adb shell screenrecord /sdcard/demo.mp4
取出 adb pull /sdcard/demo.mp4

屏幕截图
adb shell screencap /sdcrad/1.png
取出 adb pull /sdcrad/1.png

杀monkey进程
C:\Python34\Scripts>adb shell
shell@j6headunit:/ $ ps | grep monkey
shell     3233  185   1059288 60052 futex_wait b6d295e8 S com.android.commands.monkey
shell@j6headunit:/ $ kill 3233

版本号低的话
adb install -d -r (apk名称)

sd卡创建文件
adb shell
cd sdcard
ls
touch asr.toast

抓音频
adb shell "am broadcast -a start_asr_save_pcm_all --ei time 60"

停止抓音频
adb shell "am broadcast -a stop_asr_save_pcm"

取出文件夹adb pull /sdcard/sse/

删除文件夹
adb shell "rm -rf /sdcard/sse"

打印文件夹的信息
adb shell "ls -l /sdcard/sse

播放pcm格式
cooledit
Audacity

取出sd卡里面的log日志
adb pull /sdcard/Android/data/

清除
adb shell pm clear

找不到应用图标
adb shell am start -n 包名/activity
查看当前activity的命令
  (包名)

模拟home键
adb shell input keyevent 3

root手机
adb root

恢复出厂设置
adb reboot recovery  

清除数据
adb reboot wipedata 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值