获取当前显示的Activity
adb shell "dumpsys window | grep mCurrentFocus"
获取添加到FragmentManager并且正在显示的Fragment
adb shell "dumpsys activity top | grep '#[0-9]: ' | tail -n 1"
原文链接
https://blog.csdn.net/sunshine_guo/article/details/139592434
获取当前显示的Activity
adb shell "dumpsys window | grep mCurrentFocus"
获取添加到FragmentManager并且正在显示的Fragment
adb shell "dumpsys activity top | grep '#[0-9]: ' | tail -n 1"
原文链接
https://blog.csdn.net/sunshine_guo/article/details/139592434