Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit d0a9062

Browse files
committed
[Don't merge] always allow unlock
Signed-off-by: Chen Gang G <gang.g.chen@intel.com>
1 parent 1b4dc16 commit d0a9062

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libfastboot/fastboot_flashing.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,16 @@ enum unlock_ability {
199199

200200
static enum unlock_ability get_unlock_ability(void)
201201
{
202+
return UNLOCK_ALLOWED;
203+
#if 0
202204
if (device_is_provisioning())
203205
return UNLOCK_ALLOWED;
204206

205207
if (no_device_unlock())
206208
return NO_UNLOCK_CLASS_A;
207209

208210
return frp_allows_unlock() ? UNLOCK_ALLOWED : NO_UNLOCK_FRP;
211+
#endif
209212
}
210213

211214
static void cmd_unlock(__attribute__((__unused__)) INTN argc,

0 commit comments

Comments
 (0)