adb shell dumpsys activity
4、查看Android应用包名package和入口activity名称 :
aapt dump badging E:\apk\es3.apk
5、显示accounts信息:
adb shell dumpsys account
5、显示CPU信息 :
adb shell dumpsys cpuinfo
查看CPU使用信息
adb shell top -n 1 -d 0.5 | findstr proc_ id
6、显示键盘,窗口和它们的关系
adb shell dumpsys window
当我们需要知道设备的分辨率时
adb shell dumpsys window displays
查看UI绘制的各个层级信息
adb shell dumpsys SurfaceFlinger
7、显示wifi信息
adb shell dumpsys wifi
8、电量信息及CPU 使用时长
adb shell dumpsys batteryinfo $package_name
9、获取安装包信息
adb shell dumpsys package packagename
10、每个应用的启动次数和时间
adb shell dumpsys usagestats
11、显示状态栏相关的信息
adb shell dumpsys statusbar
12、内存信息(meminfo package_name or pid 使用程序的包名或者进程id显示内存信息)
adb shell dumpsys meminfo
得到com.teleca.robin.test进程使用的内存的信息 adb shell dumpsys meminfo com.teleca.ro