diff options
author | Benjamin Franz <bfranz@google.com> | 2015-07-08 13:59:29 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-08 13:59:34 +0000 |
commit | c088e30fd403b9843a00cc311e460734bd111c26 (patch) | |
tree | 6b9c46d723b7ca56700bcbf742f8d44da7419ad5 | |
parent | 20ad92460bf180abb1d2a154e8ec007ca2330e6d (diff) | |
parent | 45dd6667e8d42c9df6957fba7e4df99b92b805ea (diff) | |
download | frameworks_base-c088e30fd403b9843a00cc311e460734bd111c26.zip frameworks_base-c088e30fd403b9843a00cc311e460734bd111c26.tar.gz frameworks_base-c088e30fd403b9843a00cc311e460734bd111c26.tar.bz2 |
Merge "Clarify javadoc of setPermissionPolicy" into mnc-dev
-rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index f2c907a..33cbc9d 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -4330,10 +4330,17 @@ public class DevicePolicyManager { * requests by applications. The policy can allow for normal operation which prompts the * user to grant a permission, or can allow automatic granting or denying of runtime * permission requests by an application. This also applies to new permissions declared by app - * updates. + * updates. When a permission is denied or granted this way, the effect is equivalent to setting + * the permission grant state via {@link #setPermissionGrantState}. + * + * <p/>As this policy only acts on runtime permission requests, it only applies to applications + * built with a {@code targetSdkVersion} of {@link android.os.Build.VERSION_CODES#MNC} or later. + * * @param admin Which profile or device owner this request is associated with. * @param policy One of the policy constants {@link #PERMISSION_POLICY_PROMPT}, * {@link #PERMISSION_POLICY_AUTO_GRANT} and {@link #PERMISSION_POLICY_AUTO_DENY}. + * + * @see #setPermissionGrantState */ public void setPermissionPolicy(@NonNull ComponentName admin, int policy) { try { |