Commit Graph

16 Commits

Author SHA1 Message Date
Ylarod
db600d5ea0 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
b4bc2e66e6 ksud: auto resize image based on module size 2023-01-24 15:00:31 +08:00
tiann
10000c098d ksud: e2fsck return 1 is ok 2023-01-16 16:06:39 +08:00
tiann
f98066cb99 ksud: support services. close #60 2023-01-16 12:22:47 +08:00
tiann
7c3a78b83f ksud: Only use resetprop, remove magisk binary 2023-01-07 19:40:15 +08:00
tiann
76ff69dedb ksud: trim command output 2023-01-06 13:10:27 +08:00
tiann
1c4e51aec5 ksud: support post-fs-data.sh run as daemon.
1. We should make the `post-fs-data.sh` use itself a process group, otherwise it will receive signal from other process and make it exit accidentally.
2. And we should also switch child process' cgroup out of parent process, otherwise it would be kill by cgroup.
2023-01-06 12:59:21 +08:00
残页
7942f4c495 ksud: use the same variable type in scripts (#26)
When executing module install scripts, KSU is set to "true"; when executing module post-fs-data scripts, KSU is set to "1". This may cause confusions so use the same value instead.
2023-01-06 11:49:13 +08:00
tiann
bc9daf1583 ksud: block stderr of installer script 2023-01-05 18:47:05 +08:00
tiann
ea3cfbd0ca ksud: fix selinux unlabeled of modules dir 2023-01-05 16:58:00 +08:00
tiann
3d9fc18149 ksud: Fix module may uninstall failed 2023-01-05 14:38:59 +08:00
tiann
e37d0148e1 ksud: Add support for post-fs-data and system.prop 2023-01-05 14:10:38 +08:00
tiann
9e1ee1c513 ksud: add context for module install failure. 2023-01-05 13:41:29 +08:00
tiann
279b591200 ksud: e2fsck check image before mount 2023-01-05 11:13:31 +08:00
tiann
3280c6af2e ksud: fix encoding error 2023-01-04 17:26:21 +08:00
tiann
35aae8b0eb ksud: Add userspace cli to load module 2023-01-04 14:42:47 +08:00