manager: Only display the option to use LKM files when the kernel version is greater than 5.10

This commit is contained in:
ShirkNeko
2025-11-18 00:34:19 +08:00
parent ad2a23f55e
commit 99d58c8cfd

View File

@@ -353,6 +353,7 @@ fun InstallScreen(
.fillMaxWidth() .fillMaxWidth()
.padding(16.dp) .padding(16.dp)
) { ) {
if (isGKI) {
// 使用本地的LKM文件 // 使用本地的LKM文件
ElevatedCard( ElevatedCard(
colors = getCardColors(MaterialTheme.colorScheme.surfaceVariant), colors = getCardColors(MaterialTheme.colorScheme.surfaceVariant),
@@ -386,6 +387,7 @@ fun InstallScreen(
.clickable { onLkmUpload() } .clickable { onLkmUpload() }
) )
} }
}
(installMethod as? InstallMethod.HorizonKernel)?.let { method -> (installMethod as? InstallMethod.HorizonKernel)?.let { method ->
if (method.slot != null) { if (method.slot != null) {