5ec1cff
2025-07-18 17:10:40 +08:00
committed by GitHub
parent ee72b8e106
commit 6c61a8b7c7
11 changed files with 59 additions and 84 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ fn set_kernel_param(uid: u32) -> Result<()> {
fn get_pkg_uid(pkg: &str) -> Result<u32> {
// stat /data/data/<pkg>
let uid = rustix::fs::stat(format!("/data/data/{pkg}"))
.with_context(|| format!("stat /data/data/{}", pkg))?
.with_context(|| format!("stat /data/data/{pkg}"))?
.st_uid;
Ok(uid)
}