From 14f48e5a937b07c83f7e7a37d0319f84171b692d Mon Sep 17 00:00:00 2001 From: Kenny Guy Date: Mon, 29 Jun 2015 15:12:36 +0100 Subject: Deprecate APIs for admin to create users. Bug: 21921868 Change-Id: I0a59c85f6a87928de3df72278d4b65355ff7270f --- core/java/android/app/admin/DevicePolicyManager.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android') diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index d53157b..05fcbbc 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -3612,7 +3612,10 @@ public class DevicePolicyManager { * @see UserHandle * @return the {@link android.os.UserHandle} object for the created user, or {@code null} if the * user could not be created. + * + * @deprecated From {@link android.os.Build.VERSION_CODES#MNC} */ + @Deprecated public UserHandle createUser(@NonNull ComponentName admin, String name) { try { return mService.createUser(admin, name); @@ -3646,7 +3649,10 @@ public class DevicePolicyManager { * @see UserHandle * @return the {@link android.os.UserHandle} object for the created user, or {@code null} if the * user could not be created. + * + * @deprecated From {@link android.os.Build.VERSION_CODES#MNC} */ + @Deprecated public UserHandle createAndInitializeUser(@NonNull ComponentName admin, String name, String ownerName, @NonNull ComponentName profileOwnerComponent, Bundle adminExtras) { try { -- cgit v1.1