Generated on 2017-02-28T18:20:00+0100 using:
- TechBench dump script (tbdump-web)
- FreeBSD 10.3-STABLE amd64 devil-1_0_4
- curl 7.52.1 (amd64-portbld-freebsd10.3) libcurl/7.52.1 OpenSSL/1.0.1s zlib/1.2.8 libssh2/1.8.0 nghttp2/1.18.1
Number of products: 225
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oldActvity="" | |
displayName="" | |
currentActivity=`adb shell dumpsys window windows | grep -E 'mCurrentFocus'` | |
while true | |
do | |
if [[ $oldActvity != $currentActivity && $currentActivity != *"=null"* ]]; then | |
displayName=${currentActivity##* } | |
displayName=${displayName%%\}*} | |
echo $displayName | |
oldActvity=$currentActivity |