Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throne_tracker: Fix Manager sometimes not detecting KSU and optimize it #1586

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

bemerguy
Copy link
Contributor

@bemerguy bemerguy commented Apr 3, 2024

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)

The original logic was wrong and used 3 strlen()s for every file found.

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)
@tiann
Copy link
Owner

tiann commented Apr 3, 2024

thank you!

@tiann tiann merged commit 4f9bbf1 into tiann:main Apr 3, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants