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

Commit 5a785168 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Check "Secure start-up" before toggling emulation.

To fully emulate FBE we need to avoid the Cryptkeeper bounce, so
check to make sure user has disabled "Secure start-up" so vold can
unlock early during boot.

Bug: 27595501
Change-Id: Ic0d03f94982534381671e1039f14d1fd06bc0e4e
parent f0ec2e00
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 {