基本语法
adb shell dumpsys [-t timeout] [--help | -l | --skip services | service [arguments] | -c | -h]
基本命令
adb dumpsys --help
adb dumpsys activty -h
运用
1、找出package name
打开app后, 命令 adb shell dumpsys activity r
2、分析activity组件
打开要分析的activity页面, 命令 adb shell dumpsys activity -p PACKAGE_NAME a 分析 View Hierarchy