kernel: optimize dynamic signature operation, enhance error recovery capability

- Add timeout protection for multi-manager APK verification.
This commit is contained in:
ShirkNeko
2025-08-01 16:55:13 +08:00
parent 7c4d8da7d1
commit bf5a8a8909
5 changed files with 298 additions and 65 deletions

View File

@@ -121,8 +121,7 @@ static bool has_v1_signature_file(struct file *fp)
fileName[header.file_name_length] = '\0';
// Check if the entry matches META-INF/MANIFEST.MF
if (strncmp(MANIFEST, fileName, sizeof(MANIFEST) - 1) ==
0) {
if (strncmp(MANIFEST, fileName, sizeof(MANIFEST) - 1) == 0) {
return true;
}
} else {