yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 5A Guides, News, & Discussion] adzlhannd:
Xiaomi Redmi 5A

Hi there, I'm a newbie here.

I think this is the only you that could solve my problem.

I have Xiaomi Redmi 5A 16gb+2gb and I don't know how to fix this issue.

The problem of my phone is not booting to system. When I turn it on the phone displayed "mi logo" after a few seconds the "Powered by Android" with three dots animation appeared and loop/run one time after that the turn off itseft.

The bootloader still locked I don't know how to install/flash TWRP everything are denied, I can't flash new room. This tutorial is very hard for me to follow.

If you don't mind can you upload a video tutorial so that I can follow awesome solution.

Or you can send it or upload it to my Gmail account cisco.adzlansali@gmail.com.

Very big thank you in advance.

More power.
[Xiaomi Redmi 5A Guides, News, & Discussion] saurabh6377:
Unlock then. This guide is not for noobs. You may brick your device and no one here will be responsible

Ways to install twrp

Download latest twrp for Riva

Go to mi unlock status in developer options then select add account and device

Download mi unlock tool then unlock

Boot into fastboot then execute command 'fastboot flash twrp.img'
[Xiaomi Redmi 5A Guides, News, & Discussion] saurabh6377:
This is issue with /persist/sensors/sns.reg file. Use any root file explorer and Extract sns.reg from the sns.7z and place it in /persist/sensors/ and set proper permissions (rw- rw- r--). Then reboot.
[Xiaomi Redmi 5A Guides, News, & Discussion] isonupandit11:
Can i flash latest miui global stable recovery rom by

appending 4k block to boot.img of miui recovery rom will it work?
[Xiaomi Redmi 5A Guides, News, & Discussion] saurabh6377:
No, it will reset splash and will also replace twrp. Use firmware less rom or xiaomi.eu rom. If recovery is not wiped then due to dm-verity you need to flash lazyflasher too which will brick your device and there is no other way to disable dm-verity. Better to unlock first.
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Fixed dude.
[Xiaomi Redmi 5A Guides, News, & Discussion] Anshu lakra:
Please upload or send me the modified IMG guys .
[Xiaomi Redmi 5A Guides, News, & Discussion] alecxs:
Dude, youre waiting for 2 months, wish i could help you... Maybe here more better luck?

https://xdaforums.com/showthread.php?t=3911660
[Xiaomi Redmi 5A Guides, News, & Discussion] Anshu lakra:
Have you flashed custom ROM ?

---------- Post added at 03:54 AM ---------- Previous post was at 03:52 AM ----------

Nobody is uploading or posting link . ???
[Xiaomi Redmi 5A Guides, News, & Discussion] Anshu lakra:
This link will work after when I flash twrp but no body is uploading it . Please help ?
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
I think someone is uploaded already. You can find in this thread. Currently i am unable to upload. But i will upload it after 2pm today.

But you must have knowledge how to modify them.

See the whole thread and replies.:good:
[Xiaomi Redmi 5A Guides, News, & Discussion] alecxs:
Why don't you upload already modified twrp.img and xml files then? Post #7 is what everybody is waiting for
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Ok dude i will upload all the modified files. Wait for that.:cowboy:
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Modified files.

I am not responsible for any kind of damage happens in your device.

For qsahara and fhloader download miflash and extract it. You will get the files from there.

prog emmc firehouse - https://drive.google.com/open?id=1p9FInJS6mlbj5RvCzXRBgdX1Sn9WcEnM

Recovery (twrp 3.2.3)- https://drive.google.com/open?id=1KMQ60TsR1HanJtW-ljlJ63tTK0aC1uSO

Splash (from miui 8.5)- https://drive.google.com/open?id=1RaaRVmgIa2KM-rPkvSTwyq_ROKHK8oLl

Now don't ask for upload files anymore.

View attachment hack_splash.xml

