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

Commit 954d76ec authored by Adam Bookatz's avatar Adam Bookatz
Browse files

Update isRestrictedProfile javadoc for QUERY_USERS

isRestrictedProfile only began allowing QUERY_USERS starting in Android
V; prior to that, it didn't. So this is mentioned in the javadoc.

Bug: 274673121
Test: N/A. It's just documentation.
Change-Id: Ic68594d6987cc8796477394f2e2df3411c78a1dd
parent b9f9bc6d
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2869,6 +2869,12 @@ public class UserManager {
     * Used to check if the context user is a restricted profile. Restricted profiles
     * may have a reduced number of available apps, app restrictions, and account restrictions.
     *
     * <p>The caller must be in the same profile group as the context user or else hold
     * <li>{@link android.Manifest.permission#MANAGE_USERS},
     * <li>or {@link android.Manifest.permission#CREATE_USERS},
     * <li>or, for devices after {@link android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE},
     * {@link android.Manifest.permission#QUERY_USERS}.
     *
     * @return whether the context user is a restricted profile.
     * @hide
     */
@@ -2892,6 +2898,12 @@ public class UserManager {
     * Check if a user is a restricted profile. Restricted profiles may have a reduced number of
     * available apps, app restrictions, and account restrictions.
     *
     * <p>Requires
     * <li>{@link android.Manifest.permission#MANAGE_USERS},
     * <li>or {@link android.Manifest.permission#CREATE_USERS},
     * <li>or, for devices after {@link android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE},
     * {@link android.Manifest.permission#QUERY_USERS}.
     *
     * @param user the user to check
     * @return whether the user is a restricted profile.
     * @hide