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

Commit

Permalink
[Don't merge] always allow unlock
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Gang G <[email protected]>
  • Loading branch information
GangSecurity committed Sep 14, 2021
1 parent 1b4dc16 commit d0a9062
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libfastboot/fastboot_flashing.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,16 @@ enum unlock_ability {

static enum unlock_ability get_unlock_ability(void)
{
return UNLOCK_ALLOWED;
#if 0
if (device_is_provisioning())
return UNLOCK_ALLOWED;

if (no_device_unlock())
return NO_UNLOCK_CLASS_A;

return frp_allows_unlock() ? UNLOCK_ALLOWED : NO_UNLOCK_FRP;
#endif
}

static void cmd_unlock(__attribute__((__unused__)) INTN argc,
Expand Down

0 comments on commit d0a9062

Please sign in to comment.