Commit Graph

418 Commits

Author SHA1 Message Date
ShirkNeko
c0c4ea9f86 feat: 引入KPM模块以支持文件系统数据处理 2025-04-07 21:26:08 +08:00
ShirkNeko
a13179cd09 feat: 添加KPM模块以支持KPM相关功能 2025-04-07 21:21:36 +08:00
ShirkNeko
de089b7b73 feat: Adding a KPM monitor to handle KPM file creation and deletion events 2025-04-07 21:18:14 +08:00
WenHao2130
470b3106cb ksud: update banner
Signed-off-by: WenHao2130 <WenHao2130@outlook.com>
2025-04-04 15:00:55 +08:00
liankong
e9d0526e1b 1 2025-04-01 12:28:59 +08:00
liankong
5a8d6895fa 添加加载成功提示 2025-03-31 22:32:42 +08:00
liankong
5a522a1489 kpmmgr 2025-03-31 16:01:22 +08:00
liankong
18876e8a69 修复kpmmgr 2025-03-31 16:00:09 +08:00
liankong
9de2c09a27 更新kpmmgr 2025-03-31 15:40:28 +08:00
ShirkNeko
a9be524a78 Define KERNEL_SU_OPTION constants in kpmmgr.c to enhance code readability 2025-03-29 17:28:35 +08:00
ShirkNeko
c2395d48f2 Fix KPM control code logic, adjust prctl call parameters to handle return values correctly 2025-03-29 16:57:14 +08:00
ShirkNeko
5c02a47572 Update build workflow to download arm64 kpmmgr and adjust library file paths 2025-03-29 16:18:56 +08:00
ShirkNeko
e6baa7fe56 Add kpmmgr to build the workflow and related source files 2025-03-29 15:35:14 +08:00
Wang Han
f02ab90ca9 Fix su --shell argument handling (#2529)
This fixes https://github.com/tiann/KernelSU/issues/2523.
2025-03-26 15:00:40 +08:00
ShirkNeko
ff99ab8e62 Changing the custom background expand more options logic
Co-authored-by:ShirkNeko <ShirkNeko@alone2832165@gmail.com>
2025-03-22 16:37:30 +08:00
ShirkNeko
7b7fff91a6 Upload source files to complete submission of history changes
Co-authored-by:Shirkneko <Shirkneko@2773800761@qq.com>
2025-03-22 15:20:51 +08:00
Rifat Azad
3121eb0f9a manager: add susfs status and sus_su toggle
userspace: add susfsd
ci: build susfsd
ksud_overlayfs: update aarch64 bin  BusyBox v1.36.1.1 topjohnwu (2024-10-06 01:38:43 PDT)

Co-authored-by: rifsxd <rifat.44.azad.rifs@gmail.com>
2025-03-22 15:20:02 +08:00
ShirkNeko
ba26677cfc Merge some files and rewrite the update history 2025-03-22 14:09:21 +08:00
backslashxx
b28789ac7a ksud: probe for more workdir candidates (#12)
- reuses old ksu functions
- makes sure its an empty dir
- adapted from https://github.com/rsuntk/KernelSU/commit/141f010 71cb86c2e9

Co-authored-by: powellnorma <101364699+powellnorma@users.noreply.github.com>
Co-authored-by: Rissu <90097027+rsuntk@users.noreply.github.com>
2025-03-09 17:00:03 +08:00
5ec1cff
99d923cf8b reformat rust codes 2025-03-09 00:37:50 +08:00
5ec1cff
6bf9501acf ksud: fix stat 2025-03-09 00:05:27 +08:00
5ec1cff
c5ec2ff94b ksud: make tmpfs and magic mount optional
- Create /data/adb/ksu/{.notmpfs,.nomount} to disable them.
2025-03-09 00:05:26 +08:00
5ec1cff
ec383ed661 allow restore uninstalled module 2025-03-09 00:05:23 +08:00
backslashxx
6cdf264402 ksud: add KSU_MAGIC_MOUNT to env (#5) 2025-03-08 23:56:24 +08:00
5ec1cff
ffa571e950 ksud: refine tmpfs 2025-03-08 23:56:23 +08:00
5ec1cff
c6f5b85f49 ksud: fix clone symlink 2025-03-08 23:56:23 +08:00
5ec1cff
e8ac17f261 ksud: fix partition link 2025-03-08 23:56:23 +08:00
5ec1cff
6461c5502b ksud: fix odm not magic-mounted 2025-03-08 23:55:25 +08:00
5ec1cff
d9f28860c7 ksud: fix disable / enable modules 2025-03-08 23:55:25 +08:00
5ec1cff
44f13e4a1f magic_mount: refine 2025-03-08 23:55:25 +08:00
5ec1cff
43563b654a log: make verbose logging optional 2025-03-08 23:55:24 +08:00
5ec1cff
3c4d45dc31 magic_mount: fix 2025-03-08 23:55:24 +08:00
5ec1cff
b9883dfec3 chore: refine code 2025-03-08 23:55:24 +08:00
5ec1cff
ba8d85e356 magic_mount: supports whiteout 2025-03-08 23:55:23 +08:00
5ec1cff
af988ec8ec chore: fmt 2025-03-08 23:55:23 +08:00
5ec1cff
6f3ab6d6d3 magic_mount: use trusted.overlay.opaque 2025-03-08 23:55:23 +08:00
5ec1cff
f10483ffa3 restorecon: set adb_file to system_file for module files 2025-03-08 23:55:23 +08:00
5ec1cff
a5edae9fac implement magic mount 2025-03-08 23:55:20 +08:00
weishu
4fdd3e07e5 ksud: migrate to Rust 2024 edition 2025-02-24 16:53:37 +08:00
weishu
e245e3419d ksud: upgrade nom to 8.0 2025-02-24 16:45:24 +08:00
dependabot[bot]
1d50f902b7 build(deps): bump the crates group across 1 directory with 17 updates (#2472)
Bumps the crates group with 15 updates in the /userspace/ksud directory:

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-24 12:19:50 +08:00
Caner Karaca
0254936bb2 Update Dependencies (#2440)
- Use latest Node
- Update GitHub Action
- Update NDK
- Update Gradle
- Update Cargo dependencies
- Remove unused dependencies
- Remove unnecessary build tools version (AGP handles it now)

No issues too far, since there is no major changes, i don't think there
will be issue.

Clippy passes fine on my end, new version of `nom` dependency causes
issues.
2025-02-24 11:40:09 +08:00
weishu
38dc2eb4f0 ksud: determine modules's size by checking partion size 2025-02-17 21:05:13 +08:00
weishu
4ede20ef83 ksud: remove journal for ext4 images 2025-02-17 20:22:12 +08:00
Wang Han
ce13d050ca Drop module image if no module remaining (#2447)
This fixes the issue that module image will always exist even if there
is no module to be loaded. Sadly we need to boot twice because we can
only know module status after image is mounted.
2025-02-17 09:15:04 +08:00
dependabot[bot]
101d3ae526 build(deps): bump home from 0.5.9 to 0.5.11 in /userspace/ksud (#2423)
Bumps [home](https://github.com/rust-lang/cargo) from 0.5.9 to 0.5.11.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="addcc8ca71"><code>addcc8c</code></a>
Update release information for home 0.5.11 (<a
href="https://redirect.github.com/rust-lang/cargo/issues/14939">#14939</a>)</li>
<li><a
href="e5c4dc65c9"><code>e5c4dc6</code></a>
Limit release trigger to 0.* tags (<a
href="https://redirect.github.com/rust-lang/cargo/issues/14940">#14940</a>)</li>
<li><a
href="f18cbda5ab"><code>f18cbda</code></a>
Limit release trigger to 0.* tags</li>
<li><a
href="20ec18a3ff"><code>20ec18a</code></a>
Update home changelog</li>
<li><a
href="014378f8c0"><code>014378f</code></a>
Clarify status of <code>home_dir</code></li>
<li><a
href="769f622e12"><code>769f622</code></a>
test(build-std): dont require rustup (<a
href="https://redirect.github.com/rust-lang/cargo/issues/14933">#14933</a>)</li>
<li><a
href="80409f7016"><code>80409f7</code></a>
test(build-std): dont require rustup</li>
<li><a
href="7847c03965"><code>7847c03</code></a>
fix(base): Support bases in patches in virtual manifests (<a
href="https://redirect.github.com/rust-lang/cargo/issues/14931">#14931</a>)</li>
<li><a
href="5b8b2ac248"><code>5b8b2ac</code></a>
fix(base): Support bases in patches in virtual manifests</li>
<li><a
href="2d23b94a7f"><code>2d23b94</code></a>
test(base): Verify bases in patches in virtual manifests</li>
<li>Additional commits viewable in <a
href="https://github.com/rust-lang/cargo/compare/home-0.5.9...home-0.5.11">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=home&package-manager=cargo&previous-version=0.5.9&new-version=0.5.11)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-13 11:56:11 +08:00
weishu
3d3bc5ce3c ksud: make clippy happy 2025-02-05 16:15:10 +08:00
Wang Han
1998dbcb55 Update busybox (#2383)
https://github.com/topjohnwu/magisk-files/releases/download/files/busybox-1.36.1.1.zip
2025-01-26 05:18:32 +08:00
D8G Official
c3926d3982 ksud: Fix warning unused import (#2382) 2025-01-25 20:00:45 +08:00
5ec1cff
a953ae97b7 ksud: fix copy sparse file (#2374) 2025-01-24 18:46:39 +08:00