mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
disable pixel check for noSecondSlot
This commit is contained in:
parent
bfe6bc3095
commit
f466c27da9
@ -39,7 +39,6 @@ object Info {
|
|||||||
var noDataExec = false
|
var noDataExec = false
|
||||||
|
|
||||||
@JvmField var hasGMS = true
|
@JvmField var hasGMS = true
|
||||||
@JvmField val isPixel = Build.BRAND == "google"
|
|
||||||
val isSamsung = Build.MANUFACTURER.equals("samsung", ignoreCase = true)
|
val isSamsung = Build.MANUFACTURER.equals("samsung", ignoreCase = true)
|
||||||
@JvmField val isEmulator =
|
@JvmField val isEmulator =
|
||||||
getProperty("ro.kernel.qemu", "0") == "1" ||
|
getProperty("ro.kernel.qemu", "0") == "1" ||
|
||||||
|
@ -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.isPixel || Info.isVirtualAB || !Info.isAB || Info.isEmulator
|
val noSecondSlot = !isRooted || Info.isVirtualAB || !Info.isAB || Info.isEmulator
|
||||||
|
|
||||||
@get:Bindable
|
@get:Bindable
|
||||||
var step = if (skipOptions) 1 else 0
|
var step = if (skipOptions) 1 else 0
|
||||||
|
Loading…
Reference in New Issue
Block a user