Commit Graph

272 Commits

Author SHA1 Message Date
tiann
ed42cf42d2 ksud: restore syscon before module install script; this revert 2a4675e25b 2023-02-03 10:00:52 +08:00
tiann
d80c282644 ksud: tweaks for setcon 2023-02-03 09:55:03 +08:00
skbeh
219ea1c458 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
bea93f6ad7 ksud: compress embed assets (#186) 2023-02-03 09:31:32 +08:00
tiann
7b32c0e37b ksud: opti module mount 2023-02-02 21:56:08 +08:00
tiann
12f353a1ae ksud: Add bin path to script PATH 2023-02-02 21:42:04 +08:00
tiann
c26e170c87 ksud: default umask 022(0644 for file) 2023-02-02 21:24:11 +08:00
tiann
6a706de09e ksud: use busybox to exec all shell scripts 2023-02-02 20:37:17 +08:00
tiann
2a4675e25b ksud: set /system permission after installation script 2023-02-02 20:37:17 +08:00
tiann
0bc36b3299 ksud: fix incorrecy RAII 2023-02-02 20:37:17 +08:00
tiann
dc902b16d4 ksud: copy when rename failed 2023-02-02 20:37:17 +08:00
tiann
86998a032e ksud: fallback to system mount when rust lib mount failed 2023-02-02 20:37:17 +08:00
tiann
3eb812be5b ksud: Fix module may mount failed 2023-02-02 14:02:02 +08:00
tiann
23f41145b0 ksud: Fix module resize error 2023-02-02 09:25:41 +08:00
tiann
001fa00355 ksud: Add logs for module installation 2023-02-02 08:58:34 +08:00
tiann
cd825e34da ksud: support common post-fs-data.d and service.d 2023-02-02 08:39:26 +08:00
tiann
3bfee10a0d ksud: set SELinux context for /vendor 2023-02-01 21:10:16 +08:00
tiann
d8042a36c3 ksud: fix post-fs-data.sh and service.sh may be not executed 2023-02-01 20:28:38 +08:00
tiann
85bf01eb65 ksud: use logcat log 2023-02-01 20:28:38 +08:00
tiann
417ff8a6c5 ksud: fix module installation failed when size < 1M 2023-02-01 19:30:39 +08:00
tiann
681c4a3f0d ksud: minor tweaks 2023-02-01 19:12:25 +08:00
tiann
619dd1ace1 ksud: make it compilable for non-android 2023-02-01 19:04:33 +08:00
tiann
1cd18a643d ksud: some refactor 2023-02-01 18:33:38 +08:00
tiann
3519d61636 ksud: format code 2023-02-01 17:59:16 +08:00
skbeh
46913671a8 kernel, ksud: collect binaries into /data/adb/ksu (#161) 2023-02-01 17:58:58 +08:00
tiann
b7ff6b1a51 ksud: support module sepolicy.rule 2023-01-31 21:58:59 +08:00
tiann
ad89c5a80f ksud: fix compile for x86_64 2023-01-31 19:00:58 +08:00
tiann
3413f4a4fe ksud: sepolicy support 2023-01-31 18:47:43 +08:00
skbeh
634978c14f ksud: remove subprocess dependency (#156) 2023-01-30 20:14:27 +08:00
skbeh
7785d2a3f8 ksud: replace some utils with rust libraries (#142) 2023-01-30 12:57:25 +08:00
tiann
d2d9b0eaad ksud: fix broken /system/vendor when it is a symlink 2023-01-29 21:27:29 +08:00
tiann
f6c249bd77 ksud: fix compile for non-android 2023-01-26 15:05:20 +08:00
tiann
ed86635b3c ksud: add su 2023-01-26 12:28:55 +08:00
tiann
080aeee5e3 ksud: make other os build happy 2023-01-26 12:12:25 +08:00
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
Ylarod
5fb8316e46 ksud: update help and add default pkg name (#115) 2023-01-25 20:45:49 +08:00
tiann
0857cf8835 ksud: minor tweaks 2023-01-25 19:01:51 +08:00
weishu
64d78c31bc ksud: support set-manager (#114)
* ksud: support set-manager

* ksud: rework apk sign

Co-authored-by: Ylarod <me@ylarod.cn>
2023-01-25 17:55:08 +08:00
tiann
1475a85c58 ksud: dummy mount stdout and stderr 2023-01-24 15:06:50 +08:00
tiann
b4bc2e66e6 ksud: auto resize image based on module size 2023-01-24 15:00:31 +08:00
tiann
780a42d823 ksud: dummy mount output 2023-01-24 13:28:06 +08:00
tiann
3ca9537d8a ksud: retry for mount 2023-01-24 13:26:40 +08:00
tiann
ebfa64cc08 ksud: support ext partition overlay 2023-01-16 16:06:39 +08:00
tiann
10000c098d ksud: e2fsck return 1 is ok 2023-01-16 16:06:39 +08:00
tiann
7c585905ac ksud: fix log 2023-01-16 16:06:39 +08:00
tiann
f98066cb99 ksud: support services. close #60 2023-01-16 12:22:47 +08:00
Scirese
8274f6a1ff userspace/su: implement basic features (#62) 2023-01-14 22:42:45 +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