Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -2411,6 +2411,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return; } enforceCrossUserPermission(userHandle); if ((flags & DevicePolicyManager.WIPE_EXTERNAL_STORAGE) != 0) { enforceNotManagedProfile(userHandle, "wipe external storage"); } synchronized (this) { // This API can only be called by an active device admin, // so try to retrieve it to check that the caller is one. Loading Loading @@ -2863,6 +2866,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return; } enforceCrossUserPermission(userHandle); enforceNotManagedProfile(userHandle, "enable/disable cameras"); synchronized (this) { if (who == null) { throw new NullPointerException("ComponentName is null"); Loading Loading @@ -2912,6 +2916,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return; } enforceCrossUserPermission(userHandle); enforceNotManagedProfile(userHandle, "disable keyguard features"); synchronized (this) { if (who == null) { throw new NullPointerException("ComponentName is null"); Loading @@ -2935,6 +2940,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return 0; } enforceCrossUserPermission(userHandle); enforceNotManagedProfile(userHandle, "list disabled keyguard features"); synchronized (this) { if (who != null) { ActiveAdmin admin = getActiveAdminUncheckedLocked(who, userHandle); Loading Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +6 −0 Original line number Diff line number Diff line Loading @@ -2411,6 +2411,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return; } enforceCrossUserPermission(userHandle); if ((flags & DevicePolicyManager.WIPE_EXTERNAL_STORAGE) != 0) { enforceNotManagedProfile(userHandle, "wipe external storage"); } synchronized (this) { // This API can only be called by an active device admin, // so try to retrieve it to check that the caller is one. Loading Loading @@ -2863,6 +2866,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return; } enforceCrossUserPermission(userHandle); enforceNotManagedProfile(userHandle, "enable/disable cameras"); synchronized (this) { if (who == null) { throw new NullPointerException("ComponentName is null"); Loading Loading @@ -2912,6 +2916,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return; } enforceCrossUserPermission(userHandle); enforceNotManagedProfile(userHandle, "disable keyguard features"); synchronized (this) { if (who == null) { throw new NullPointerException("ComponentName is null"); Loading @@ -2935,6 +2940,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { return 0; } enforceCrossUserPermission(userHandle); enforceNotManagedProfile(userHandle, "list disabled keyguard features"); synchronized (this) { if (who != null) { ActiveAdmin admin = getActiveAdminUncheckedLocked(who, userHandle); Loading