Loading services/core/java/com/android/server/pm/UserManagerService.java +3 −1 Original line number Diff line number Diff line Loading @@ -2359,11 +2359,13 @@ public class UserManagerService extends IUserManager.Stub { public void setApplicationRestrictions(String packageName, Bundle restrictions, int userId) { checkSystemOrRoot("set application restrictions"); if (restrictions != null) { restrictions.setDefusable(true); } synchronized (mPackagesLock) { if (restrictions == null || restrictions.isEmpty()) { cleanAppRestrictionsForPackage(packageName, userId); } else { restrictions.setDefusable(true); // Write the restrictions to XML writeApplicationRestrictionsLP(packageName, restrictions, userId); } Loading Loading
services/core/java/com/android/server/pm/UserManagerService.java +3 −1 Original line number Diff line number Diff line Loading @@ -2359,11 +2359,13 @@ public class UserManagerService extends IUserManager.Stub { public void setApplicationRestrictions(String packageName, Bundle restrictions, int userId) { checkSystemOrRoot("set application restrictions"); if (restrictions != null) { restrictions.setDefusable(true); } synchronized (mPackagesLock) { if (restrictions == null || restrictions.isEmpty()) { cleanAppRestrictionsForPackage(packageName, userId); } else { restrictions.setDefusable(true); // Write the restrictions to XML writeApplicationRestrictionsLP(packageName, restrictions, userId); } Loading