tir38 / ADBX

ADB extensions
2 stars 0 forks source link

Add feature to print current app/activity #92

Open tir38 opened 2 years ago

tir38 commented 2 years ago

All of the regexes / matchers in these answers are too restrictive, some work on some OS's; others don't.

https://stackoverflow.com/a/13212310 https://stackoverflow.com/a/58419560

A simple -i resumed should be good enough:

$ adb shell dumpsys activity | grep -i resumed