From d0a90621b849928254fc08287e84a857cdbb3043 Mon Sep 17 00:00:00 2001 From: Chen Gang G Date: Tue, 14 Sep 2021 09:37:16 +0800 Subject: [PATCH] [Don't merge] always allow unlock Signed-off-by: Chen Gang G --- libfastboot/fastboot_flashing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfastboot/fastboot_flashing.c b/libfastboot/fastboot_flashing.c index a7af14f8..68a36aff 100644 --- a/libfastboot/fastboot_flashing.c +++ b/libfastboot/fastboot_flashing.c @@ -199,6 +199,8 @@ enum unlock_ability { static enum unlock_ability get_unlock_ability(void) { + return UNLOCK_ALLOWED; +#if 0 if (device_is_provisioning()) return UNLOCK_ALLOWED; @@ -206,6 +208,7 @@ static enum unlock_ability get_unlock_ability(void) return NO_UNLOCK_CLASS_A; return frp_allows_unlock() ? UNLOCK_ALLOWED : NO_UNLOCK_FRP; +#endif } static void cmd_unlock(__attribute__((__unused__)) INTN argc,