Commit Graph

64 Commits

Author SHA1 Message Date
Ylarod e9b90c0d05 ksud: add post_mount stage (#864) 2023-08-16 11:39:32 +08:00
weishu 6eac1ad1fe ksud: support common & module boot-completed.sh 2023-07-31 19:50:53 +08:00
weishu e983bb86fd ksud: fix prune module 2023-07-11 22:00:50 +08:00
weishu dfdd5ee7d0 ksud: refactor module iteration 2023-07-11 21:45:45 +08:00
weishu 4530117511 ksud: remove update flag file before mount. if module installation is failed, the module.img will be reverted and the update flag file may exist 2023-07-11 21:28:56 +08:00
weishu 33f357cb23 ksud: uninstall module at next boot. close #740 2023-07-11 21:25:51 +08:00
weishu 9533299d98 manager: save stderr of installation to log file. fix #723 2023-07-11 20:10:12 +08:00
weishu 9c7286c269 ksud: Specify the block size of the ext4 image as 1K, because our subsequent size calculations are based on this; some phones such as the Samsung S23, if no default value is specified, will cause unexpected errors. close #721 2023-07-11 18:30:33 +08:00
weishu 9787aa9734 ksud: increase reserved size to 256M 2023-06-22 16:48:13 +08:00
tiann 1ef5a91a28 ksud: keep pwd after switch mnt ns 2023-04-06 13:20:23 +08:00
Ylarod e27409a1fa ksud: exec uninstall.sh while uninstalling (#347) 2023-04-05 14:36:35 +08:00
tiann e808bed680 ksud: refine su and make it compitable with MagiskSU
Supported features:

1.  --mount-master, -M, -mm which would make the command run in global mount namespace.
2. - user to switch a specific user's shell.
3. -v, -V to print version code and name.

fix #330 #306 #305 #32
2023-04-04 13:50:48 +08:00
tiann 9fa33cae86 ksud: Since we have forbidden module running when Magisk installed, we
can now move common script from /data/adb/ksu/post-fs-data.d ->
/data/adb/post-fs-data.d and /data/adb/ksu/service.d ->
/data/adb/service.d
2023-03-27 10:51:25 +08:00
tiann 3b9dbcdc5c ksud: Fix common script may not be executed 2023-02-21 12:54:05 +08:00
tiann 3560b78c7c ksud: support module disable in safemode 2023-02-13 23:33:56 +08:00
skbeh 049fa85907 ksud: remove tailing "/" from PATH (#230) 2023-02-12 18:07:07 +08:00
tiann db9f2b8990 ksud: e2fsck before resize2fs 2023-02-09 13:53:07 +08:00
tiann b513707994 ksud: Add KSU_KERNEL_VER_CODE 2023-02-08 15:09:36 +08:00
tiann cae5542cd3 ksud: clippy 2023-02-06 09:16:15 +08:00
tiann c867067dd3 ksud: pass KSU_VER and KSU_VER_CODE to installer script 2023-02-06 08:53:18 +08:00
skbeh b46a6a3684 ksud, kernel: update explanation and fix some issues (#194) 2023-02-04 13:16:51 +08:00
tiann 866b0a7dc6 ksud: unify version 2023-02-03 21:02:11 +08:00
tiann ae866c8013 ksud: Fix script exec 2023-02-03 14:26:26 +08:00
tiann 3c8e27c012 ksud: support sepolicy check 2023-02-03 13:16:17 +08:00
tiann 48a99cb69b ksud: fix module update 2023-02-03 10:05:09 +08:00
tiann 297809f24d ksud: restore syscon before module install script; this revert 1f44907a74 2023-02-03 10:00:52 +08:00
skbeh 9e34996c3b ksud: fix issues found by clippy (#167)
These issues are mostly found by `cargo clippy -- -W clippy::pedantic`.
2023-02-03 09:45:07 +08:00
skbeh 5088703ec3 ksud: compress embed assets (#186) 2023-02-03 09:31:32 +08:00
tiann 3b4973dcaa ksud: opti module mount 2023-02-02 21:56:08 +08:00
tiann da4bdd539a ksud: Add bin path to script PATH 2023-02-02 21:42:04 +08:00
tiann 4e40afefe9 ksud: use busybox to exec all shell scripts 2023-02-02 20:37:17 +08:00
tiann 1f44907a74 ksud: set /system permission after installation script 2023-02-02 20:37:17 +08:00
tiann ac9b3138db ksud: fix incorrecy RAII 2023-02-02 20:37:17 +08:00
tiann f64fece2a3 ksud: copy when rename failed 2023-02-02 20:37:17 +08:00
tiann 412adc8d05 ksud: fallback to system mount when rust lib mount failed 2023-02-02 20:37:17 +08:00
tiann 207d12313b ksud: Fix module may mount failed 2023-02-02 14:02:02 +08:00
tiann 58b9f50eb7 ksud: Fix module resize error 2023-02-02 09:25:41 +08:00
tiann 8e1dacd920 ksud: Add logs for module installation 2023-02-02 08:58:34 +08:00
tiann 840294fa7e ksud: support common post-fs-data.d and service.d 2023-02-02 08:39:26 +08:00
tiann f3480d372e ksud: fix post-fs-data.sh and service.sh may be not executed 2023-02-01 20:28:38 +08:00
tiann 4c8681d52c ksud: use logcat log 2023-02-01 20:28:38 +08:00
tiann 232653143b ksud: fix module installation failed when size < 1M 2023-02-01 19:30:39 +08:00
tiann 343b123c17 ksud: minor tweaks 2023-02-01 19:12:25 +08:00
tiann 9d192d5f2b ksud: make it compilable for non-android 2023-02-01 19:04:33 +08:00
tiann 3a29aa2135 ksud: some refactor 2023-02-01 18:33:38 +08:00
skbeh d163200127 kernel, ksud: collect binaries into /data/adb/ksu (#161) 2023-02-01 17:58:58 +08:00
tiann 82bc853ada ksud: support module sepolicy.rule 2023-01-31 21:58:59 +08:00
skbeh 783093384a ksud: replace some utils with rust libraries (#142) 2023-01-30 12:57:25 +08:00
Ylarod 443c5867cd kernel: precise trigger timing of post-fs-data (#118)
* kernel: add report_event cmd

* ksud: report event

* kernel: trigger on_post_fs_data

* ksud: comment unused code

* [skip ci] run clang-format

Signed-off-by: Ylarod <me@ylarod.cn>

* ci: use custom key to sign official bootimgs

* format ksud

* reject non root

* remove

Signed-off-by: Ylarod <me@ylarod.cn>
2023-01-26 11:29:02 +08:00
tiann 59a35c0140 ksud: auto resize image based on module size 2023-01-24 15:00:31 +08:00