5ec1cff
a041b90891
ksud: make clippy happy ( #2683 )
...
e1be06240d/clippy_lints/src/format_args.rs (L168)
2025-08-10 17:59:12 +08:00
ShirkNeko
634adad15c
ksud: fmt
2025-06-27 11:15:19 +08:00
backslashxx
b28789ac7a
ksud: probe for more workdir candidates ( #12 )
...
- reuses old ksu functions
- makes sure its an empty dir
- adapted from https://github.com/rsuntk/KernelSU/commit/141f010 71cb86c2e9
Co-authored-by: powellnorma <101364699+powellnorma@users.noreply.github.com >
Co-authored-by: Rissu <90097027+rsuntk@users.noreply.github.com >
2025-03-09 17:00:03 +08:00
5ec1cff
a5edae9fac
implement magic mount
2025-03-08 23:55:20 +08:00
weishu
4fdd3e07e5
ksud: migrate to Rust 2024 edition
2025-02-24 16:53:37 +08:00
D8G Official
c3926d3982
ksud: Fix warning unused import ( #2382 )
2025-01-25 20:00:45 +08:00
5ec1cff
a953ae97b7
ksud: fix copy sparse file ( #2374 )
2025-01-24 18:46:39 +08:00
Wang Han
38027c9793
Don't unshare after entering global namespace ( #2373 )
...
Global namespace is usually used to publicly apply mounts so calling
unshare after entering root namespace is not desired bahavior. This also
keeps -M option same as Magisk.
2025-01-24 11:22:24 +08:00
LoveSy
fd09ccfc29
Drop some legacy codes ( #1981 )
2024-08-15 17:04:02 +08:00
LoveSy
bbc31bdbca
Use tempfile ( #1980 )
2024-08-15 16:28:05 +08:00
weishu
f381e32434
ksud: remove modules dir when uninstall. close #1736
2024-05-28 11:28:28 +08:00
powellnorma
71cb86c2e9
ksud: refine get_tmp_path ( #1713 )
...
Fixes #1710
What do you think?
* It first uses `TEMP_DIR` (`/debug_ramdisk`) if it exists + is is
empty.
* Otherwise it tries to create a random directory in `/dev`.
* If that fails, it goes through a list of directories (including
`TEMP_DIR_LEGACY`), and chooses the first one that is empty.
* If no empty directory it chooses the first one that exists
---------
Co-authored-by: user <user@localhost>
2024-05-16 10:30:20 +08:00
fsxitutu
839fc0534e
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
3aac979caa
ksud: skip removing module if no modules exist, also add uninstall mangaer, reboot
2024-04-23 15:32:15 +08: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
dbe43b1540
ksud: remove permission mode for symlink
2024-03-01 23:10:03 +08:00
weishu
8a59fe1969
ksud: Copy directory permission mode
2024-03-01 22:46:53 +08:00
weishu
6de330b00a
ksud: Add some logs
2024-02-29 22:40:42 +08:00
weishu
ed254b7ab4
ksud: fmt
2024-02-29 20:34:50 +08:00
weishu
5355625ed6
ksud: correctly copy chr device and keep xattr. close #1397
2024-02-29 19:23:11 +08:00
weishu
b670db2d22
ksud: fix punch hole
2024-02-25 20:21:17 +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
LoveSy
c1a2cbf1e4
Use rustix to replace some unsafe calls
2024-02-01 00:35:51 +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
Nullptr
52f5727875
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
01711b4114
ksud: minor tweaks
2024-01-04 16:12:22 +08:00
weishu
b99701d216
ksud: re-extract ksud when necessary close #1242
2024-01-04 12:09:28 +08:00
tiann
8f4299ef62
ksud: keep pwd after switch mnt ns
2023-04-06 13:20:23 +08:00
tiann
48e76f9096
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
b1af4ada60
ksud: fix clippy
2023-03-27 15:44:18 +08:00
tiann
c34a5ae2a6
ksud: Disable modules when magisk installed
2023-03-01 11:41:53 +08:00
tiann
47bcccdce3
ksud: fmt
2023-02-21 13:10:32 +08:00
tiann
4837f2101c
ksud: fix incorrect umask
2023-02-21 13:06:37 +08:00
Ylarod
a5ee2ef93b
ksud: setns to init for module commands ( #262 )
2023-02-20 19:43:49 +08:00
tiann
42428345ff
ksud: check kernel safemode
2023-02-13 22:28:43 +08:00
tiann
175de861bf
ksud: Fix incorrect dependency
2023-02-03 23:19:22 +08:00
tiann
71cc166f72
ksud: Fix macOS compile
2023-02-03 14:46:48 +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
tiann
0bc36b3299
ksud: fix incorrecy RAII
2023-02-02 20:37:17 +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
skbeh
46913671a8
kernel, ksud: collect binaries into /data/adb/ksu ( #161 )
2023-02-01 17:58:58 +08:00
skbeh
7785d2a3f8
ksud: replace some utils with rust libraries ( #142 )
2023-01-30 12:57:25 +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