Commit 053f4d48 authored by capntrips's avatar capntrips Committed by John Wu

disable virtualAB check for noSecondSlot

parent f466c27d
...@@ -30,7 +30,6 @@ object Info { ...@@ -30,7 +30,6 @@ object Info {
@JvmStatic val env by lazy { loadState() } @JvmStatic val env by lazy { loadState() }
@JvmField var isSAR = false @JvmField var isSAR = false
var isAB = false var isAB = false
val isVirtualAB = getProperty("ro.virtual_ab.enabled", "false") == "true"
@JvmField val isZygiskEnabled = System.getenv("ZYGISK_ENABLED") == "1" @JvmField val isZygiskEnabled = System.getenv("ZYGISK_ENABLED") == "1"
@JvmStatic val isFDE get() = crypto == "block" @JvmStatic val isFDE get() = crypto == "block"
@JvmField var ramdisk = false @JvmField var ramdisk = false
......
...@@ -28,7 +28,7 @@ class InstallViewModel( ...@@ -28,7 +28,7 @@ class InstallViewModel(
val isRooted = Shell.rootAccess() val isRooted = Shell.rootAccess()
val hideVbmeta = Info.vbmeta || Info.isSamsung || Info.isAB val hideVbmeta = Info.vbmeta || Info.isSamsung || Info.isAB
val skipOptions = Info.isEmulator || (Info.isSAR && !Info.isFDE && hideVbmeta && Info.ramdisk) 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 @get:Bindable
var step = if (skipOptions) 1 else 0 var step = if (skipOptions) 1 else 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment