It varies with the phone model; however, there's a command that works with most phones. The fast boot flashing unlocks command after putting your phone in flash mode works on most models. You have to connect your phone to a computer and use the command prompt interface.