adb 命令集

adb 查看app启动时间

1.清除时间

adb shell am start -S com.android.systemui/.SystemUIService

2.启动应用并记录

adb shell am start -W <PACKAGE_NAME>/.<ACTIVITY_NAME>

TotalTime: 491

adb 查看分辨率、dpi

分辨率

adb shell wm size

Physical size: 1080x2340

dpi:

adb shell wm density

Physical density: 480

adb 捕获logcat

adb logcat -d > E:\logcat.txt

push\pull 文件

push e盘文件到sdcard

adb push E:\file.txt /sdcard/

pull sdcard文件到e盘

adb pull /sdcard/file.txt E:\

你可能感兴趣的:(adb)