使用adb shell dumpsys window | findstr mCurrentFocus 命令查看当前运行的包名和Activity
C:\Users\zhaofeng>adb shell dumpsys window | findstr mCurrentFocus
mCurrentFocus=Window{2c35d995 u0 com.android.gallery3d/com.android.camera.CameraLauncher}
使用adb shell dumpsys window | findstr mCurrentFocus 命令查看当前运行的包名和Activity
C:\Users\zhaofeng>adb shell dumpsys window | findstr mCurrentFocus
mCurrentFocus=Window{2c35d995 u0 com.android.gallery3d/com.android.camera.CameraLauncher}
转载于:https://www.cnblogs.com/zf612326/p/9529807.html