Skip to content

Commit

Permalink
apd: blocking module mounting
Browse files Browse the repository at this point in the history
Co-Authored-By: 5ec1cff <[email protected]>
  • Loading branch information
Admirepowered and 5ec1cff committed Oct 29, 2024
1 parent 9c5489a commit 9b935ac
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions apd/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,8 @@ pub fn systemless_bind_mount(module_dir: &str) -> Result<()> {

// construct bind mount params
let mut args = vec!["mount"];
let _ = unsafe {
std::process::Command::new("/data/adb/ap/bin/magiskmount")
.process_group(0)
.pre_exec(|| {
utils::switch_cgroups();
Ok(())
})
.args(args)
.spawn()
};

let result = utils::run_command("/data/adb/ap/bin/magiskmount", &args, None)?.wait()?;

Ok(())
}

Expand Down

0 comments on commit 9b935ac

Please sign in to comment.