rsuntk
436071a3f1
ksud: fix some warnings
...
warning: hiding a lifetime that's elided elsewhere is confusing
--> src/sepolicy.rs:22:30
|
22 | fn parse_bracket_objs(input: &str) -> IResult<&str, SeObject> {
| ^^^^ ---- -------- the same lifetime is hidden here
| | |
| | the same lifetime is elided here
| the lifetime is elided here
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id >
2025-08-25 21:30:39 +08:00
rsuntk
fdda1f4ec0
ksud: strip resetprop
...
* Upstream resetprop is intentionally not stripped.
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id >
2025-08-23 17:03:31 +08:00
rsuntk
8dcc3f7c46
ksud: bump resetprop from Magisk v30.2
...
* Related pr:
https://github.com/tiann/KernelSU/pull/2700
rsuntk: Drop x86_64 bin, build our own arm bin.
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id >
2025-08-10 18:32:39 +08:00
5ec1cff
a041b90891
ksud: make clippy happy ( #2683 )
...
e1be06240d/clippy_lints/src/format_args.rs (L168)
2025-08-10 17:59:12 +08:00
ShirkNeko
c1c648e34d
[skip ci]ksud: support vendor_boot patching for some odd devices ( #2650 )
...
This will add support to patch vendor_boot with LKM for devices which
have their init ramdisk inside of vendor_boot and not boot/init_boot.
---------
Co-authored-by: Rifat Azad <rifat.44.azad.rifs@gmail.com >
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com >
Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com >
2025-08-10 17:31:43 +08:00
WenHao2130
467d6e0838
ksud: Add KSU_SUKISU to env
...
This will help module authors determine which root implementation the module is running on.
Signed-off-by: WenHao2130 <wenhao2130@outlook.com >
2025-07-20 23:31:29 +08:00
ShirkNeko
634adad15c
ksud: fmt
2025-06-27 11:15:19 +08:00
古塵
4532bab230
kernel: refactor CMD_GET_FULL_VERSION to safely initialize version string ( #220 )
...
Use strscpy()/strlcpy() to populate the version buffer in CMD_GET_FULL_VERSION
instead of relying on uninitialized memory. This ensures the returned string
is null-terminated and avoids exposing garbage data to user space.
Signed-off-by: schqiushui <orochi9999@gmail.com >
2025-06-27 10:42:38 +08:00
ShirkNeko
d3c9b6e739
ksud: handle errors and non compatible ramdisk
...
Co-authored-by: rifsxd <rifat.44.azad.rifs@gmail.com >
2025-06-26 14:22:42 +08:00
ShirkNeko
8e4f980db0
ksud: third test properly check if vendor is already patched or not for lkm restoration and also handle magisk patched vendor boot
...
Co-authored-by: rifsxd <rifat.44.azad.rifs@gmail.com >
2025-06-26 14:15:49 +08:00
ShirkNeko
2c2698f6bc
kernel: Rewrite kernle version code management
...
Co-authored-by: lamadaemon <i@lama.icu >
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-06-24 23:16:16 +08:00
ShirkNeko
01f44dc1d9
ksud: Adding LKM patch support for vendor_boot images
...
- And improve the OTA update mechanism
- Updating the magiskboot library
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
Co-authored-by: rifsxd <rifat.44.azad.rifs@gmail.com >
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-06-24 12:52:22 +08:00
ShirkNeko
4bec5ae7b1
ksud: Update version code calculations to adjust historical version offsets
2025-06-22 18:45:58 +08:00
ShirkNeko
0baccb7621
Add ksud support for the armeabi-v7a architecture
...
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
Co-authored-by: SChernykh <15806605+SChernykh@users.noreply.github.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-05-15 20:00:51 +08:00
ShirkNeko
332fdcd2a7
Fix KPM module loading calls to explicitly use namespaces
2025-04-14 15:55:35 +08:00
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