Commit Graph

156 Commits

Author SHA1 Message Date
tiann
71671d5383 ksud: set SELinux context for /vendor 2023-02-01 21:10:16 +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
tiann
721c332901 ksud: format code 2023-02-01 17:59:16 +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
tiann
7f25e451fb ksud: fix compile for x86_64 2023-01-31 19:00:58 +08:00
tiann
4852beec79 ksud: sepolicy support 2023-01-31 18:47:43 +08:00
skbeh
c19e8bef73 ksud: remove subprocess dependency (#156) 2023-01-30 20:14:27 +08:00
skbeh
783093384a ksud: replace some utils with rust libraries (#142) 2023-01-30 12:57:25 +08:00
tiann
5bad34458a ksud: fix broken /system/vendor when it is a symlink 2023-01-29 21:27:29 +08:00
tiann
f89635e628 ksud: fix compile for non-android 2023-01-26 15:05:20 +08:00
tiann
196cb84571 ksud: add su 2023-01-26 12:28:55 +08:00
tiann
d98b507c47 ksud: make other os build happy 2023-01-26 12:12: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
Ylarod
675c7114bc ksud: update help and add default pkg name (#115) 2023-01-25 20:45:49 +08:00
tiann
8463f1df08 ksud: minor tweaks 2023-01-25 19:01:51 +08:00
weishu
5f9f382c65 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
96fd9034b4 ksud: dummy mount stdout and stderr 2023-01-24 15:06:50 +08:00
tiann
59a35c0140 ksud: auto resize image based on module size 2023-01-24 15:00:31 +08:00
tiann
db38f8b368 ksud: dummy mount output 2023-01-24 13:28:06 +08:00
tiann
5b9b620bc0 ksud: retry for mount 2023-01-24 13:26:40 +08:00
tiann
cd0227352a ksud: support ext partition overlay 2023-01-16 16:06:39 +08:00
tiann
687bee5a0b ksud: e2fsck return 1 is ok 2023-01-16 16:06:39 +08:00
tiann
3bb643969f ksud: fix log 2023-01-16 16:06:39 +08:00
tiann
7af1e2f8c7 ksud: support services. close #60 2023-01-16 12:22:47 +08:00
Scirese
d2da9b3d64 userspace/su: implement basic features (#62) 2023-01-14 22:42:45 +08:00
tiann
a1a7ec205d ksud: Only use resetprop, remove magisk binary 2023-01-07 19:40:15 +08:00
tiann
76afc3bb2a ksud: trim command output 2023-01-06 13:10:27 +08:00
tiann
01b6694f9a 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
残页
56d630b91e 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
edd2f030b8 ksud: block stderr of installer script 2023-01-05 18:47:05 +08:00
tiann
2a546a1ed8 ksud: fix selinux unlabeled of modules dir 2023-01-05 16:58:00 +08:00
tiann
e38a463b5e ksud: Don't load module in safe mode 2023-01-05 14:50:09 +08:00
tiann
71b7a3d6a8 ksud: Fix module may uninstall failed 2023-01-05 14:38:59 +08:00
tiann
3ce8438e93 ksud: Add magisk binary as resetprop 2023-01-05 14:13:35 +08:00
tiann
cd803b1ca2 ksud: Add support for post-fs-data and system.prop 2023-01-05 14:10:38 +08:00
tiann
ece6b5d392 ksud: add is_safe_mode 2023-01-05 13:52:39 +08:00
tiann
d8021eaa55 ksud: exec module post-fs-data.sh 2023-01-05 13:42:18 +08:00
tiann
cb50ece35b ksud: add context for module install failure. 2023-01-05 13:41:29 +08:00
tiann
612c29e831 ksud: specific ext4 format for mount 2023-01-05 11:14:02 +08:00
tiann
6535233ea9 ksud: e2fsck check image before mount 2023-01-05 11:13:31 +08:00
tiann
6d6baa7bba ksud: clean module dir earlier 2023-01-05 10:51:04 +08:00
tiann
acab2a8c7e ksud: clean module mount point if it exists. 2023-01-05 10:41:46 +08:00
tiann
7802618833 ksud: fix encoding error 2023-01-04 17:26:21 +08:00
tiann
897ff0d7e4 ksud: delete modules_update when flag not exist 2023-01-04 17:06:21 +08:00