From 12fc2e6d5e97dd4838446563df1bfe8208226136 Mon Sep 17 00:00:00 2001 From: YuKongA <70465933+YuKongA@users.noreply.github.com> Date: Thu, 13 Nov 2025 20:15:19 +0800 Subject: [PATCH] userspace: remove vendor_boot selection logic - Only patch it when user actively selects vendor_boot. --- userspace/ksud/src/boot_patch.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/userspace/ksud/src/boot_patch.rs b/userspace/ksud/src/boot_patch.rs index 6c08db4d..8d05e91e 100644 --- a/userspace/ksud/src/boot_patch.rs +++ b/userspace/ksud/src/boot_patch.rs @@ -690,10 +690,7 @@ pub fn choose_boot_partition( ) -> String { let slot_suffix = get_slot_suffix(false); let skip_init_boot = kmi.starts_with("android12-"); - let init_boot_exist = Path::new(&format!("/dev/block/by-name/init_boot{slot_suffix}")).exists(); - let vendor_boot_exist = - Path::new(&format!("/dev/block/by-name/vendor_boot{slot_suffix}")).exists(); // if specific partition is specified, use it if let Some(part) = partition { @@ -708,11 +705,6 @@ pub fn choose_boot_partition( return "init_boot".to_string(); } - // if vendor_boot exists and not skipping it, use it - if !is_replace_kernel && vendor_boot_exist && !skip_init_boot { - return "vendor_boot".to_string(); - } - "boot".to_string() }