Merge "Fix appcompat usage for wipeData API"
This commit is contained in:
committed by
Android (Google) Code Review
commit
6a49895d47
@@ -6894,7 +6894,9 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
||||
|
||||
boolean isSystemUser = userId == UserHandle.USER_SYSTEM;
|
||||
boolean wipeDevice;
|
||||
if (factoryReset == null || !CompatChanges.isChangeEnabled(EXPLICIT_WIPE_BEHAVIOUR)) {
|
||||
if (factoryReset == null || !mInjector.isChangeEnabled(EXPLICIT_WIPE_BEHAVIOUR,
|
||||
admin.getPackageName(),
|
||||
userId)) {
|
||||
// Legacy mode
|
||||
wipeDevice = isSystemUser;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user