View attachment twrp.xml
[Xiaomi Redmi 5A Guides, News, & Discussion] Anshu lakra:
Thanks it worked :good: can anyone help to enable VOLTE because it not working in any custom rom :confused:
[Xiaomi Redmi 5A Guides, News, & Discussion] elemefaaoo:
Try flashing volte fix.

"First mount vendor and flash zip

https://drive.google.com/file/d/1gctAYQlrUzgdlvr3id676fBy4_O5De_w/view?usp=drivesdk

And again flash ROM

ROM should be volte fixed"

I'm not sure if it works, give it a try.
[Xiaomi Redmi 5A Guides, News, & Discussion] Ripper1412:
Can you tell me where am I supposed to run these commands?

9 run "QSaharaServer.exe -p \\.\COM10 -s 13:prog_emmc_firehose_8917_ddr.mbn -b tmp" to initialize firehose. (replace COM10 with the COM port of you phone, the same as below)

10 run "fh_loader.exe --search_path=tmp --port=\\.\COM10 --sendxml=hack_splash.xml" to flash modified splash

11 run "fh_loader.exe --search_path=tmp --port=\\.\COM10 --sendxml=twrp.xml" to flash twrp recovery

12 done

CMD perhaps?
[Xiaomi Redmi 5A Guides, News, & Discussion] elemefaaoo:
Nub
[Xiaomi Redmi 5A Guides, News, & Discussion] Ripper1412:
Smh, what are you trying to prove fag? I mean if you were actually good at these, you would've just unlocked right? Instead of coming here.
[Xiaomi Redmi 5A Guides, News, & Discussion] elemefaaoo:
Tell that yourself and feel it :)
[Xiaomi Redmi 5A Guides, News, & Discussion] alecxs:
Nub probably means, yes. but run cmd.exe as Administrator, and check the COM Port first from Device Manager (its probably not COM10). Good luck
[Xiaomi Redmi 5A Guides, News, & Discussion] Ripper1412:
Thanks
[Xiaomi Redmi 5A Guides, News, & Discussion] Pushpamjha1999:
storage issue

after installing twrp and also custom rom successfully rom and twrp show storage capacity only 4gb but its 16gb varient plz tell me the fix of storage problem how can i fix 4gb to 16gb
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Boot your device to twrp and select wipe and click on formatdata type yes and Format your data. Hope it will solve your problem.
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Just open the mi flash folder and go at the top. You will see some text of directry just click on it and type cmd and enter.

It will open cmd with directory now you can run commands there. And don't forget to add '\' at the last in 1st command.

---------- Post added at 07:43 AM ---------- Previous post was at 07:35 AM ----------

Sourab Bhai. Can i flash xiaomi eu rom by deleting the firmware file and by modifying updater_script file.

Will it work?
[Xiaomi Redmi 5A Guides, News, & Discussion] saurabh6377:
Yes and no, remember Oreo ROM won't work with nougat firmware. And since you are on nougat firmware Oreo Xiaomi EU may not boot. You may install nougat Xiaomi EU but you have to modify updater script.

Also you may try modifying splash of Oreo based firmware and see if it works, I didn't tried it.
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
He said that the bug is in emmc_appsbot.mbn file of miui 8.5 rom. So, it may not work with oreo firmware.

What if i change emmc file from 8.5 to miui 10 rom and then flash the device again? Will it work? If yes, then we can flash xiaomi eu rom.
[Xiaomi Redmi 5A Guides, News, & Discussion] adityam0338:
[MENTION=8273918]_saurabh__._[/MENTION] , [MENTION=9766519]lavishkumar[/MENTION]

I have been facing current account can not unlock this device error for the past 7-8 months now. I have tried all i could to unlock but i couldn't. I don't really know programming so i couldn't use this method. But since now the edited files have been uploaded can someone plz tell me the entire process in some short steps. I'll be very grateful if someone could do that.
[Xiaomi Redmi 5A Guides, News, & Discussion] saurabh6377:
You really don't have to know programming, just a few terms only which I am listing here.

