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

always allow unlock #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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