Skip to content

Commit

Permalink
Bump to 1.13.5
Browse files Browse the repository at this point in the history
- Add copytext to commands
- Add reset appops
- Make configurations all optional
  • Loading branch information
zjn0505 committed Sep 13, 2023
1 parent ac59d4f commit 46fd1e9
Show file tree
Hide file tree
Showing 10 changed files with 535 additions and 370 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyc
prefs.plist
7 changes: 5 additions & 2 deletions commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
CMD_INSTALL_APP = adbs + 'install -r {0} {1}'

# List apps
CMD_LIST_APPS = adbshell + "'pm list packages -f' | grep package: | sed -e 's/.*=//' | sed 's/\r//g' | sort"
CMD_LIST_APPS = adbshell + "'pm list packages -f' | grep package: | sed -e 's/.*=//' | sed 's/\\r//g' | sort"

# Check keyboard
CMD_CHECK_KEYBOARD = adbshell + "dumpsys input_method | grep mInputShown | awk '{{print $4}}'"
Expand All @@ -103,4 +103,7 @@
CMD_DUMP_STACK = adbshell + "dumpsys activity activities | grep 'Hist \|taskAffinity=\|app=ProcessRecord'"

# Dump notification
CMD_DUMP_NOTIFICATION = adbshell + "dumpsys notification --noredact | sed -n '/Notification List/,/Notification Preferences/p'"
CMD_DUMP_NOTIFICATION = adbshell + "dumpsys notification --noredact | sed -n '/Notification List/,/Notification Preferences/p'"

# Reset appops
CMD_RESET_APPOPS = adbshell + "cmd appops reset {}"
Loading

0 comments on commit 46fd1e9

Please sign in to comment.