diff options
| author | Yueming Wang <yuemingw@google.com> | 2018-02-24 03:30:17 +0000 |
|---|---|---|
| committer | Yueming Wang <yuemingw@google.com> | 2018-02-24 12:52:18 +0000 |
| commit | 348bf6254f052e2aa09e421ac999e6f945bc04a0 (patch) | |
| tree | e7008219c451ddaf1af2dd2a09dc164ee069958c /core/java/android/os/UserManager.java | |
| parent | cc25afe00033c7f77783ec097f6a3e04ed1b7859 (diff) | |
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
Diffstat (limited to 'core/java/android/os/UserManager.java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 19 |
1 files changed, 0 insertions, 19 deletions
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 @@ -2731,25 +2731,6 @@ public class UserManager { } /** - * Checks whether changing a setting to a value is prohibited by the corresponding user - * restriction. - * - * <p>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. * |