Byte: you probably know this. 4096 bytes=4KiB. It is written in hexadecimal base (Google it you will find what it is). '12' is written as 'C' in hexadecimal base on Google you will find more about this, I highly recommend you to google this.

Block: A collection of bytes. e.g. A 1 KiB block means a collection of 1024 bytes.

Append simply means add.

Apart from that the only thing you need to know is how to edit the bytes in a file. If you use Linux then you are on plus, because Linux have all basic utilities to edit bytes that you will ever need in following this guide, if you don't have Linux install cygwin or any other small Linux emulator for windows because it saves a lot of labour if you want to change between custom roms, to find best one. Or the best alternative should be install damn small Linux on usb and boot from usb.

After installing the Linux emulator. Type the following in terminal and hit enter.

Wrong command:

printf \x30\x83\x19\x89\x64 | dd of=/path/to/twrp.img oflag=append conv=sync,notrunc ibs=4096

Correction:

printf '\x30\x83\x19\x89\x64' | dd of=/path/to/twrp.img oflag=append conv=sync,notrunc ibs=4096

You have to do same for boot image file ;)

'printf' command is used to tell 'dd' the bytes that are to be written. 'dd' is the main tool that is used here to write the bytes. 'ibs' parameter is used to tell block size. 'oflag' parameter is used to append the bytes. 'conv' parameter is the main one because it tells 'dd' where to append the block (in the end).

If you really want to do labour. Install hex editor for windows and write the bytes on your own, it is really boring and irritating if you change roms often which everyone do first time they unlock bootloader. So I do not recommend it.

FYI

---------- Post added at 07:06 PM ---------- Previous post was at 06:59 PM ----------

Yeah bug is in bootloader but it is unlikely that the device will boot if you flash Oreo miui, with nougat bootloader. But in the end you can always try and report the result here, and edl is always there to save bricked Riva.
[Xiaomi Redmi 5A Guides, News, & Discussion] adityam0338:
[MENTION=8273918]_saurabh__._[/MENTION]

Thnx a ton! I'll try what u said.
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
​

Hope it will solve your problem. And please read the whole thread maybe you will get some clues from there.
[Xiaomi Redmi 5A Guides, News, & Discussion] saurabh6377:
I have made correction in the

printf

command so please see it again to prevent any error
[Xiaomi Redmi 5A Guides, News, & Discussion] dlinktm:
How if my Rom now is V9.6.5.0.NCKMIFD Global Stable? need downgrade to China version?
[Xiaomi Redmi 5A Guides, News, & Discussion] samarthapa:
i did not understand anything can you make a detailed video (maybe) ... thank you in advance
[Xiaomi Redmi 5A Guides, News, & Discussion] helpdesk24x12@gmail.com:
Redmi 5a Flash custom rom without unlocking bootloader

email me to my name Id :good:
[Xiaomi Redmi 5A Guides, News, & Discussion] elemefaaoo:
Why
[Xiaomi Redmi 5A Guides, News, & Discussion] helpdesk24x12@gmail.com:
for links which will make easy for all REDMI 5A users
[Xiaomi Redmi 5A Guides, News, & Discussion] newtonc:
i'm trying to reverse engineer the QFIL elf programmer on the redmi note 7 to bypass needing an special edl authorized account. Have you ventured in this side?
[Xiaomi Redmi 5A Guides, News, & Discussion] elemefaaoo:
Note 7 uses system as root partition you know that right? I guess things are different there
[Xiaomi Redmi 5A Guides, News, & Discussion] Michael227:
Hello everyone, help unlock Redmi 5A. From 9 points I get errors, what I am doing wrong, the files are on the path C: \ MiFlash \ tmp

Write in more detail how to use these commands correctly.
[Xiaomi Redmi 5A Guides, News, & Discussion] alecxs:
check the XML content it says syntax error inside the file
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
unlock Redmi 5A

