adb 查看栈顶activity以及任务栈

查看当前显示的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'

你可能感兴趣的:(adb 查看栈顶activity以及任务栈)