manager: More standard working mode display (#384)
Actually, the working mode should be displayed here, rather than the kernel type This misled many people, leading them to misunderstand the meaning of GKI Signed-off-by: Cloud_Yun <1770669041@qq.com>
This commit is contained in:
@@ -14,7 +14,6 @@ data class KernelVersion(val major: Int, val patchLevel: Int, val subLevel: Int)
|
||||
major == 5 && patchLevel >= 10 -> true
|
||||
else -> false
|
||||
}
|
||||
fun isGKI1(): Boolean = (major == 4 && patchLevel >= 19) || (major == 5 && patchLevel < 10)
|
||||
}
|
||||
|
||||
fun parseKernelVersion(version: String): KernelVersion {
|
||||
|
||||
@@ -333,9 +333,7 @@ private fun StatusCard(
|
||||
|
||||
val workingModeSurfaceText = when {
|
||||
systemStatus.lkmMode == true -> "LKM"
|
||||
systemStatus.lkmMode == null && systemStatus.kernelVersion.isGKI1() -> "GKI 1.0"
|
||||
systemStatus.lkmMode == false || systemStatus.kernelVersion.isGKI() -> "GKI 2.0"
|
||||
else -> "N-GKI"
|
||||
else -> "Built-in"
|
||||
}
|
||||
|
||||
Icon(
|
||||
|
||||
Reference in New Issue
Block a user