启动 | adb start-server | |
关闭 | adb kill-server | |
获取设备号 | adb devices | |
获取系统版本 | adb -s 设备号 shell getprop ro.build.version.release | |
发送文件到手机 | adb push 电脑路径/文件名 手机路径 | |
从手机拉取文件 | adb pull 手机路径/文件名 电脑路径 | |
查看手机运行日志 | adb logcat | |
手机shell命令行 | adb shell | |
获取app启动包和启动名 | adb shell dumpsys window windows | grep mFocusedApp | adb shell dumpsys window windows | findstr mFocusedApp |
安装app到手机 | adb install 路径/ xx.apk | |
卸载手机 | adb uninstall 包名 | |
获取app启动时间 | adb shell am start -W com.yly.drawpic/.MainActivity | Totaltime:app自身启动时间 Waittime:系统启动应用时间 |
ADB常用命令
于 2018-07-22 17:33:27 首次发布