diff options
| author | 2015-07-08 15:17:12 +0000 | |
|---|---|---|
| committer | 2015-07-08 15:17:12 +0000 | |
| commit | 54b09b34941ea7e2d71da7e4e57de25878dbb3d5 (patch) | |
| tree | c0bc68a24d8f92349334d0cd4413c33c05bd1bb9 | |
| parent | 6f34b21f7a742e4a591ede4baa98ea90f8f62790 (diff) | |
| parent | 5a9102e307f395dec106cd5e0109abf9b0e07d5b (diff) | |
am 5a9102e3: am 12ceccaf: am 4b7d3b47: am 051762f7: am c088e30f: Merge "Clarify javadoc of setPermissionPolicy" into mnc-dev
* commit '5a9102e307f395dec106cd5e0109abf9b0e07d5b':
Clarify javadoc of setPermissionPolicy
| -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 f2c907aec31f..33cbc9d8c737 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 { |