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
原文地址:https://www.cnblogs.com/onelikeone/p/11212828.html
时间: 2024-10-25 18:27:25