Commit Graph

147 Commits

Author SHA1 Message Date
tiann
0af5628d51 ksud: ensure parent dir when create file 2023-04-12 17:45:56 +08:00
tiann
aba62e2ef1 ksud: format anyhow error 2023-04-12 13:21:13 +08:00
tiann
f46634bc07 ksud: add error context to log 2023-04-12 13:17:13 +08:00
tiann
3681da2176 Revert "ksud: sort the stock mounts correctly."
This reverts commit 951efa16ee.
2023-04-12 13:12:10 +08:00
tiann
951efa16ee ksud: sort the stock mounts correctly. 2023-04-11 21:23:30 +08:00
tiann
e70a95f1ec ksud: make compiler happy 2023-04-11 20:45:21 +08:00
tiann
719b90f8da ksud: use move mount instead of remount for stock mounts
Because some stock mounts are difficult to remount it back, so we bind mount it to somewhere else before overlayfs mount. And then use move mount to mount it back.
2023-04-11 20:32:08 +08:00
tiann
5d9eacfdb5 ksud: don't umount stock overlayfs, just remount it 2023-04-11 16:24:02 +08:00
weishu
c4e5bbf2db ksud: handle partition after REMOVE and REPLACE 2023-04-08 12:51:16 +08:00
Ylarod
cd069d8e31 ksud: ensure ksud context when install (#356)
Incorrect se context will make module system broken
2023-04-07 12:46:59 +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
Ylarod
2d9c6c64be ksud: support .ksurc (#345) 2023-04-05 13:30:21 +08:00
Ylarod
8c93e03504 ksud: add /data/adb/ksu/bin to PATH (#343) 2023-04-05 11:47:35 +08:00
tiann
94139488d8 userspace: remove simple su 2023-04-04 17:24:35 +08:00
tiann
b739155e06 ksud: fix unknown hang of root shell 2023-04-04 16:41:57 +08:00
tiann
08f029485b ksud: fix build 2023-04-04 15:09:53 +08:00
tiann
b5f321d5a4 ksud: fix windows build again 2023-04-04 14:59:17 +08:00
tiann
5c5724f7c6 ksud: Remove sufix of 'v' in version tag
close #331
2023-04-04 14:44:51 +08:00
tiann
87863e3adf ksud: fix windows build 2023-04-04 14:33:25 +08:00
tiann
6f97cdd8db ksud: fix compile err in x86_64 2023-04-04 14:12:37 +08:00
tiann
1ef4c28a02 ksud: fmt 2023-04-04 13:55:36 +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
セリカ・シルフィル
1276429d95 ksud: modules_update will be mounted to /data/adb/modules_update (#336)
d6d08530e4
and https://github.com/tiann/KernelSU/pull/327 have moved
`/data/adb/ksu/modules` to `/data/adb/modules`,but `modules_update` has
not to do it.Many modules hard-coded this directory.
2023-04-03 22:32:13 +08:00
tiann
1e44e4ce50 ksud: enter root shell when arg0 equals su 2023-04-03 20:28:13 +08:00
浅秋枫影
bea4e8d956 ksud: Fix installer.sh modules path (#327)
d6d08530e4
修改了模块路径,installer.sh 没有修改,导致管理器无法刷新模块(安装/更新/卸载)状态
2023-04-03 11:46:27 +08:00
tiann
f7783ce51f ksud: Don't umount stock bind mount, just bind it again after overlay. 2023-03-27 18:43:37 +08:00
tiann
b61d36e0cc website: Add docs for REPLACE variables 2023-03-27 17:27:53 +08:00
tiann
8dc33d035a ksud: fix clippy 2023-03-27 15:44:18 +08:00
tiann
1dcb136d0f ksud: Support remove files in customize.sh by REMOVE variables.
e.g:

REMOVE="
/system/app/YouTube
/system/app/Bloatware
"
2023-03-27 15:04:28 +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
d6d08530e4 ksud: Breaking change: modules are mounted to /data/adb/modules and will disable itself when magisk installed. 2023-03-01 11:49:54 +08:00
tiann
36e40746e6 ksud: Disable modules when magisk installed 2023-03-01 11:41:53 +08:00
tiann
f64614b189 ksud: fix mount and remount order 2023-02-26 11:44:08 +08:00
tiann
8aec92cf38 ksud: don't touch rootfs mount 2023-02-24 20:00:57 +08:00
tiann
b34e2285be ksud: make it buildable without git installed 2023-02-24 11:55:03 +08:00
tiann
ab65cf27c2 Revert "ksud: make it buildable without git installed"
This reverts commit 677f8a9c44.
2023-02-24 11:53:04 +08:00
tiann
677f8a9c44 ksud: make it buildable without git installed 2023-02-24 11:41:39 +08:00
tiann
2bc1435f2a ksud: remove original file after copy 2023-02-22 00:08:18 +08:00
tiann
c3c4a25996 ksud: copy file when rename failed 2023-02-21 23:52:04 +08:00
tiann
6153e1999b ksud: fix clippy 2023-02-21 22:09:41 +08:00
tiann
b8b9f6ec75 ksud: Fix windows compile 2023-02-21 21:39:14 +08:00
tiann
28b677da23 ksud: fmt 2023-02-21 20:24:10 +08:00
tiann
1fd381af13 ksud: restore stock mount after overlay mount. close #233 2023-02-21 20:22:00 +08:00
tiann
d7b4b22fe7 ksud: fmt 2023-02-21 13:10:32 +08:00
tiann
cfc457fa10 ksud: fmt 2023-02-21 13:09:03 +08:00
tiann
4a66b0ce37 ksud: fix incorrect umask 2023-02-21 13:06:37 +08:00
tiann
3b9dbcdc5c ksud: Fix common script may not be executed 2023-02-21 12:54:05 +08:00
Ylarod
e942549dfc ksud: setns to init for module commands (#262) 2023-02-20 19:43:49 +08:00
tiann
afdb21755f ksud: Fix denpendency 2023-02-20 10:07:30 +08:00