Android adb实用命令获取当前Activity或者Fragment
查看当前activity以及包名 :adb shell dumpsys window w | findstr mCurrenadb shell “dumpsys window | grep mCurrentFocus”(1)查看当前Activity :adb shell “dumpsys window w | grep name=”(2)查看当前栈顶的Activity :adb shell “dumpsys activity | grep mFocusedActivity”或者:adb shell
原创
2020-11-26 17:03:17 ·
1996 阅读 ·
0 评论