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:
Cloud_Yun
2025-09-10 23:32:58 +09:00
committed by GitHub
parent e8852223c4
commit 6973ce6a1f
2 changed files with 1 additions and 4 deletions

View File

@@ -14,7 +14,6 @@ data class KernelVersion(val major: Int, val patchLevel: Int, val subLevel: Int)
major == 5 && patchLevel >= 10 -> true major == 5 && patchLevel >= 10 -> true
else -> false else -> false
} }
fun isGKI1(): Boolean = (major == 4 && patchLevel >= 19) || (major == 5 && patchLevel < 10)
} }
fun parseKernelVersion(version: String): KernelVersion { fun parseKernelVersion(version: String): KernelVersion {

View File

@@ -333,9 +333,7 @@ private fun StatusCard(
val workingModeSurfaceText = when { val workingModeSurfaceText = when {
systemStatus.lkmMode == true -> "LKM" systemStatus.lkmMode == true -> "LKM"
systemStatus.lkmMode == null && systemStatus.kernelVersion.isGKI1() -> "GKI 1.0" else -> "Built-in"
systemStatus.lkmMode == false || systemStatus.kernelVersion.isGKI() -> "GKI 2.0"
else -> "N-GKI"
} }
Icon( Icon(