Failed -remote 39-flashing Lock Flag Is Locked. Please Unlock It First 39-- Jun 2026
(If no alphanumeric serial number appears, you need to update your environment's Fastboot Drivers via Windows Device Manager ). Step 3: Clear the Flashing Lock Flag
if allowed – this often resets lock flags.
In the same menu, enable USB Debugging . Connect to PC and Open Terminal/CMD: Connect your phone to the PC via USB.
Connect your device in bootloader/fastboot mode and run: (If no alphanumeric serial number appears, you need
Once the device is in Fastboot mode and connected to your PC, use the following commands. .
: In your device's Settings > Developer Options , you must toggle on OEM Unlocking . If this option is greyed out, your device may be carrier-locked or require an internet connection to "check in" with the manufacturer's servers.
Xiaomi uses a separate unlock process because of the "lock flag" being tied to their servers. Connect to PC and Open Terminal/CMD: Connect your
Once you’ve successfully unlocked the lock flag, follow these best practices:
If you’ve followed all steps and still see the error, consult your device’s XDA Developers forum or official documentation. Some devices have unique unlock protocols beyond the scope of this article.
If your phone still boots into the Android operating system normally, you must toggle the manual permissions that grant command-line access: Disconnect the device from your computer. : In your device's Settings > Developer Options
Verify your computer recognizes the physical interface by running: fastboot devices Use code with caution.
⚠️ Do not follow random "unlocker.bat" scripts from untrusted sources. Many such scripts are not solutions but malware designed to infect your computer or brick your device.
using the device’s specific method: