Merge "SystemPreparer: remove support for FDE devices" am: 98f0a11a8a am: 7e0aeb84b0 am: 0ae29439c6 am: 95c68c6024
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1889876 Change-Id: Id91f2a2da0f16db1a3040817cf6645543b50830d
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