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

Commit 7e0aeb84 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "SystemPreparer: remove support for FDE devices" am: 98f0a11a

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889876

Change-Id: I4041e5e2945fae7ec8551afcef5a0fb671414628
parents 9966ff4b 98f0a11a
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -207,17 +207,6 @@ public class SystemPreparer extends ExternalResource {
            default:
                device.executeShellCommand("stop");
                device.executeShellCommand("start");
                ITestDevice.RecoveryMode cachedRecoveryMode = device.getRecoveryMode();
                device.setRecoveryMode(ITestDevice.RecoveryMode.ONLINE);

                if (device.isEncryptionSupported()) {
                    if (device.isDeviceEncrypted()) {
                        LogUtil.CLog.e("Device is encrypted after userspace reboot!");
                        device.unlockDevice();
                    }
                }

                device.setRecoveryMode(cachedRecoveryMode);
                device.waitForDeviceAvailable();
                break;
        }