Thursday, August 11, 2016

How to get the activity on top of the stack using android shell (adb shell)



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

No comments:

Post a Comment