Update to ONDK r29.5

This commit is contained in:
topjohnwu
2026-02-06 16:32:25 -08:00
committed by John Wu
parent e872fafd8b
commit 9ee6a6b3d7
21 changed files with 114 additions and 97 deletions
+5 -4
View File
@@ -79,12 +79,12 @@ pub unsafe extern "C" fn main(
umask(0);
}
let res: LoggedResult<()> = try {
let res = || -> LoggedResult<()> {
let cmds = CmdArgs::new(argc, argv);
let cmds = cmds.as_slice();
if argc < 2 {
print_usage(cmds.first().unwrap_or(&"magiskpolicy"));
return 1;
return log_err!();
}
let cli = Cli::from_args(&[cmds[0]], &cmds[1..]).on_early_exit(|| print_usage(cmds[0]));
@@ -109,7 +109,7 @@ pub unsafe extern "C" fn main(
log_err!("Cannot print rules with other options")?;
}
sepol.print_rules();
return 0;
return Ok(());
}
if cli.magisk {
@@ -133,6 +133,7 @@ pub unsafe extern "C" fn main(
{
log_err!("Cannot dump policy to {}", file)?;
}
};
Ok(())
}();
if res.is_ok() { 0 } else { 1 }
}