diff options
author | 2016-03-21 21:10:33 +0000 | |
---|---|---|
committer | 2016-03-21 21:10:35 +0000 | |
commit | 3dc7c04d80c3d547fc8615387a3c3e4fa0721d4c (patch) | |
tree | 09bc7a0f97303a9581505cb11f71899ef512a682 | |
parent | 895314740072c4ccd317f646b5e8a226ae91afbf (diff) | |
parent | 5a785168975f43a4c6b848342d4439ed1689b2fa (diff) |
Merge "Check "Secure start-up" before toggling emulation." into nyc-dev
-rw-r--r-- | services/core/java/com/android/server/MountService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/MountService.java b/services/core/java/com/android/server/MountService.java index 65a22b9a29e9..ccca5baa798a 100644 --- a/services/core/java/com/android/server/MountService.java +++ b/services/core/java/com/android/server/MountService.java @@ -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 { |