adb获取当前打开的app的包名

adb shell dumpsys window | findstr mCurrentFocus

  

 
原文地址:https://www.cnblogs.com/Peng-study/p/12304767.html