From 6a4f9e2713062bbc8b1173e7a478ec8ecd7603bb Mon Sep 17 00:00:00 2001 From: Salini Venate Date: Thu, 8 Aug 2024 09:41:55 +0000 Subject: [PATCH] WA-Set device to unlocked state to enable BM user build flashing Signed-off-by: Salini Venate --- libfastboot/fastboot_flashing.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfastboot/fastboot_flashing.c b/libfastboot/fastboot_flashing.c index 917cb000..0bf8e34b 100644 --- a/libfastboot/fastboot_flashing.c +++ b/libfastboot/fastboot_flashing.c @@ -257,13 +257,13 @@ static void cmd_unlock(__attribute__((__unused__)) INTN argc, #endif change_device_state(UNLOCKED, TRUE); } else { -#ifdef USER - fastboot_fail("Unlocking device not allowed"); -#else +//#ifdef USER +// fastboot_fail("Unlocking device not allowed"); +//#else fastboot_info("Unlock protection is set"); fastboot_info("Unlocking anyway since this is not a User build"); change_device_state(UNLOCKED, TRUE); -#endif +//#endif } }