aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Chau <alexchau@google.com>2018-01-16 14:53:54 +0000
committerAlex Chau <alexchau@google.com>2018-01-17 19:51:49 +0000
commit7bfdcaceb97709849655c2ab6f369a3646ad1fe1 (patch)
treeb63a97db83f054be50cf95656a355325574e21c5
parent8c10380c7686264fe5780a4e4ddcb76f585dde28 (diff)
downloadsdk-7bfdcaceb97709849655c2ab6f369a3646ad1fe1.tar.gz
Add adb command to get max running users
Bug: 72033601 Test: New command is working Change-Id: Ib0a219e43dda4dd714e42bff72a2091bab15e8da
-rw-r--r--bash_completion/adb.bash12
1 files changed, 11 insertions, 1 deletions
diff --git a/bash_completion/adb.bash b/bash_completion/adb.bash
index 3017bfa2e..d36bec376 100644
--- a/bash_completion/adb.bash
+++ b/bash_completion/adb.bash
@@ -293,7 +293,17 @@ _adb_cmd_shell_pm() {
if (( $i == $COMP_CWORD )) ; then
cur="${COMP_WORDS[COMP_CWORD]}"
- candidates="-l -lf -p clear create-user default-state disable disable-until-used disable-user dump enable get-app-link get-install-location get-max-users grant hide install install-abandon install-commit install-create install-write list move-package move-primary-storage path remove-user reset-permissions revoke set-app-link set-installer set-install-location set-permission-enforced trim-caches unhide uninstall"
+ candidates="-l -lf -p clear create-user default-state disable"
+ candidates+=" disable-until-used disable-user dump enable"
+ candidates+=" get-app-link get-install-location get-max-users"
+ candidates+=" get-max-running-users grant hide install"
+ candidates+=" install-abandon install-commit install-create"
+ candidates+=" install-write list move-package"
+ candidates+=" move-primary-storage path remove-user"
+ candidates+=" reset-permissions revoke set-app-link"
+ candidates+=" set-installer set-install-location"
+ candidates+=" set-permission-enforced trim-caches unhide"
+ candidates+=" uninstall"
COMPREPLY=( $(compgen -W "$candidates" -- "$cur") )
return 0
fi