Commit Graph

106 Commits

Author SHA1 Message Date
weishu 4fdd3e07e5 ksud: migrate to Rust 2024 edition 2025-02-24 16:53:37 +08:00
weishu 38dc2eb4f0 ksud: determine modules's size by checking partion size 2025-02-17 21:05:13 +08:00
weishu 4ede20ef83 ksud: remove journal for ext4 images 2025-02-17 20:22:12 +08:00
Wang Han ce13d050ca Drop module image if no module remaining (#2447)
This fixes the issue that module image will always exist even if there
is no module to be loaded. Sadly we need to boot twice because we can
only know module status after image is mounted.
2025-02-17 09:15:04 +08:00
铃柒柒 aefb1aaed2 manager: Add action.sh for user to manually trigger modules' functionality from manager (#2156)
Commits:
- manager: Add `action.sh` for user to manually trigger modules'
functionality from manager
- manager: Optimize ModuleItem
- manager: uninstall button: TextButton -> FilledTonalButton
- Optimize `run_action` function

Commit Author & Thank:
- @lightsummer233
- @lingqiqi5211
- [APatch](https://github.com/bmax121/APatch)

Demo Show:

![image](https://github.com/user-attachments/assets/a5778a86-fa60-485f-ac49-2b581711f60e)

---------

Co-authored-by: Light summer <93428659+lightsummer233@users.noreply.github.com>
2024-10-27 10:07:13 +01:00
weishu 0697db618e ksud: Add uninstall 2024-04-22 20:41:53 +08:00
weishu fe7ec370d4 ksud: fmt & tidy 2024-03-11 14:01:21 +08:00
weishu c8fc6a0656 ksud: resize image if it is shrinked 2024-03-04 13:50:00 +08:00
weishu 6de330b00a ksud: Add some logs 2024-02-29 22:40:42 +08:00
weishu 5355625ed6 ksud: correctly copy chr device and keep xattr. close #1397 2024-02-29 19:23:11 +08:00
weishu 40d7bc6256 ksud: Fix incorrect dir copy 2024-02-25 22:55:24 +08:00
weishu 300d9d4cca ksud: Force creating new module format to avoid many wired issues. close #1384, close #1381 2024-02-25 22:29:13 +08:00
weishu b670db2d22 ksud: fix punch hole 2024-02-25 20:21:17 +08:00
weishu 0c52f24612 ksud: remove link manager 2024-02-23 18:08:53 +08:00
weishu e6b05b1d3c ksud: fix mount view of manager when 'umount modules by default' is enabled 2024-02-22 19:08:37 +08:00
weishu 355b55a01d ksud: use bind mount to serve module webui 2024-02-22 16:26:14 +08:00
weishu cbd184421c ksud: Add support for module webui 2024-02-20 16:39:05 +08:00
weishu cfc982f2f3 ksud: don't reclaim when enable/disable modules 2024-02-19 16:36:41 +08:00
weishu e0e7058d14 ksud: reclaim sparse space when install/uninstall modules. close #1367 2024-02-19 15:29:03 +08:00
weishu e0802b0d15 ksud: check image before shrink 2024-02-19 12:31:35 +08:00
weishu 7cb5fb47e1 ksud: Add command to shrink image 2024-01-30 13:23:49 +08:00
weishu c99b5b31c1 ksud: fmt 2024-01-30 12:58:20 +08:00
weishu ca960a2a8f ksud: shrink image before resize 2024-01-30 12:56:59 +08:00
weishu 946fb6f999 ksud: default 1T for sparse file 2024-01-30 12:56:59 +08:00
weishu b6ecce4317 ksud: use default block size to reduce image size 2024-01-30 12:56:59 +08:00
weishu be70a91f16 ksud: resize the journal size of image 2024-01-30 12:56:59 +08:00
weishu 71c2790f08 ksud: remove unnecessary image check 2024-01-30 12:56:59 +08:00
weishu b612efcfad ksud: sparse file default 256G 2024-01-29 21:49:39 +08:00
weishu 23ba3182cf website: Add description for sparse file 2024-01-29 21:42:52 +08:00
weishu d7bc853bfc ksud: use sparse image to avoiding resize image. close #1220 2024-01-29 18:50:19 +08:00
5ec1cff 30e00859b9 ksud: extract binaries properly (#1253) 2024-01-05 23:31:52 +08:00
weishu faf7a8e3b1 ksud: don't extract on module install 2024-01-05 22:25:41 +08:00
weishu b99701d216 ksud: re-extract ksud when necessary close #1242 2024-01-04 12:09:28 +08:00
weishu a1153683e1 ksud: Fix weird module.prop. close #1191 2023-12-15 18:27:55 +08:00
Howard Wu 88d4eca8ff Check if contain module id (#1128) 2023-11-12 12:34:18 +08:00
weishu b4a52f89cc ksud: bump dependencies 2023-11-02 12:05:21 +08:00
weishu 2d96aaa28f ksud: don't clean update dir, only ensure it exists 2023-09-02 10:39:40 +08:00
weishu 71799c7aed ksud: Fix module not showing when there is a module don't declare id in module.prop. fix #890 2023-08-20 23:35:09 +08:00
weishu 12a095fd1a Revert "ksud: Shrink image after module is updated. fix #855"
This reverts commit 7153336ad1.
2023-08-18 12:33:38 +08:00
weishu 7153336ad1 ksud: Shrink image after module is updated. fix #855 2023-08-17 23:57:51 +08:00
weishu 5f2566e478 ksud: No need to force e2fsck, fix #858,#879 2023-08-17 23:18:42 +08:00
weishu 0af25af1be ksud: exposed the command stdout/stderr to log 2023-08-17 22:05:49 +08:00
Ylarod ae9519de42 ksud: add post_mount stage (#864) 2023-08-16 11:39:32 +08:00
weishu e95c5a9675 ksud: support common & module boot-completed.sh 2023-07-31 19:50:53 +08:00
weishu d07956ead6 ksud: fix prune module 2023-07-11 22:00:50 +08:00
weishu 4e3af6dab3 ksud: refactor module iteration 2023-07-11 21:45:45 +08:00
weishu 45d96b98c5 ksud: remove update flag file before mount. if module installation is failed, the module.img will be reverted and the update flag file may exist 2023-07-11 21:28:56 +08:00
weishu b554c66b46 ksud: uninstall module at next boot. close #740 2023-07-11 21:25:51 +08:00
weishu 37abe48702 manager: save stderr of installation to log file. fix #723 2023-07-11 20:10:12 +08:00
weishu ec9babea76 ksud: Specify the block size of the ext4 image as 1K, because our subsequent size calculations are based on this; some phones such as the Samsung S23, if no default value is specified, will cause unexpected errors. close #721 2023-07-11 18:30:33 +08:00