Merge "Check "Secure start-up" before toggling emulation." into nyc-dev

This commit is contained in:
Jeff Sharkey
2016-03-21 21:10:33 +00:00
committed by Android (Google) Code Review

View File

@@ -1946,6 +1946,10 @@ class MountService extends IMountService.Stub
throw new IllegalStateException(
"Emulation not available on device with native FBE");
}
if (mLockPatternUtils.isCredentialRequiredToDecrypt(false)) {
throw new IllegalStateException(
"Emulation requires disabling 'Secure start-up' in Settings > Security");
}
final long token = Binder.clearCallingIdentity();
try {