Move MagiskInit::second_stage to rust

This commit is contained in:
LoveSy
2025-01-31 12:35:42 +08:00
committed by John Wu
parent 143743d0b0
commit dc9d5a4cac
3 changed files with 31 additions and 23 deletions
+1 -1
View File
@@ -13,6 +13,7 @@ mod mount;
mod rootdir;
mod getinfo;
mod init;
mod twostage;
#[cxx::bridge]
pub mod ffi {
@@ -86,7 +87,6 @@ pub mod ffi {
// Two stage init
fn redirect_second_stage(self: &MagiskInit);
fn first_stage(self: &MagiskInit);
fn second_stage(self: &mut MagiskInit);
// SELinux
unsafe fn patch_sepolicy(self: &MagiskInit, in_: *const c_char, out: *const c_char);