Commit Graph

415 Commits

Author SHA1 Message Date
ShirkNeko
aa20d04d3a Refactoring KPM module loading logic, removing existing KPM loading functions, simplifying code and enhancing error handling 2025-04-14 15:51:47 +08:00
ShirkNeko
949106bc09 Refactoring KPM module loading logic, adding modification event handling, improving error handling 2025-04-14 15:39:43 +08:00
ShirkNeko
67babc2858 Enhanced KPM module loading logic, added filename validation and error handling 2025-04-14 15:35:11 +08:00
ShirkNeko
d087ec510e Ksud: refactor KPM event handling logic, add error handling and ensure KPM catalog exists 2025-04-14 15:26:30 +08:00
ShirkNeko
2266362e24 Changing the package name 2025-04-12 00:33:46 +08:00
ShirkNeko
865dbd3799 feat: Load Existing KPM Modules on KPM Monitor Startup 2025-04-08 19:03:29 +08:00
ShirkNeko
aa2d2454e1 feat: 引入anyhow库以增强错误处理能力 2025-04-07 22:33:45 +08:00
ShirkNeko
b850336872 feat: Optimize KPM file processing logic, use is_some_and method to simplify extension checking, and enhance readability and stability of event processing. 2025-04-07 22:28:22 +08:00
ShirkNeko
138dec35c7 feat: Add KPM module management function, support loading, unloading and deleting all KPM modules. 2025-04-07 22:13:21 +08:00
ShirkNeko
569fffa962 feat: 引入notify库以支持KPM目录的文件监控 2025-04-07 21:40:25 +08:00
ShirkNeko
2a283e6793 feat: 修复unload_kpm函数的定义,添加缺失的fn关键字 2025-04-07 21:35:44 +08:00
ShirkNeko
73a7ba3ac9 feat: 将KPM相关函数公开以支持外部调用 2025-04-07 21:32:41 +08:00
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
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