summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nupur Saxena <nupursn@google.com> 2024-12-23 00:34:14 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2024-12-23 00:34:14 -0800
commit6fb8ef94db4d4b4a01ac9e29a3f99f9982479ae2 (patch)
tree6edefae6418b28d6050969f7509c1b96d5ec58a0
parente1fb10c9a52d39f5dbeafe05b9c9dca84f1db9e5 (diff)
parent4eb2d56314ce6edf69da61f7f6aff28397e4a3d8 (diff)
Merge "Update removeManagedProfile description" into main
-rw-r--r--core/java/android/app/admin/DevicePolicyManager.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index 39c27a165588..84d67415a4b4 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -17430,12 +17430,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.
+ *
+ * <p>
+ * Removes the managed profile which is specified by the context user
+ * ({@code Context.createContextAsUser()}).
+ * <p>
*
- * @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