From 192323ad5c6c113f821049bd1b948e51a6901edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B1=E5=B4=8E=E9=BB=91=E6=9D=BF?= <94628337+YuzakiKokuban@users.noreply.github.com> Date: Thu, 11 Sep 2025 20:18:02 +0800 Subject: [PATCH] Add support for more kernel image name in KPM patcher (#386) --- .../src/main/java/zako/zako/zako/zakoui/flash/KernelFlash.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/app/src/main/java/zako/zako/zako/zakoui/flash/KernelFlash.kt b/manager/app/src/main/java/zako/zako/zako/zakoui/flash/KernelFlash.kt index 0ff75ad7..50a6bfb3 100644 --- a/manager/app/src/main/java/zako/zako/zako/zakoui/flash/KernelFlash.kt +++ b/manager/app/src/main/java/zako/zako/zako/zakoui/flash/KernelFlash.kt @@ -301,7 +301,7 @@ class HorizonKernelWorker( } // 查找Image文件 - val findImageResult = runCommandGetOutput("find $extractDir -name 'Image' -type f") + val findImageResult = runCommandGetOutput("find $extractDir -name '*Image*' -type f") if (findImageResult.isBlank()) { throw IOException(context.getString(R.string.kpm_image_file_not_found)) }