Merge "SystemPreparer: remove support for FDE devices" am: 98f0a11a8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889876 Change-Id: I4041e5e2945fae7ec8551afcef5a0fb671414628
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user