Commit Graph

7144 Commits

Author SHA1 Message Date
ad95e8951b Skip download in lsposed setup test
Download the zip during build time
2025-02-16 01:26:40 -08:00
bf591fca12 Fix Utf8CString constructor and add more comments 2025-02-16 01:17:48 -08:00
dcf027884d Update FsPathBuf 2025-02-15 18:27:45 -08:00
584f3820fe Make all Utf8CStrWrite Utf8CStrBuf 2025-02-15 18:27:45 -08:00
3c7c46307a Partially cleanup MagiskInit code 2025-02-15 18:27:45 -08:00
4d80361805 core: search for first available dir in PATH 2025-02-15 15:08:26 -08:00
9a74e19117 Add log_ok() for log().ok() 2025-02-14 14:24:13 -08:00
b1e17706a4 Format code 2025-02-14 14:24:13 -08:00
caad129d69 Move MagiskInit::patch_sepolicy to rust 2025-02-14 14:24:13 -08:00
da58571ce5 Remove redundant rust export 2025-02-14 14:24:13 -08:00
2aa7f1c094 Move MagiskInit::check_two_stage to rust 2025-02-14 14:24:13 -08:00
823e31a91b Use linker to link vfprintf as tiny_vfprintf 2025-02-14 14:24:13 -08:00
fb926ae302 Move MagiskInit::redirect_second_stage to rust 2025-02-14 14:24:13 -08:00
e0489eeffd Move MagiskInit::first_stage to rust 2025-02-14 14:24:13 -08:00
dc9d5a4cac Move MagiskInit::second_stage to rust 2025-02-14 14:24:13 -08:00
143743d0b0 Refactor init.cpp to init.rs 2025-02-14 14:24:13 -08:00
563f0d5ad5 Move BootConfig::print to rust 2025-02-14 14:24:13 -08:00
c99f4a591b Move MagiskInit::exec_init to rust 2025-02-14 14:24:13 -08:00
449204e380 Move MagiskInit::prepare_data to rust 2025-02-14 14:24:13 -08:00
a85c4c6528 Move MagiskInit::MagiskInit to rust 2025-02-14 14:24:13 -08:00
d203a6fff6 Move MagiskInit to rust 2025-02-14 14:24:13 -08:00
6c612d66d7 Move BootConfig to rust 2025-02-14 14:24:13 -08:00
540253a55b Remove unnecessary FFI 2025-02-14 11:24:46 -08:00
15b7c4ccd1 Fix tmpfs mounts in avd_magisk.sh 2025-02-14 10:17:31 -08:00
442d5335ea Consolidate get_module_fds implementation
Close #8767
2025-02-12 02:55:27 +08:00
8a80eea597 Directly deal with Rust &str in sepolicy.cpp 2025-02-12 01:26:06 +08:00
5e35703091 Ensure target path exists before mknod
Co-authored-by: LoveSy <shana@zju.edu.cn>
2025-02-12 01:13:56 +08:00
b7ca73f431 Remove an additional unique_ptr indirection 2025-02-05 14:18:16 +08:00
a14fc90f07 Fix fetching notification settings from db (#8761)
Co-authored-by: LoveSy <shana@zju.edu.cn>
2025-02-04 17:42:21 +08:00
c913f7ec74 Make sepolicy a shared type between rust and cxx 2025-02-04 00:36:11 +08:00
7f6c9e8411 Fix zygisk module load 2025-02-03 23:21:51 +08:00
bb02ea3a20 Fix file descriptor IPC 2025-02-03 18:21:03 +08:00
3981c9665e Replace rust inner functions to try blocks 2025-02-02 22:09:55 +08:00
88628fdf3c Make sure IPC is arch agnostic 2025-02-02 22:08:41 +08:00
0469817781 Cleanup code and bindings 2025-02-02 22:08:41 +08:00
a786801141 Implement su_daemon in Rust 2025-02-02 22:08:41 +08:00
ab86732c89 Implement simple serialization over IPC 2025-02-02 22:08:41 +08:00
59622d1688 Use static methods in cxx-rs 2025-02-02 02:46:33 +08:00
58a25a3e2b Fix su with tty 2025-02-01 16:50:53 +08:00
15dca29a87 Update cxx-rs 2025-02-01 02:02:29 +08:00
46980819c0 Expose safe mode option on 28+ 2025-01-31 12:20:02 +08:00
4fb6a7268c Fix SDK 27 and 28 tests 2025-01-31 02:52:27 +08:00
c05e963f37 Address clippy warnings 2025-01-31 02:52:27 +08:00
7f7f625864 Code reorganization 2025-01-31 02:52:27 +08:00
b25aa8295a Move bootstage into Rust 2025-01-31 02:52:27 +08:00
15a605765c Fully implement daemon side of Zygisk in Rust 2025-01-31 02:52:27 +08:00
b575c95710 Implement fd I/O on Rust side 2025-01-31 02:52:27 +08:00
a48a9c858a Migrate zygisk handler to Rust 2025-01-31 02:52:27 +08:00
0d8d6290a3 Move module list into MagiskD 2025-01-31 02:52:27 +08:00
4dcd733ddd Minor code cleanup 2025-01-31 02:52:27 +08:00