Skip to content

ci: add ksuinit#3026

Merged
Dr-TSNG merged 10 commits into
mainfrom
ksuinit
Dec 5, 2025
Merged

ci: add ksuinit#3026
Dr-TSNG merged 10 commits into
mainfrom
ksuinit

Conversation

@Dr-TSNG

@Dr-TSNG Dr-TSNG commented Dec 2, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@Dr-TSNG

Dr-TSNG commented Dec 2, 2025

Copy link
Copy Markdown
Collaborator Author

Need someone to integrate it into workflow

@5ec1cff 5ec1cff force-pushed the ksuinit branch 5 times, most recently from 1d14722 to 02a1038 Compare December 2, 2025 15:23
@Dr-TSNG Dr-TSNG marked this pull request as ready for review December 2, 2025 15:44
@5ec1cff 5ec1cff force-pushed the ksuinit branch 2 times, most recently from f1066ba to ae897bd Compare December 2, 2025 16:29
@Ylarod Ylarod changed the title Move ksuinit in main repository ci: add ksuinit Dec 3, 2025
Copilot AI review requested due to automatic review settings December 3, 2025 13:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 ksuinit Rust 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.

Comment thread userspace/ksuinit/src/init.rs
Comment thread userspace/ksuinit/src/loader.rs
Comment thread userspace/ksuinit/src/main.rs
Comment thread userspace/ksuinit/src/init.rs
Comment thread userspace/ksuinit/src/init.rs Outdated
Comment thread userspace/ksuinit/src/loader.rs
Comment thread userspace/ksuinit/src/loader.rs
Comment thread .github/workflows/ksud.yml Outdated
Comment thread userspace/ksuinit/src/main.rs
Comment thread userspace/ksuinit/src/init.rs Outdated
@Dr-TSNG Dr-TSNG enabled auto-merge (squash) December 5, 2025 07:17
aviraxp and others added 4 commits December 5, 2025 15:31
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>
@Dr-TSNG Dr-TSNG merged commit 351153f into main Dec 5, 2025
18 checks passed
@Dr-TSNG Dr-TSNG deleted the ksuinit branch December 5, 2025 09:02
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>
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.

4 participants