From 4eb2d56314ce6edf69da61f7f6aff28397e4a3d8 Mon Sep 17 00:00:00 2001 From: Nupur Saxena Date: Fri, 15 Nov 2024 17:07:21 +0000 Subject: Update removeManagedProfile description Flag: EXEMPT refactor Bug: b/378674221 Change-Id: I0230f64fb86f746505e027bb907664b97d75595f --- core/java/android/app/admin/DevicePolicyManager.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index e766ae2fce0d..3d33cb34db74 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -17285,12 +17285,17 @@ public class DevicePolicyManager { } /** - * Removes a manged profile from the device only when called from a managed profile's context + * Removes a managed profile from the device. + * + *

+ * Removes the managed profile which is specified by the context user + * ({@code Context.createContextAsUser()}). + *

* - * @param user UserHandle of the profile to be removed * @return {@code true} when removal of managed profile was successful, {@code false} when - * removal was unsuccessful or throws IllegalArgumentException when provided user was not a + * removal was unsuccessful or throws IllegalArgumentException when specified user was not a * managed profile + * * @hide */ @SystemApi -- cgit v1.2.3-59-g8ed1b