From 319721c1a44cd2fed6a210064d93de41fd0d5faf Mon Sep 17 00:00:00 2001 From: althafvly Date: Fri, 2 Jun 2023 14:19:52 +0530 Subject: [PATCH] SetupWizard: Make sure its not emulator device --- src/org/lineageos/setupwizard/SetupWizardApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/lineageos/setupwizard/SetupWizardApp.java b/src/org/lineageos/setupwizard/SetupWizardApp.java index 243e1734..417000ba 100644 --- a/src/org/lineageos/setupwizard/SetupWizardApp.java +++ b/src/org/lineageos/setupwizard/SetupWizardApp.java @@ -101,7 +101,7 @@ public class SetupWizardApp extends Application { SetupWizardUtils.setMobileDataEnabled(this, false); mHandler.postDelayed(mRadioTimeoutRunnable, SetupWizardApp.RADIO_READY_TIMEOUT); // If the bootloader is locked, and OEM unlocking is allowed, turn it off - if (SetupWizardUtils.isOwner() + if (!Build.IS_EMULATOR && SetupWizardUtils.isOwner() && !SetupWizardUtils.isBootloaderUnlocked(this) && SetupWizardUtils.isOemunlockAllowed(this)) { String manufacturer = Build.MANUFACTURER.toLowerCase(); -- GitLab