diff options
author | Rubin Xu <rubinxu@google.com> | 2015-03-10 12:34:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-10 12:34:57 +0000 |
commit | ba4df962972ee271e204d157aa785cb7d0b5d968 (patch) | |
tree | e1e1b5001b1b2c9089cb575faf6691dc0659da9b /core | |
parent | 7f602b75eec50ffeb07657bdb0310144dc90df9b (diff) | |
parent | e1e6faad7b212d4042e74ca94f5428a346528ac0 (diff) | |
download | frameworks_base-ba4df962972ee271e204d157aa785cb7d0b5d968.zip frameworks_base-ba4df962972ee271e204d157aa785cb7d0b5d968.tar.gz frameworks_base-ba4df962972ee271e204d157aa785cb7d0b5d968.tar.bz2 |
Merge "Document behavior change of isUninstallBlocked() since L MR1"
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 4a3650f..e23ffe4 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -3681,9 +3681,14 @@ public class DevicePolicyManager { /** * Check whether the current user has been blocked by device policy from uninstalling a package. * Requires the caller to be the profile owner if checking a specific admin's policy. + * <p> + * <strong>Note:</strong> Starting from {@link android.os.Build.VERSION_CODES#LOLLIPOP_MR1}, the + * behavior of this API is changed such that passing <code>null</code> as the <code>admin</code> + * parameter will return if any admin has blocked the uninstallation. Before L MR1, passing + * <code>null</code> will cause a NullPointerException to be raised. * * @param admin The name of the admin component whose blocking policy will be checked, or null - * to check if any admin has blocked the uninstallation. + * to check if any admin has blocked the uninstallation. * @param packageName package to check. * @return true if uninstallation is blocked. */ |