ksud: Add ksud to manager's su path

This commit is contained in:
weishu
2024-02-29 14:04:04 +08:00
parent e39a80f91e
commit 5aa025c3f0

View File

@@ -49,6 +49,9 @@ pub fn grant_root(global_mnt: bool) -> Result<()> {
std::result::Result::Ok(())
})
};
// add /data/adb/ksu/bin to PATH
#[cfg(any(target_os = "linux", target_os = "android"))]
add_path_to_env(defs::BINARY_DIR)?;
Err(command.exec().into())
}