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

Commit 6c177dd0 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "Update isRestrictedProfile javadoc for QUERY_USERS" into main

parents d346a1f1 954d76ec
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2940,6 +2940,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
     */
@@ -2963,6 +2969,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