Commit Graph

267 Commits

Author SHA1 Message Date
LoveSy c4847ed288 Move pts to rust, and avoid using thread 2025-04-11 13:21:10 -07:00
topjohnwu 9c7d359093 Optimize and format imports
[skip ci]
2025-04-08 09:57:09 -07:00
topjohnwu 2aba7247a9 Skip stub APK install on emulator
Reduce test flakiness
2025-03-26 13:15:12 -07:00
topjohnwu e0a356b319 Introduce mount helper methods 2025-03-24 17:26:03 -07:00
Wang Han 52ef1d1cb2 Simplify matching selinux context of child zygote (#8845) 2025-03-11 01:27:15 -07:00
topjohnwu c90e73ccec Migration to Edition 2024 2025-03-07 02:35:25 -08:00
topjohnwu a43c1267d8 Update Cargo.toml 2025-03-07 02:35:25 -08:00
topjohnwu c6c1a17ae6 Address several clippy warnings 2025-03-03 02:15:14 -08:00
topjohnwu b6b34f7612 Fix overlay.d context preservation 2025-02-27 01:57:25 -08:00
topjohnwu 363410e1c0 Introduce cstr_buf helper functions 2025-02-17 11:32:21 -08:00
topjohnwu fc2ef21660 Introduce path! macro for FsPath 2025-02-17 01:46:19 -08:00
topjohnwu 63231d97ce Properly handle db downgrades 2025-02-16 17:01:36 -08:00
topjohnwu dcf027884d Update FsPathBuf 2025-02-15 18:27:45 -08:00
topjohnwu 584f3820fe Make all Utf8CStrWrite Utf8CStrBuf 2025-02-15 18:27:45 -08:00
vvb2060 4d80361805 core: search for first available dir in PATH 2025-02-15 15:08:26 -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 442d5335ea Consolidate get_module_fds implementation
Close #8767
2025-02-12 02:55:27 +08:00
Wang Han a14fc90f07 Fix fetching notification settings from db (#8761)
Co-authored-by: LoveSy <shana@zju.edu.cn>
2025-02-04 17:42:21 +08:00
topjohnwu 7f6c9e8411 Fix zygisk module load 2025-02-03 23:21:51 +08:00
topjohnwu bb02ea3a20 Fix file descriptor IPC 2025-02-03 18:21:03 +08:00
LoveSy 3981c9665e Replace rust inner functions to try blocks 2025-02-02 22:09:55 +08:00
topjohnwu 88628fdf3c Make sure IPC is arch agnostic 2025-02-02 22:08:41 +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 ab86732c89 Implement simple serialization over IPC 2025-02-02 22:08:41 +08:00
topjohnwu 59622d1688 Use static methods in cxx-rs 2025-02-02 02:46:33 +08:00
LoveSy 58a25a3e2b Fix su with tty 2025-02-01 16:50:53 +08:00
topjohnwu 4fb6a7268c Fix SDK 27 and 28 tests 2025-01-31 02:52:27 +08:00
topjohnwu c05e963f37 Address clippy warnings 2025-01-31 02:52:27 +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 a0f13ab49f Move lambda to static function 2025-01-19 18:59:17 +08:00
Wang Han 23eff70883 Fix repeated binding of first argument
Co-authored-by: LoveSy <shana@zju.edu.cn>
2025-01-19 11:57:09 +08:00
Wang Han d9c2bffc9f Avoid hardcoding max fd size
Android changed max fd limit to 32768 since Android 9:
https://github.com/aosp-mirror/platform_system_core/commit/cb5fccc83c6c757f25436884e96c318f72743ffd

Co-authored-by: LoveSy <shana@zju.edu.cn>
2025-01-19 11:54:26 +08:00
topjohnwu 049db49dc8 Use preprocessor for 64bit detection 2025-01-11 00:15:10 +08:00
Wang Han 7c1d2ec61e zygisk: Let client send arch info 2025-01-11 00:15:10 +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 0d31d356ef Use SQLite's internal time function 2025-01-05 05:04:04 -08:00
topjohnwu b782e7dcb7 Fetch policy table from Rust 2025-01-05 05:04:04 -08:00