adb常用命令

来源:互联网 发布:易语言dnf界面源码 编辑:程序博客网 时间:2024/06/05 16:13

电源键

adb shell input keyevent 26

菜单键

adb shell input keyevent 82

返回键

adb shell input keyevent 4

查看连接过的WIFI密码

cat /data/misc/wifi/*.conf

开启/关闭 WIFI

需root权限

adb shell svr wifi enableadb shell svr wifi disable

输入文本

adb shell input text hello

微信

在微信聊天界面

adb shell input text //uplog

微信上传日志

截屏之后,传到本地,然后打开

adb shell screencap /sdcard/Pictures/Screenshots/2.png && adb pull /sdcard/Pictures/Screenshots/2.png ./ && open 2.png

更多微信命令,参考:
https://gist.github.com/NewFuture/2d4a8fdedf499eb2c70f