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

ksud(feat): Parse KMI from boot or kernel #1914

Merged
merged 5 commits into from
Jul 26, 2024
Merged

ksud(feat): Parse KMI from boot or kernel #1914

merged 5 commits into from
Jul 26, 2024

Conversation

chise0713
Copy link
Contributor

  _  __                    _ ____  _   _ 
 | |/ /___ _ __ _ __   ___| / ___|| | | |
 | ' // _ \ '__| '_ \ / _ \ \___ \| | | |
 | . \  __/ |  | | | |  __/ |___) | |_| |
 |_|\_\___|_|  |_| |_|\___|_|____/ \___/ 

- Unsupported platform
- Trying to auto detect KMI version for ./image.img
- Preparing assets
- KMI: android12-5.10
- Unpacking boot image
- Adding KernelSU LKM
- Repacking boot image
- Output file is written to
- /tmp/tmp.dzLsDK6iyj/kernelsu_patched_20240726_012936.img
- Done!

It can only auto-detect when the kernel name is r"(?:.* )?(\d+\.\d+)(?:\S+)?(android\d+)", otherwise you should use --kmi flag to specified your KMI version.

Copy link
Collaborator

@yujincheng08 yujincheng08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use regex-lite instead.

And if you are willing, also change other usage of regex to regex-lite.

Copy link
Collaborator

@yujincheng08 yujincheng08 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix clippy

@yujincheng08 yujincheng08 merged commit f722062 into tiann:main Jul 26, 2024
2 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