Android adb命令打印activity堆栈

 

ubuntu系统:

adb shell dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'

 

window系统:

方法一:

adb shell 进入,然后执行:

dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'

 

方法二:添加引号

adb shell "dumpsys activity activities | sed -En -e '/Running activities/,/Run #0/p'"

 

方法三:

adb shell dumpsys activity | findstr Run

posted @ 2019-07-19 13:45  行走的思想  阅读(4062)  评论(0编辑  收藏  举报