Revert "[1.0] Drop Non-GKI Support (#1483)"

This reverts commit 898e9d4f8c.
This commit is contained in:
Rifat Azad
2024-12-24 06:54:08 +06:00
parent cf75aa4a11
commit f929e40295
14 changed files with 581 additions and 11 deletions
+4
View File
@@ -170,7 +170,11 @@ FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name,
} else {
if ((namelen == 8) && (strncmp(name, "base.apk", namelen) == 0)) {
struct apk_path_hash *pos, *n;
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
unsigned int hash = full_name_hash(dirpath, strlen(dirpath));
#else
unsigned int hash = full_name_hash(NULL, dirpath, strlen(dirpath));
#endif
list_for_each_entry(pos, &apk_path_hash_list, list) {
if (hash == pos->hash) {
pos->exists = true;