Loading services/java/com/android/server/DevicePolicyManagerService.java +21 −17 Original line number Diff line number Diff line Loading @@ -1875,6 +1875,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { DeviceAdminInfo.USES_POLICY_WIPE_DATA); long ident = Binder.clearCallingIdentity(); try { wipeDeviceOrUserLocked(flags, userHandle); } finally { Binder.restoreCallingIdentity(ident); } } } private void wipeDeviceOrUserLocked(int flags, final int userHandle) { if (userHandle == UserHandle.USER_OWNER) { wipeDataLocked(flags); } else { Loading @@ -1891,10 +1899,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { } }); } } finally { Binder.restoreCallingIdentity(ident); } } } public void getRemoveWarning(ComponentName comp, final RemoteCallback result, int userHandle) { Loading Loading @@ -1996,7 +2000,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { saveSettingsLocked(userHandle); int max = getMaximumFailedPasswordsForWipe(null, userHandle); if (max > 0 && policy.mFailedPasswordAttempts >= max) { wipeDataLocked(0); wipeDeviceOrUserLocked(0, userHandle); } sendAdminCommandLocked(DeviceAdminReceiver.ACTION_PASSWORD_FAILED, DeviceAdminInfo.USES_POLICY_WATCH_LOGIN, userHandle); Loading Loading
services/java/com/android/server/DevicePolicyManagerService.java +21 −17 Original line number Diff line number Diff line Loading @@ -1875,6 +1875,14 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { DeviceAdminInfo.USES_POLICY_WIPE_DATA); long ident = Binder.clearCallingIdentity(); try { wipeDeviceOrUserLocked(flags, userHandle); } finally { Binder.restoreCallingIdentity(ident); } } } private void wipeDeviceOrUserLocked(int flags, final int userHandle) { if (userHandle == UserHandle.USER_OWNER) { wipeDataLocked(flags); } else { Loading @@ -1891,10 +1899,6 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { } }); } } finally { Binder.restoreCallingIdentity(ident); } } } public void getRemoveWarning(ComponentName comp, final RemoteCallback result, int userHandle) { Loading Loading @@ -1996,7 +2000,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { saveSettingsLocked(userHandle); int max = getMaximumFailedPasswordsForWipe(null, userHandle); if (max > 0 && policy.mFailedPasswordAttempts >= max) { wipeDataLocked(0); wipeDeviceOrUserLocked(0, userHandle); } sendAdminCommandLocked(DeviceAdminReceiver.ACTION_PASSWORD_FAILED, DeviceAdminInfo.USES_POLICY_WATCH_LOGIN, userHandle); Loading