adb shell dumpsys window | findstr mCurrentFocus
adb获取当前打开的app的包名
原文:https://www.cnblogs.com/Peng-study/p/12304767.html