ADB 获取当前activity信息


借鉴:https://blog.csdn.net/wangjicong_215/article/details/79744599

 

8.1之前

window 通过adb shell dumpsys activity | findstr “mFocus”
Linux 通过adb shell dumpsys activity | grep “mFocus”

 

8.1之后

window 通过adb shell dumpsys activity | findstr “mResume”

Linux 通过adb shell dumpsys activity | grep “mResume”


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM