diff --git a/app/src/main/java/com/topjohnwu/magisk/core/Info.kt b/app/src/main/java/com/topjohnwu/magisk/core/Info.kt index c3bb5b5c4..8118969e1 100644 --- a/app/src/main/java/com/topjohnwu/magisk/core/Info.kt +++ b/app/src/main/java/com/topjohnwu/magisk/core/Info.kt @@ -30,7 +30,6 @@ object Info { @JvmStatic val env by lazy { loadState() } @JvmField var isSAR = false var isAB = false - val isVirtualAB = getProperty("ro.virtual_ab.enabled", "false") == "true" @JvmField val isZygiskEnabled = System.getenv("ZYGISK_ENABLED") == "1" @JvmStatic val isFDE get() = crypto == "block" @JvmField var ramdisk = false diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt index f71762b1e..928582082 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/install/InstallViewModel.kt @@ -28,7 +28,7 @@ class InstallViewModel( val isRooted = Shell.rootAccess() val hideVbmeta = Info.vbmeta || Info.isSamsung || Info.isAB val skipOptions = Info.isEmulator || (Info.isSAR && !Info.isFDE && hideVbmeta && Info.ramdisk) - val noSecondSlot = !isRooted || Info.isVirtualAB || !Info.isAB || Info.isEmulator + val noSecondSlot = !isRooted || !Info.isAB || Info.isEmulator @get:Bindable var step = if (skipOptions) 1 else 0