Commit Graph

47 Commits

Author SHA1 Message Date
weishu 406f629035 Revert "su: allocate new pty (#1693)"
This reverts commit e4109455b9.
2024-05-08 21:18:55 +08:00
5ec1cff e4109455b9 su: allocate new pty (#1693) 2024-05-07 19:02:59 +08:00
fsxitutu 618a97df1b Add magiskboot to kernelsu working directory (#1684)
Add the magiskboot binary to the /data/adb/ksu/bin directory so that
scripts/programs can call magiskboot to patch the boot/init_boot image.

---------

Co-authored-by: weishu <twsxtd@gmail.com>
2024-05-01 09:48:59 +08:00
weishu 13d0d4beda ksud: skip removing module if no modules exist, also add uninstall mangaer, reboot 2024-04-23 15:32:15 +08:00
weishu b96294edea ksud: Add uninstall 2024-04-22 20:41:53 +08:00
weishu 880908e4ff ksud: Fix clippy 2024-04-12 10:36:34 +08:00
weishu 856496f465 ksud: Add boot restore 2024-04-12 00:47:29 +08:00
weishu d6af076263 ksud: add boot-info cli 2024-03-23 10:46:16 +08:00
weishu 7203b8e86f embed LKM to ksud (#1472) 2024-03-18 23:12:46 +08:00
Ylarod 3f5d6ca54a Build KernelSU as LKM (#1254)
Co-authored-by: weishu <twsxtd@gmail.com>
2024-03-15 18:53:24 +08:00
weishu 02245e2503 ksud: fmt & tidy 2024-03-11 14:01:21 +08:00
weishu 961652f7a3 ksud: fix punch hole 2024-02-25 20:21:17 +08:00
weishu 3559a8d315 ksud: remove link manager 2024-02-23 18:08:53 +08:00
weishu 2f0d255557 ksud: support global mnt for debug su 2024-02-23 18:04:00 +08:00
weishu 36a5f61f43 ksud: remove http serve mode 2024-02-22 16:26:14 +08:00
weishu 53fd829a6b ksud: use bind mount to serve module webui 2024-02-22 16:26:14 +08:00
weishu 102bde759c ksud: Add support for module webui 2024-02-20 16:39:05 +08:00
weishu b3c77ed937 ksud: reclaim sparse space when install/uninstall modules. close #1367 2024-02-19 15:29:03 +08:00
weishu f1e019f87d ksud: check image before shrink 2024-02-19 12:31:35 +08:00
weishu b57067161d ksud: Add command to shrink image 2024-01-30 13:23:49 +08:00
weishu 435ecad625 ksud: clippy 2024-01-30 12:59:24 +08:00
weishu f6ea211fe0 ksud: Add cli for fast copy sparse file 2024-01-30 12:56:59 +08:00
weishu dbf7f6786b ksud: Add support for boot patch 2024-01-15 20:17:10 +08:00
Nullptr 443cf2c6c9 Remove ksud path to make xi and vvb happy (#1251)
Not creating new historical legacy
2024-01-05 17:28:06 +08:00
Nullptr 8ad962be7f Fix temp dir on Android 10 or below (#1250)
Co-authored-by: Ylarod <me@ylarod.cn>
2024-01-05 14:41:33 +08:00
weishu ed1851888d ksud: make cargo fmt happy 2023-10-21 13:21:33 +08:00
weishu 621174c4f5 manager: support App Profile template 2023-10-21 13:19:59 +08:00
weishu 02def78124 kernel: harden the signature check (#1027) 2023-10-11 02:53:11 -05:00
weishu 0974d88528 ksud: support root profile's sepolicy 2023-07-01 16:34:43 +08:00
weishu ebef9da37b ksud: remove unused command 2023-07-01 15:31:53 +08:00
5ec1cff 049736d6cb ksud: refactor module mount (#384) 2023-04-14 22:30:34 +08:00
tiann aba62e2ef1 ksud: format anyhow error 2023-04-12 13:21:13 +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 1e44e4ce50 ksud: enter root shell when arg0 equals su 2023-04-03 20:28:13 +08:00
Ylarod e942549dfc ksud: setns to init for module commands (#262) 2023-02-20 19:43:49 +08:00
tiann 866b0a7dc6 ksud: unify version 2023-02-03 21:02:11 +08:00
tiann 3c8e27c012 ksud: support sepolicy check 2023-02-03 13:16:17 +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
tiann 4c8681d52c ksud: use logcat log 2023-02-01 20:28:38 +08:00
tiann 4852beec79 ksud: sepolicy support 2023-01-31 18:47:43 +08:00
tiann 196cb84571 ksud: add su 2023-01-26 12:28:55 +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
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 cd0227352a ksud: support ext partition overlay 2023-01-16 16:06:39 +08:00
tiann 7af1e2f8c7 ksud: support services. close #60 2023-01-16 12:22:47 +08:00
tiann fad6ff3dce ksud: Add userspace cli to load module 2023-01-04 14:42:47 +08:00