Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cfee793 authored by Martynas Petuška's avatar Martynas Petuška
Browse files

Fix appcompat usage for wipeData API

Bug: b/259407605
Test: Invoke wipeData API via TestDPC with targetSdkVersion <33
Change-Id: I8684b112a7d06a633be4d5a416c8272be1730a84
parent a3d6ae10
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6880,7 +6880,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 {