A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© ~Maybe 中级黑马   /  2020-5-15 10:55  /  1573 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

·     查看帮助信息:adb/adb -help
·     查看设备号:adb devices
·     启动adb服务:adb start-server
·     关闭adb服务:adb kill-server
·     从电脑端发送文件到手机端:adb push 电脑手机
·     从手机端发送文件到电脑端:adb pull 手机电脑
·     进入shell 命令行:adb shell
·     安装app:adb install 路径/xx.apk
覆盖安装:adb install -r 路径/xx.apk
·     卸载app:adb uninstall app包名
·     查看⼿机运⾏⽇志 adb logcat
·     输出日志到文件:adb logcat > 路径
·     获取单个app运行日志
unix:adb logcat | grep 包名
windows:adb logcat | findstr 包名
·     获取包名
adb shell dump window windows|grepmFocusedAPP
·     获取启动名
adb shell dump window windows|grepmFocusedAPP
·     获取app包名、启动名
unix:adb shell dumpsys windowwindows | grep mFoc
windows:adb shell dumpsys windowwindows | findstr mFoc
·     获取APP冷启动时间:db shell am start -W 包名/启动名
·     获取系统版本
adb shell getgrop ro.build.version.release

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马