Add support for more kernel image name in KPM patcher (#386)
This commit is contained in:
@@ -301,7 +301,7 @@ class HorizonKernelWorker(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查找Image文件
|
// 查找Image文件
|
||||||
val findImageResult = runCommandGetOutput("find $extractDir -name 'Image' -type f")
|
val findImageResult = runCommandGetOutput("find $extractDir -name '*Image*' -type f")
|
||||||
if (findImageResult.isBlank()) {
|
if (findImageResult.isBlank()) {
|
||||||
throw IOException(context.getString(R.string.kpm_image_file_not_found))
|
throw IOException(context.getString(R.string.kpm_image_file_not_found))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user