Migrate load_modules to Rust

This commit is contained in:
topjohnwu
2025-08-05 11:24:55 -07:00
committed by John Wu
parent 589a270b8d
commit e489b3b6dd
4 changed files with 150 additions and 134 deletions
+1 -3
View File
@@ -158,6 +158,7 @@ pub mod ffi {
fn update_deny_flags(uid: i32, process: &str, flags: &mut u32);
fn initialize_denylist();
fn get_zygisk_lib_name() -> &'static str;
fn set_zygisk_prop();
fn restore_zygisk_prop();
fn switch_mnt_ns(pid: i32) -> i32;
fn app_request(req: &SuAppRequest) -> i32;
@@ -254,9 +255,6 @@ pub mod ffi {
#[cxx_name = "Get"]
fn get() -> &'static MagiskD;
}
unsafe extern "C++" {
fn load_modules(self: &MagiskD) -> Vec<ModuleInfo>;
}
}
#[repr(transparent)]