Conversation
Collaborator
Author
|
Need someone to integrate it into workflow |
1d14722 to
02a1038
Compare
f1066ba to
ae897bd
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds ksuinit, a new userspace initialization program written in Rust that loads the KernelSU kernel module during early boot. The program acts as a pre-init that sets up the environment, optionally loads the KernelSU module, and then transfers control to the real Android init process.
Key changes:
- New
ksuinitRust project with ELF parsing and kernel module loading capabilities - Early boot initialization that mounts procfs/sysfs and manages kernel logging
- CI/CD workflow updates to build ksuinit for aarch64 and x86_64 Android targets using musl libc
Reviewed changes
Copilot reviewed 8 out of 11 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| userspace/ksuinit/src/main.rs | Entry point that initializes the system and executes the real init |
| userspace/ksuinit/src/loader.rs | ELF module loader that resolves kernel symbols and loads KernelSU module |
| userspace/ksuinit/src/init.rs | Initialization logic for mounting filesystems, setting up logging, and detecting KernelSU |
| userspace/ksuinit/build.rs | Build script to handle musl linking requirements for aarch64 and x86_64 |
| userspace/ksuinit/Cargo.toml | Project dependencies and build configuration |
| userspace/ksuinit/Cargo.lock | Locked dependency versions |
| userspace/ksuinit/.gitignore | Git ignore patterns for build artifacts |
| .github/workflows/ksud.yml | CI workflow additions to build ksuinit binaries |
| .github/workflows/build-manager.yml | Updated workflow triggers to include ksuinit changes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
selfmusing
pushed a commit
to selfmusing/USlenreK
that referenced
this pull request
Dec 11, 2025
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
larpedd
pushed a commit
to larpedd/KernelSU
that referenced
this pull request
Dec 20, 2025
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
u9521
pushed a commit
to u9521/KernelSU
that referenced
this pull request
Jan 5, 2026
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
u9521
pushed a commit
to u9521/KernelSU
that referenced
this pull request
Jan 5, 2026
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
u9521
pushed a commit
to u9521/KernelSU
that referenced
this pull request
Jan 8, 2026
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
u9521
pushed a commit
to u9521/KernelSU
that referenced
this pull request
Jan 13, 2026
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
LeCmnGend
pushed a commit
to LeCmnGend/KernelSU
that referenced
this pull request
Feb 23, 2026
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.