ShirkNeko
6dc803702b
ksud: create our own new ramdisk when no compatible ramdisk found
...
Co-authored-by: rifsxd <rifat.44.azad.rifs@gmail.com >
2025-09-23 00:48:15 +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
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
weishu
4fdd3e07e5
ksud: migrate to Rust 2024 edition
2025-02-24 16:53:37 +08:00
weishu
3d3bc5ce3c
ksud: make clippy happy
2025-02-05 16:15:10 +08:00
LoveSy
bbc31bdbca
Use tempfile ( #1980 )
2024-08-15 16:28:05 +08:00
LoveSy
f722062775
Fix clippy
2024-07-26 13:24:55 +08:00
チセ
a49adaa847
ksud: Replace dependencies regex to regex-lite
2024-07-26 13:12:36 +08:00
チセ
0911af0686
ksud(feat): Parse KMI from boot or kernel
2024-07-26 13:12:36 +08:00
HDTianRu
0674841b94
ksud: Skip patch init_boot.img on kmi android12-xxx devices ( #1744 )
...
有一些设备(如ace2v),带了initboot,但ramdisk却在boot里,导致无法使用ota安装与直接安装,所以添加了个开关
因为本人开发环境有点简陋(mt管理器),而且对项目代码不太熟,合并前最好review一下(
2024-05-25 11:09:06 +08:00
チセ
9c2e48bb3e
ksud: turn off auto-detect bootdevice when OS is not android ( #1746 )
2024-05-21 09:18:28 +08:00
weishu
c8dd0b070c
ksud: Fix compiler error
2024-04-24 21:36:38 +08:00
weishu
063d5c8025
ksud: use sha1 library to calc hash
2024-04-24 12:51:11 +08:00
weishu
472a94b6f2
ksud: Fix name typo
2024-04-23 23:33:13 +08:00
weishu
8ba008fb9f
ksud: Fix backup not working
2024-04-23 23:24:45 +08:00
weishu
3aac979caa
ksud: skip removing module if no modules exist, also add uninstall mangaer, reboot
2024-04-23 15:32:15 +08:00
5ec1cff
50387a9d3d
ksud: do not abort if backup failed ( #1627 )
2024-04-14 15:55:47 +08:00
5ec1cff
488564fe76
ksud: only backup stock boot if flashing ( #1626 )
2024-04-14 14:00:59 +08:00
5ec1cff
ee05aed5e5
fix boot restore
2024-04-14 01:46:12 +08:00
5ec1cff
60dd52afd1
ksud: backup stock image and use it when restore ( #1619 )
2024-04-14 00:45:06 +08:00
weishu
6ea2438425
ksud: Fix clippy
2024-04-12 10:36:34 +08:00
weishu
3010ed89c0
ksud: Add boot restore
2024-04-12 00:47:29 +08:00
weishu
ef92c32729
ksud: add boot-info cli
2024-03-23 10:46:16 +08:00
weishu
fd7234bf11
ksud: rename patched boot. close #1511
2024-03-23 10:06:37 +08:00
weishu
8b71d3c9ba
ksud: try find KMI from installed modules
2024-03-20 21:33:41 +08:00
Caner Karaca
8f33926aa0
Add Dependabot, Update Dependencies and Workflows ( #1440 )
...
Build may fail because of some major dependency updates. Needs changes,
changes/fixes welcomed.
Main goal is keeping all things up-to-date.
---------
Co-authored-by: weishu <twsxtd@gmail.com >
2024-03-20 12:52:34 +08:00
weishu
f41d73f7eb
ksud: try parse kmi from gki modules if uname is modified
2024-03-19 10:37:17 +08:00
weishu
9759a779cd
embed LKM to ksud ( #1472 )
2024-03-18 23:12:46 +08:00
weishu
f6d552c797
ksud: ensure post-fs-data.d is created by post ota
2024-03-17 17:25:42 +08:00
weishu
e39be55db8
ksud: Fix magisk detect
2024-03-16 11:13:50 +08:00
weishu
9d5529fb09
ksud: Fix magisk detect
2024-03-16 09:22:37 +08:00
Ylarod
7568d55be1
Build KernelSU as LKM ( #1254 )
...
Co-authored-by: weishu <twsxtd@gmail.com >
2024-03-15 18:53:24 +08:00
weishu
fe7ec370d4
ksud: fmt & tidy
2024-03-11 14:01:21 +08:00
weishu
ce5aa990ed
ksud: don't patch if it's already patched
2024-03-11 12:48:25 +08:00
weishu
16c5aba4ff
ksud: fix dd failure
2024-01-29 15:51:54 +08:00
weishu
2fec279de3
ksud: use boot partition when replace kernel
2024-01-18 16:27:11 +08:00
weishu
1e676e5dc2
ksud: Fix relative boot image path
2024-01-16 14:05:10 +08:00
weishu
7b63e099ce
ksud: Fix build for win
2024-01-16 11:39:21 +08:00
weishu
653225bb5b
ksud: Add support for boot patch
2024-01-15 20:17:10 +08:00