Commit Graph

12 Commits

Author SHA1 Message Date
Ylarod 898e9d4f8c [1.0] Drop Non-GKI Support (#1483)
Co-authored-by: weishu <twsxtd@gmail.com>
2024-06-01 14:50:46 +08:00
Rissu bd5100d698 kernel: fix throne_tracker uncompile-able on 4.4 kernel (issue #1771) (#1773)
in kernel v4.7.10:
extern unsigned int __pure full_name_hash(const char *, unsigned int);

in kernel v4.8.0:
extern unsigned int __pure full_name_hash(const void *salt, const char
*, unsigned int);
2024-05-27 10:35:08 +08:00
Juhyung Park 038dae1d6f Deadlock fixes (#1758)
Hi,

This PR fixes deadlocks that I've noticed within my kernel, with some
minor optimizations around it.

Thanks.

---------

Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
2024-05-26 17:03:33 +08:00
weishu 646b6f71f4 kernel: close fd early 2024-04-29 15:53:12 +08:00
weishu efbc07fde3 kernel: use library import 2024-04-27 09:55:24 +08:00
Heiler Bemerguy 4f9bbf199b throne_tracker: Fix Manager sometimes not detecting KSU and optimize it (#1586)
The original logic was wrong and used 3 strlen()s for every file found,
wasting cpu.

Optimize it by first comparing only the filename length, given we
already know it,
and then strncmp() to compare with "base.apk"

Tested successfully on my Bandido Kernel (4.19)
2024-04-03 14:33:10 +08:00
weishu 5f7d4b609f kernel: Fix wrong kfree 2024-03-27 13:49:09 +08:00
weishu eb24884684 kernel: alloc path on stack; don't follow symlink 2024-03-27 11:51:41 +08:00
weishu 006a1b7657 kernel: continue search when open some dir failed 2024-03-26 22:56:59 +08:00
weishu 858ec910fd kernel: clean memory when exit 2024-03-24 16:41:53 +08:00
Jprimero15 96242df228 kernel: make for loop compatible (#1517) 2024-03-24 15:04:57 +08:00
weishu dc5f911e43 kernel: remove become_manager and minor refactors 2024-03-24 11:20:43 +08:00