2.adb常用命令
-
adb --help 帮助
-
adb start-server 启动adb server
-
adb kill-server 关闭adb server
-
adb devices获取设备号
-
adb -s 设备号 shell getprop ro.build.version.release
-
adb push 电脑文件路径/file 手机端路径:发送文件到手机
-
adb pull 手机文件路径/file 电脑端路径: 从手机拉取文件
-
adb shell 手机shell命令
类似linux
-
adb shell dumpsys window windows 获取app包名、启动名
-
安装 adb install 路径
-
卸载 adb uninstall 包名
-
获取app启动时间 adb shell am start -W 包名/启动名
ThisTime 启动耗时
TotalTime 应用自身启动耗时
WaitTime 系统启动应用耗时