adb shell wm size
adb shell dumpsys window | grep ‘dpi’
adb shell dumpsys window | grep mCurrentFocus
adb shell dumpsys activity s [package-name]
例如:adb shell dumpsys activity s dji.go.v4
在 ~/Library/Android/sdk/tools/proguard/bin 下面
dumpsys meminfo [package-name]
adb -s [serial-number] [cmd]
adb shell pm list packages -f
adb shell ps (旧版android的ps是toolbox版本的ps)
adb shell ps -A (新版android的ps换成了toybox版本的ps)
adb shell am force-stop [package-name]
adb shell logcat | grep ActivityManager
adb shell dumpsys activity activities
adb shell
su
kill [pid]
adb shell dumpsys activity activities
在其中搜索 ‘Running activities’,其中的 TaskRecord 就表示一个 task 堆栈
adb shell pm list permissions -d -g
adb shell am start -W -n [package name]/[launcher activity的全限定名]
adb shell am start -W -n dji.go.v4.debug/dji.pilot.main.activity.DJILauncherActivity
aapt d badging [Your apk’s path]
adb logcat -G 2m
adb logcat -b all -c
adb pull data/anr/traces.txt
java -jar ~/Library/Android/sdk/tools/proguard/lib/proguardgui.jar
adb shell dumpsys meminfo [package name] -d
adb shell input swipe [source.x] [source.y] [dst.x] [dst.y] [duration/ms]
例如 adb shell input swipe 300 1400 300 1420 1
adb shell pm list packages -f | grep ‘xxx’
让调试器 attached 上后采取执行 Application 的启动:adb shell am set-debug-app -w --persistent dji.mimo.debug
使用 adb shell am clear-debug-app 来清理
IMEI
adb shell getprop persist.sys.factory.imei