Commit Graph

51 Commits

Author SHA1 Message Date
topjohnwu 4f4b1ff885 Add sepolicy.rule patching tests 2025-05-13 14:08:54 -07:00
LoveSy 79c0fafe43 Fix cleanup pre-init mount 2025-05-05 11:00:39 -07:00
topjohnwu 22884e173a Implement reboot in Rust 2025-04-28 17:22:14 -07:00
topjohnwu d1829308e9 Move more daemon_start code into Rust 2025-04-28 17:22:14 -07:00
topjohnwu 73840f8721 Migrate selinux.cpp to selinux.rs 2025-04-28 17:22:14 -07:00
topjohnwu 3327fc668e Remove FsPath and FsPathMnt trait
Directly use Utf8CStr
2025-04-28 17:22:14 -07:00
topjohnwu 610945ac54 Remove open_fd macro 2025-04-28 17:22:14 -07:00
topjohnwu e02b5f7868 Rename cstr_buf to cstr::buf 2025-04-22 03:21:00 -07:00
topjohnwu ab2e5d1e7e Make FsPathBuf a trait and rename to FsPathBuilder 2025-04-22 03:21:00 -07:00
topjohnwu f3fef7bfe4 Make FsPath a trait 2025-04-22 03:21:00 -07:00
topjohnwu 084d89fcce Create Utf8CStrBuffer type 2025-04-15 10:26:22 -07:00
topjohnwu 9c7d359093 Optimize and format imports
[skip ci]
2025-04-08 09:57:09 -07:00
topjohnwu fc2ef21660 Introduce path! macro for FsPath 2025-02-17 01:46:19 -08:00
topjohnwu dcf027884d Update FsPathBuf 2025-02-15 18:27:45 -08:00
LoveSy 9a74e19117 Add log_ok() for log().ok() 2025-02-14 14:24:13 -08:00
topjohnwu 540253a55b Remove unnecessary FFI 2025-02-14 11:24:46 -08:00
topjohnwu 0469817781 Cleanup code and bindings 2025-02-02 22:08:41 +08:00
topjohnwu a786801141 Implement su_daemon in Rust 2025-02-02 22:08:41 +08:00
topjohnwu 59622d1688 Use static methods in cxx-rs 2025-02-02 02:46:33 +08:00
topjohnwu 7f7f625864 Code reorganization 2025-01-31 02:52:27 +08:00
topjohnwu b25aa8295a Move bootstage into Rust 2025-01-31 02:52:27 +08:00
topjohnwu 15a605765c Fully implement daemon side of Zygisk in Rust 2025-01-31 02:52:27 +08:00
topjohnwu b575c95710 Implement fd I/O on Rust side 2025-01-31 02:52:27 +08:00
topjohnwu a48a9c858a Migrate zygisk handler to Rust 2025-01-31 02:52:27 +08:00
topjohnwu 0d8d6290a3 Move module list into MagiskD 2025-01-31 02:52:27 +08:00
topjohnwu 4dcd733ddd Minor code cleanup 2025-01-31 02:52:27 +08:00
topjohnwu a1b2830c06 Address clippy warnings 2025-01-11 00:11:48 +08:00
topjohnwu 82d1d19267 Migrate uid_granted_root to Rust 2025-01-11 00:11:48 +08:00
topjohnwu 4d4195c02d Migrate prune_su_access to Rust 2025-01-11 00:11:48 +08:00
topjohnwu 5637a258fc Migrate package detection to Rust 2025-01-11 00:11:48 +08:00
topjohnwu ee6810f417 Rewrite magisk logging implementation 2025-01-11 00:11:48 +08:00
topjohnwu 7098248c64 Add more functionality into Rust 2025-01-11 00:11:48 +08:00
topjohnwu 24650eefe4 Bind SQLite to Rust 2025-01-04 02:24:08 -08:00
topjohnwu 09c7ac754b Simplify MagiskD Rust/C++ FFI 2024-12-03 15:51:17 -08:00
topjohnwu 4c38af994d Sync native and Java implementation 2024-07-19 23:22:08 -07:00
vvb2060 02e189a029 core: add safe mode config to db 2024-05-15 12:42:55 +08:00
topjohnwu 1eddbfd72c Use const_format for const strings 2024-03-26 18:03:40 -07:00
topjohnwu 65207f96c8 Create custom cxx binding to Utf8CStr 2023-12-26 23:10:55 +08:00
topjohnwu 1dcf325547 Minor cleanup 2023-12-03 19:32:58 +08:00
topjohnwu c7083659aa Directly guard boot state with mutex 2023-11-27 17:40:58 +08:00
topjohnwu 8d5b9e5329 C++/Rust 2 way binding for MagiskD 2023-11-17 13:35:50 -08:00
topjohnwu 6c0966b795 Move some global state into Rust 2023-11-16 15:38:38 -08:00
topjohnwu da766f2a4e Do not go through magiskd for getting the log pipe 2023-11-01 02:01:18 -07:00
topjohnwu c81d7ff76c Remove unnecessary RefCell usage 2023-10-31 18:22:48 -07:00
topjohnwu a6e50d3648 Make log pipe a FIFO instead of anonymous pipe 2023-10-31 18:05:22 -07:00
topjohnwu 5c92d39498 Enable Zygisk by default in emulators
Make sure CI tests Zygisk
2023-09-28 20:25:26 -07:00
topjohnwu 6e7a995716 Introduce UtfCString 2023-09-27 15:21:24 -07:00
topjohnwu 89aee6ffa7 Add more to the Utf8CStr family
Better C strings with path operations
2023-09-12 17:35:01 -07:00
LoveSy 53257b6ea1 Fix find_apk_path 2023-06-15 04:09:45 -07:00
topjohnwu f33f1d25d0 Move find_apk_path to Rust 2023-06-10 01:40:45 -07:00