From 348bf6254f052e2aa09e421ac999e6f945bc04a0 Mon Sep 17 00:00:00 2001 From: Yueming Wang Date: Sat, 24 Feb 2018 03:30:17 +0000 Subject: Revert "Block adb from changing certain settings value when corresponding user" This reverts commit 4140f6c4e3de454dfbcf060112517408ac69e96c. Reason for revert: This CL is merged accidentally as it got merged together with another CL. Change-Id: I043a5872f370775a4261a1ca7ccb00489a588303 --- core/java/android/os/UserManager.java | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'core/java/android/os/UserManager.java') diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 1248b548e931..185620066454 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -2730,25 +2730,6 @@ public class UserManager { } } - /** - * Checks whether changing a setting to a value is prohibited by the corresponding user - * restriction. - * - *

See also {@link com.android.server.pm.UserRestrictionsUtils#applyUserRestriction( - * Context, int, String, boolean)}, which should be in sync with this method. - * - * @return true if the change is prohibited, false if the change is allowed. - * - * @hide - */ - public boolean isSettingRestrictedForUser(String setting, int userId, String value) { - try { - return mService.isSettingRestrictedForUser(setting, userId, value); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - /** * @hide * User that enforces a restriction. -- cgit v1.2.3