查看當(dāng)前顯示的activity
adb -d shell dumpsys activity activities | grep mResumedActivity
查看activity
adb shell dumpsys activity activities | grep Run #
查看堆棧
adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'
查看當(dāng)前顯示的activity
adb -d shell dumpsys activity activities | grep mResumedActivity
查看activity
adb shell dumpsys activity activities | grep Run #
查看堆棧
adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'