| @Echo off
TITLE Unlock Bootloader via Fastboot
COLOR A
cls
echo.
echo. ================================================== ==============
echo.
echo. This will unlock the bootloader and reset phone to factory settings
echo.
echo.
echo. ================================================== ===============
echo.
echo.
set /p unlockcode=Please enter the 16 digits code provided by Huawei:
echo.
echo.
echo. ================================================== ===============
echo.
echo. Found the following devices:
echo.
fastboot devices
echo.
echo. ================================================== ===============
echo.
echo. You should see a line like "xxxxxxx fastboot" above this text.
echo. If your device is not displayed, close this window and check
echo. that your phone is in fastboot mode and the phone drivers are
echo. properly installed on your PC. Then run this tool again.
echo.
echo. ================================================== ===============
echo.
echo. Press a key to unlock the bootloader or close this window to cancel.
echo.
pause >nul
echo.
echo.
echo. Unlocking bootloader......
echo.
fastboot oem unlock %unlockcode%
echo.
echo. ================================================== ===============
echo.
echo. Done! If the operation has completed sucessful, your phone should
echo.
echo. display a green OK message. It will then restore factory settings
echo.
echo. and restart.
echo.
echo.
echo. Note: This process may take some time. If your phone does not restart
echo. automatically, please run reboot_phone.bat from this folder.
echo.
echo. ================================================== ===============
echo.
echo. This window will close itself in 15 seconds.
echo.
echo. ================================================== ===============
echo.
ping 127.0.0.1 -n 15 >nul
exit
|