Skip to content

Commit

Permalink
WA-Set device to unlocked state to enable BM user build flashing
Browse files Browse the repository at this point in the history
Signed-off-by: Salini Venate <[email protected]>
  • Loading branch information
SaliniVenate committed Aug 13, 2024
1 parent 0e7bc37 commit d17ea28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libfastboot/fastboot_flashing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit d17ea28

Please sign in to comment.