1,adb shell ->进入shell命令
然后
输出当前activity dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp' --color=always
查看当前Fragment -> dumpsys activity top | grep '#0: ' | tail -n 1
2,adb shell dumpsys activity top | grep ACTIVITY
1,adb shell ->进入shell命令
然后
输出当前activity dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp' --color=always
查看当前Fragment -> dumpsys activity top | grep '#0: ' | tail -n 1
2,adb shell dumpsys activity top | grep ACTIVITY