Last active
May 13, 2020 14:28
-
-
Save robot9706/c506a6d0c4c76ad5fdaf2967071bb36f to your computer and use it in GitHub Desktop.
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
| List all packages with APK locations: | |
| pm list packages -f | |
| Create a backup of an app (including /data/data files): | |
| adb backup -f backup.bak -noapk [package name] | |
| Get foreground app: | |
| dumpsys window windows | grep -E 'mCurrentFocus' | cut -d '/' -f1 | sed 's/.* //g' | |
| Take screenshot: | |
| adb exec-out screencap -p > screen.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment