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

Commit 3dc7c04d authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

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

parents 89531474 5a785168
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 {