and I have a mistake.16:33:16: {ERROR:

You have possibly missed an '=' sign on your command line argument. Look at the list above of possible options.

Instead of --search_path did you mean --search_path= (i.e. notice it ends in an equals sign)

I ask you to make a detailed instruction for redmi5a half a year brick
[Xiaomi Redmi 5A Guides, News, & Discussion] alecxs:
[MENTION=9766519]lavishkumar[/MENTION] has already uploaded the files see page 9. please try to understand and read, its all there. all you need is download the files and follow OP steps 9 + 10 + 11. i do not own this device anymore and i never tried, i am not the author of this tutorial and i can not confirm it works. there will be no noobs instructions for this deep hack, sorry
[Xiaomi Redmi 5A Guides, News, & Discussion] Michael227:
Everything turned out thanks to the post https://xdaforums.com/showpost.php?p=77188397&postcount=33

The command in clause 9 was not correct

My phone is Redmi 5A (MCG3B) Global.

Instructions for lazy people like me:

1. Download finished files https://xdaforums.com/showpost.php?p=79277787&postcount=82

2. Next, download the firmware

3. Flashing in EDL mode via MiFlash after the end, disconnect the phone from the PC.

4. Next, create the 'tmp' folder in C:\MiFlash \tmp and put the downloaded files into it.

5. Again we connect the phone in EDL mode and go to the C: \ MiFlash folder, hold down Shift and the right mouse button and open the command window.

6. Copy and paste the commands one by one, where COM5 we indicate your port number, you can see it in the device manager - ports (COM and LPT).

QSaharaServer.exe -p \\.\COM5 -s 13:prog_emmc_firehose_8917_ddr.mbn -b tmp\

fh_loader.exe --search_path=tmp --port=\\.\COM5 --sendxml=hack_splash.xml

fh_loader.exe --search_path=tmp --port=\\.\COM5 --sendxml=twrp.xml

7. Done! Enter TWRP (clamp volume + and power) and do wipe Data otherwise the memory will be only 2 Gb.

It is possible to put the firmware through TWRP, but the phone does not start after that.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
[QUOTE

QSaharaServer.exe -p \\.\COM5 -s 13:prog_emmc_firehose_8917_ddr.mbn -b tmp\

fh_loader.exe --search_path=tmp --port=\\.\COM5 --sendxml=hack_splash.xml

fh_loader.exe --search_path=tmp --port=\\.\COM5 --sendxml=twrp.xml

7. Done! Enter TWRP (clamp volume + and power) and do wipe Data otherwise the memory will be only 2 Gb.

It is possible to put the firmware through TWRP, but the phone does not start after that.[/QUOTE]

Does not exit writes port is blocked. EDL only by closing the contacts. Adb can not manage EDL -

c:\adb>fastboot oem edl

...

FAILED (remote: device locked, oem edl is not allowed)

finished. total time: 0.002s

there is a solution ?
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
5а

I was able to install twrp on 5A by replacing recovery.img (with twrp) in firmware riva_images_V8.5.7.0.NCKCNED_20171025.0000.00_7.1_cn_4be774459b, via Qfil (qpst)

TWRP was installed but the device does not boot, it may not have been necessary to reset everything ..... what opinions are there?
[Xiaomi Redmi 5A Guides, News, & Discussion] Michael227:
I entered the phone in EDL mode, closing the contacts and flashing, the COM port should appear in the task manager.

See how to do this in Youtube, if not correctly displayed, it means the drivers are not installed.

I tried to write the instructions as simply as possible, there is nowhere easier.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
Hello . contact closure already performed - the port received 9008 (Com 3) but when executing the instructions of the command point 9 - error

PS D:\> cd D:\MiFlash

PS D:\MiFlash> .\QSaharaServer.exe -p \\.\com3 -s 13:prog_emmc_firehouse_8917_ddr.mbn -b tmp\

Binary build date: May 9 2017 @ 03:56:22

QSAHARASERVER CALLED LIKE THIS: 'D:\MiFlash\QSaharaServer.ex'Current working dir: D:\MiFlash

Sahara mappings:

2: amss.mbn

6: apps.mbn

8: dsp1.mbn

10: dbl.mbn

11: osbl.mbn

12: dsp2.mbn

16: efs1.mbn

17: efs2.mbn

20: efs3.mbn

21: sbl1.mbn

22: sbl2.mbn

23: rpm.mbn

25: tz.mbn

28: dsp3.mbn

29: acdb.mbn

30: wdt.mbn

31: mba.mbn

13: prog_emmc_firehouse_8917_ddr.mbn

12:35:54: ERROR: function: sahara_rx_data:237 Unable to read packet header. Only read 0 bytes.

12:35:54: ERROR: function: sahara_main:924 Sahara protocol error

12:35:54: ERROR: function: main:303 Uploading Image using Sahara protocol failed

This error is due to the Chinese firmware (occurs when installing the global version on China via QPST)

What solutions will be? Without unlocking the bootloader, it is my brick (repair is not in an authorized SC), suggest options - if it dies, it will not hurt.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
happened! removed spaces ... but it doesn't load - a penguin appears and that's it.

when trying to install zip with firmware via twrp black screen
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
unlock Redmi 5A

Has anyone managed to unlock the bootloader in this way?
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Now install MIUI 10 pro Naugat Rom.

You can install miui 10 pro now. Just download the firmware from here - https://miuipro.info/ or https://miuipro.net/

-Extract and delete firmware folder.

-Now modify updater script by removing firmware installation and Root installation. Busybox too.

-Append 4k block as he said in boot.img file.

-Repack the rom and flash.

That's it. Now you can use miui 10 with magisk...

If you are getting any problem like boot lag then tell me.:cowboy:

I am also trying to install miui oreo rom. As the firmware of the naugat rom is also different because of this xiaomi eu or miui rom should not work.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
Hello, is it possible to use miuipro_v7.1.2_riva_8.9.6? Your method. Is it possible to use files and instructions from post # 113 for your instructions? Or do you need to create files again? (There is another firmware)

But even there, after the successful installation of TWRP, the device loading did not continue. What will happen in your case?or you have a link to 10 muipro for redmi5a. Could you help make the files for the kettle for firmware? (I did not understand with "4k") on miuipro_v7.1.2_riva_8.9.6?https://drive.google.com/uc?id=1HO7mG8ne3ZUUnsaB2TKJixC3AEqH25uD&export=download

help me please
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Use Miui pro 8.8.9 .

As we have already discussed about the 4k blocks.

4k means 4 kilobytes.

Append 4k blocks in boot.img. as you did with custom recovery. No need to flash the firmware just remove the firmware from the rom and also remove magisk installation as they give it in the rom. And flash it.

Working fine tested by me.

I will upload the modified rom so you can flash it by custom recovery without any modifications. But i need some time for that.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
I did not find firmware 889. I took miuipro_v7.1.2_riva_8.9.6. I performed unzip miuipro_v7.1.2_riva_8.9.6. I open boot.img in hex edit and

I go down to the bottom. after all the zeros, we write 30.83,19,89,64 (5 bytes) and add the rest 0 - 4091 (together 4096-4k) drawing hex 1

then we go \ redmi \ miuipro_v7.1.2_riva_8.9.6 \ META-INF \ com \ mp and according to your instructions we delete the Root folders. Busybox (why do I need root?)

magisk in folders not found you write that you need to remove it - where I did not find it. Then we pack again in ZIP and run

TWRP choose to install and flash the corrected firmware. Please correct my instructions, do I do it correctly?
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
I think you are unable to understand it. I said delete firmware folder and remove its registry from updater script and remove magisk too.

By the way tomorrow i will upload the patched rom so that you can flash it directly from twrp.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
you are right it is difficult for me to understand and it is very difficult to use google translator but I will say thank God for you if everything works out for sure Everyone is waiting for your work for Redmi 5a. the phone spoiled me a lot of strength and in the past I wanted to break it with anger, and you gave hope
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
Tommorow i am going to upload miui rom. Because i am free tommorow.
[Xiaomi Redmi 5A Guides, News, & Discussion] b4b4.4l1:
This might be a stupid question, but I don't see Qsaharaserver.exe file, and instead of MiFlash folder, what I have is XiaoMiFlash folder. What do I miss here? fh_loader.exe is present though.

Meanwhile, I tried to google a bit about it, found about QPST and tried to install it but failed to install. What might be wrong here?
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
for sure there is. you can in Google search type Qsaharaserver.exe download and get a link to miflash.
[Xiaomi Redmi 5A Guides, News, & Discussion] b4b4.4l1:
Well, for sure I can tell you it's not there in mine. I have tried to remove the one I have and reinstall the older MiFlash from here but still the file is not present.

I also have tried to google for it and what I found is about QPST. So download that and tried to install, but somehow it failed to be installed on my system. Half way through the installation it just rolled back and said installation was interrupted.

Nvm, I just tried to google for another version of MiFlash and now I have it. Thanks.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
looking forward to your rom: D
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
lavishkumar where are you? :(
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
dear gentlemen, everything worked out for me according to the method outlined above, I filled in the firmware miuipro with root and busybox. But one trouble imei 123456789012345 and 123456789012346 for the modem and serial 0 how to change the values ​​according to the box?
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
Unfortunately, you can only install products on miui (miuipro) on the android (lineage16) and the data will not be blocked and the exit from the brick will be only via edl. Is there any way out to put an android? The imai area remains incorrect (for me) is not possible to change, in all ways (dd \ dev method .... modem1 erases partitions but the shell does not work afterwards) I ask for help from specialists.
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
I am really very busy. Wait 2 or 3 days. I will upload it for sure.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
Dear lavishkumar, I managed to launch the method. But I can not change imei-not a full root can be in my firmware, look at this moment I have other imei not like on the box I can not use the phone without normal imei (I tried many ways)
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
You can change your imei without boot to edl and without root. Search on YouTube you will find. And you can also do it by qpst (qfil). Or there is also a simple tool. So, search it out.

I think your English is not much better. So, you can use your mother languege. I will translate it.

Had you deleted firmware folder from the rom?

And if you have any other issue then let me know.
[Xiaomi Redmi 5A Guides, News, & Discussion] Alexmuvik:
The folder with the firmware from the roma, no, nothing was deleted, it was installed and so. Tell me the name of the folder with the firmware - to delete? QPST, QFIL used - qcn is read, but does not write back, with the command * # 06 # it shows the old imei. If you wipe the "dd"- modem1,2 partitions- then qpst allows you to fill qcn but the firmware does not load - the lancher shell error is cyclical. Perhaps this is on my firmware. I have crooked hands :(. When do you put your firmware? Once again, sorry for English.

Every day I look at the site several times in search of your firmware. Colleagues laugh asking why I will not throw away the phone if I have nothing comes out ... but I still hope.
[Xiaomi Redmi 5A Guides, News, & Discussion] lavishkumar:
I am unable to understand clearly that what problem you have. But i will try to solve the issue.
[Xiaomi Redmi 5A Guides, News, & Discussion] alecxs:
Xiaomi have fixed their server problems, after the MI account is bonded to device and the waiting period is initiated by unlock tool, you are able to unlock after the waiting period.

[MENTION=4544860]osm0sis[/MENTION] if you want to integrate this hack, beware of "NOTE1" in OP
[Xiaomi Redmi 5A Guides, News, & Discussion] elemefaaoo:
Really?