From 5d9e27ec413158588d90c5cd40ecc751acde51da Mon Sep 17 00:00:00 2001 From: Andrew Solovay Date: Fri, 11 Sep 2015 14:52:33 -0700 Subject: [PATCH] docs: Added new adb permissions shell commands Updated adb shell pm grant and ...revoke for new M functionality (you can grant and revoke system permissions). Noted new install -g flag (to install with full permissions). See comment after patch set 2 for doc stage location. bug: 23725768 bug: 21744132 Change-Id: Ibb3a7d0a87a83bd95c922bd81a4156305eb332e2 --- docs/html/tools/help/shell.jd | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/html/tools/help/shell.jd b/docs/html/tools/help/shell.jd index 417c87144a7cf..72f2c72c426bb 100644 --- a/docs/html/tools/help/shell.jd +++ b/docs/html/tools/help/shell.jd @@ -570,6 +570,7 @@ install [options] <PATH>
  • {@code -s}: Install package on the shared mass storage (such as sdcard).
  • {@code -f}: Install package on the internal system memory.
  • {@code -d}: Allow version code downgrade. +
  • {@code -g}: Grant all permissions listed in the app manifest. @@ -622,21 +623,23 @@ disable-user [options] <PACKAGE_OR_COMPONENT> -grant <PACKAGE_PERMISSION> +grant <PACKAGE_NAME> <PERMISSION> -Grant permissions - to applications. Only optional permissions the application has - declared can be granted. +Grant a permission to an app. On devices running Android 6.0 (API level 23) +and higher, may be any permission declared in the app manifest. On devices +running Android 5.1 (API level 22) and lower, must be an optional permission defined by the +app. -revoke <PACKAGE_PERMISSION> +revoke <PACKAGE_NAME> <PERMISSION> -Revoke permissions - to applications. Only optional permissions the application has - declared can be revoked. +Revoke a permission from an app. On devices running Android 6.0 (API level +23) and higher, may be any permission declared in the app manifest. On devices +running Android 5.1 (API level 22) and lower, must be an optional permission defined by the +app. @@ -895,4 +898,4 @@ $ adb pull /sdcard/demo.mp4   - \ No newline at end of file +