APP信息:
- 获取当前界面元素:
adb shell dumpsys activity top
-获取任务列表:
adb shell dumpsys activity activities
实例:
app入口:
adb logcat | grep -i displayed
aapt dump badging [包名] | grep launchable-activity
apkanalyzer 最新版本的sdk中才有
启动应用
adb shell am start -W -n [包名]/[activity]
获取当前应用的包名和activity
adb shell
dumpsys window | grep mCurrentFocus