Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba4df962 authored by Rubin Xu's avatar Rubin Xu Committed by Android (Google) Code Review
Browse files

Merge "Document behavior change of isUninstallBlocked() since L MR1"

parents 7f602b75 e1e6faad
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3681,6 +3681,11 @@ 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.