Tutorial how to bypass your xiaomi 5a (riva) lock bootloader, the unofficial way. You can root and custom rom your phone with this tools withiut using the official xiaomi unlock Tested on work on all redmi 5a version
Credit goes to xaacnz and saurabh6377
Table of Contents
- Things You should Know
- This tutorial will fix this error when doing unlock bootloader
- Video Tutorial
- Files Needed
- Bypass Unlock Bootloader
- For Custom ROMs
- For Stock ROM
Things You should Know
- Use at your own risk! I am not responsible for your actions
- Tested and work on all Xiaomi Redmi 5A android nougat 7 and android oreo 8 stock ROM
- You can use this tutorial to bypass UBL your phone although locked bootloader
This tutorial will fix this error when doing unlock bootloader
- Fix Error 20091
- Solved Error Code “Couldn’t unlock. Can’t Get Info, connect again”
- Progress Stop on 50% “Couldn’t verify Device”
- Current account is not bound to this device
- Error Code 10008: 参数错误、 请参考API文档
- Error Code 86023 : hardwareId 异常
- Error Code 86006 : 参数组合非法
- Error Code 86012 曼备不存在
Video Tutorial
Files Needed
- Flash to Nought stock ROM using EDL (if needed)
- Download bypass UBL file for riva
- Download Custom Recovery >> Nougat | Oreo
- Download Appender-v4.zip | Appender-v4-rec.zip
- Download MiFlash (u’r find QSaharaServer.exe & fh_loader.exe)
Bypass Unlock Bootloader
- Extract MiFlash
- create a folder called tmp
- extract bypass file to tmp folder
- Connect your device in EDL (download mode) using test point
- rename the custom recovery into recovery.img
- run this command using power shell/ terminal
.\QSaharaServer.exe -p \\.\COM8 -s 13:prog_emmc_firehose_8917_ddr.mbn -b tmp\
.\fh_loader.exe --search_path=tmp --port=\\.\COM8 --sendxml=twrp.xml
Replace COM8 with COM Port of your device, find it using device manager
For Custom ROMs
- Make sure u’r in nougat stock ROM, use custom recovery for nougat
- boot to custom recovery
- format data
- turn off phone > boot to custom recovery
- Flash Appender-rec.zip
- turn off phone > boot to custom recovery
- Flash custom ROM
- turn off phone > boot to custom recovery
- flash gapps & magisk (if needed)
- flash Appender.zip
- Reboot system
For Stock ROM
- Flash custom recovery (select android 7 or 8)
- fastboot flash recovery.img
- fastboot boot recovery.img
- Flash magisk
- Flash Appender.zip
- reboot system