ADB之查看当前运行应用、进程的包名与Activity名(Windows、Mac下均可)

mac:adb shell dumpsys window | grep mCurrentFocus

windows:adb shell dumpsys window | findstr mCurrentFocus

bogon:~ wp$ adb shell dumpsys window | grep mCurrentFocus
  mCurrentFocus=Window{872afcf u0 com.xxx.smashbrickz/com.unity3d.player.UnityPlayerActivity}

adb shell dumpsys activity top 查看加入的Fragment

你可能感兴趣的:(ADB之查看当前运行应用、进程的包名与Activity名(Windows、Mac下均可))