* Update

* Fix
This commit is contained in:
Caner Karaca
2025-02-13 02:54:36 +03:00
committed by GitHub
parent 2a152fdb22
commit b18f89b434
20 changed files with 247 additions and 290 deletions

View File

@@ -12,13 +12,6 @@ pub const BOOTCTL_PATH: &str = concatcp!(BINARY_DIR, "bootctl");
#[allow(dead_code)]
pub const SUSFSD_PATH: &str = concatcp!(BINARY_DIR, "susfsd");
#[cfg(all(target_arch = "x86_64", target_os = "android"))]
#[derive(RustEmbed)]
#[folder = "bin/x86_64"]
struct Asset;
// IF NOT x86_64 ANDROID, ie. macos, linux, windows, always use aarch64
#[cfg(not(all(target_arch = "x86_64", target_os = "android")))]
#[derive(RustEmbed)]
#[folder = "bin/aarch64"]
struct Asset;

View File

@@ -235,7 +235,10 @@ pub fn restore(
ensure!(status.success(), "magiskboot unpack failed");
let is_kernelsu_patched = is_kernelsu_patched(&magiskboot, workdir)?;
ensure!(is_kernelsu_patched, "boot image is not patched by KernelSU Next");
ensure!(
is_kernelsu_patched,
"boot image is not patched by KernelSU Next"
);
let mut new_boot = None;
let mut from_backup = false;