获取手机当前运行的activity

adb shell dumpsys activity | grep mFocusedActivity


C:\Users\maoyongx>adb shell dumpsys activity | find  "mFocusedActivity"

  mFocusedActivity: ActivityRecord{4379dfe0 u0 com.netease.newsreader.activity/c

om.netease.nr.base.activity.BaseActivity t35}



你可能感兴趣的:(获取手机当前运行的activity)