(Guide) How to fix a hard bricked Redmi Note 9 (Merlin) (Hard Brick) - Redmi Note 9 Guides, News, & Discussion

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A how-to guide of restoring a completely bricked Redmi Note 9​
Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.
If this is your phone here's how you can solve it without the need for service.
Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
(I mean at this point you either have a useless brick or a working phone, you are choosing).
This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
(I did this on Windows 10 btw)
You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
Get thefastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
Let the phone's battery die so the boot looping completely ends. (else you'll get error STATUS_EXT_RAM_EXCEPTION (0xC0050005) when using SP Flash Tool). ( I also tried it with a full battery and still worked so idk for sure how necessary this step is).
Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
Extract the attached zip file and the fastboot image each into their folders.
Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool.MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
Get your phone and a USB cable, connect the USB cable to your computer,while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons AND power button!) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
On the drop-downbox below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE. (If you get "Error : STATUS_STOR_LIFE_EXHAUST" go to options-> general and uncheck Storage life cycle check).
When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
Disconnect your device from your computer and press the power buttonto start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you hf.
Credits:
Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github

Very good guide, my friend.
Thank you very much for details and contribution

My device was brick yesterday, OTA update pixel plus ui rom and get boot loop at redmi logo. I do exactly your tutor but in step 11 my device is not recognized. Any solution for me? Thanks.

aries.1482 said:
My device was brick yesterday, OTA update pixel plus ui rom and get boot loop at redmi logo. I do exactly your tutor but in step 11 my device is not recognized. Any solution for me? Thanks.
Click to expand...
Click to collapse
If you did step 9 it should recognize it, try to reboot your computer if you didn't already. Also your phone would be visible only for a second before it gets disconnected so you have to act fast.

vagelis199 said:
If you did step 9 it should recognize it, try to reboot your computer if you didn't already. Also your phone would be visible only for a second before it gets disconnected so you have to act fast.
Click to expand...
Click to collapse
Your window is 32 or 64 bit, I use windows 10 64 bit and did all step, one by one but no effect.

Finally, done it. I found this:
- Hold both vol up and down when plug in so the device recognize.
- You must choose right fastboot image (origin stock rom), if not devices can't boot in to miui rom cause bootloader locked after sp flash
And at last, thank you very much, you saved my day.

aries.1482 said:
Finally, done it. I found this:
- Hold both vol up and down when plug in so the device recognize.
- You must choose right fastboot image (origin stock rom), if not devices can't boot in to miui rom cause bootloader locked after sp flash
And at last, thank you very much, you saved my day.
Click to expand...
Click to collapse
Cool ill update the guide!

Hi, My device is recognized as "Qualcom HS-USB QDLoader 9008" not the "MediaTek USB Port" on step 11 and it seems not recognized on step 12. Do you have any solutions for me. Thanks!

lionfishes said:
Hi, My device is recognized as "Qualcom HS-USB QDLoader 9008" not the "MediaTek USB Port" on step 11 and it seems not recognized on step 12. Do you have any solutions for me. Thanks!
Click to expand...
Click to collapse
I think you are on a wrong guide, That's a guide for a Redmi Note 9, not the Pro version

vagelis199 said:
I think you are on a wrong guide, That's a guide for a Redmi Note 9, not the Pro version
Click to expand...
Click to collapse
My phone is Redmi Note 9. I tried to restart it yesterday and couldn't power on again. So I'm looking for some solutions to see if it can be fixed. Thanks!

lionfishes said:
My phone is Redmi Note 9. I tried to restart it yesterday and couldn't power on again. So I'm looking for some solutions to see if it can be fixed. Thanks!
Click to expand...
Click to collapse
There's no qualcomm version of Redmi Note 9

i made a mistake,when i clicked to download the fastboot at the xiaomi site,i clicked the fastboot link to download,but i didnt see that it brings you to a page where it has all the downloads again,so i stopped the operation and restarted it with the correct scatter this time.
Now im waiting to see what will happen,how long does it usually take for the spflash to finish?
Also at the bottom of spflash where it says 0b/s,emmc etc. should it stay at 0 when you start the download?
edit:
managed to make it work,one important thing for me was at the option/option,had to select com port com 3

nikosefs said:
i made a mistake,when i clicked to download the fastboot at the xiaomi site,i clicked the fastboot link to download,but i didnt see that it brings you to a page where it has all the downloads again,so i stopped the operation and restarted it with the correct scatter this time.
Now im waiting to see what will happen,how long does it usually take for the spflash to finish?
Also at the bottom of spflash where it says 0b/s,emmc etc. should it stay at 0 when you start the download?
edit:
managed to make it work,one important thing for me was at the option/option,had to select com port com 3
Click to expand...
Click to collapse
Thanks i updated the guide including this

i'm having an ERROR notification : STATUS_EXT_RAM_EXCEPTION (0xC0050005) help me

Looking for some info/help if possible: apologies i'm not trying to derail your thread.
I had bricked my RN9 but managed to unbrick and have it working ok now however I am wanting to restore it/lock the bootloader to allow for using banking apps. But I am encountering an issue. I had tried using MiFlash Tool but during the flash, I get a mismatch error and it doesn't succeed in flashing the Fastboot rom.
If i was to follow your guide from step 13, would this work for me? Or which steps do I need to skip in your list?
Thank you for any advice/help
** I finally managed to get it sorted ** used the EDL flash guide and then flashed in SPFT.
[GUIDE] How To bypass authentication and flash in EDL with NO auth for FREE
Thanks to: chaosmaster / k4y0z: GitHub / XDA xyzz / xyz`: GitHub / XDA Dinolek: GitHub / XDA How to install: 1. Download the attached file: VD171_MTK-bypass.zip. 2. Extract the file and open the folder. 3. Run and install python...
forum.xda-developers.com

vagelis199 said:
Hi, In this guide, I will teach you how to fix a hard-bricked Redmi Note 9 (merlin) and bring it back to its original state.
How does a hard-bricked Redmi Note 9 look like? it's stuck in an infinite boot loop showing only the Redmi logo,
Can't access recovery with power+vol down, can't enter fastboot, can't connect it to a computer either.
If this is your phone here's how you can solve it without the need for service.
Following this guide keep in mind that everything would be erased from your phone including custom Recovery or ROM obviously. Also the bootloader would get locked again.
(I mean at this point you either have a unless brick or a working phone, you are choosing).
This is tested by me, and it works as long as you follow the steps carefully and you don't skip anything.
(I did this on Windows 10 btw)
You gonna need to download, Python and the official Xiaomi fastboot image for Redmi Note 9. Also the zip file I'm attaching bellow. the zip file contains the MTK Drivers, SP Flash Tool, and some additional scripts like MI auth bypass etc,
Get the fastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
Get python from the official website site, I tested it with 3.9.7 but the latest version should work fine. Now, you have all the necessary files to start.
Let the phone's battery die so the boot looping completely ends. (I'm not sure if this is completely necessary but that's how I did it).
Install Python select the "add to PATH" option, you can test if it was installed correctly by opening cmd and writing "python" or "py" it should output the python version.
Extract the attached zip file and the fastboot image each into their folders.
Enter the MTK Driver folder Install the MTK Driver for MTK SP flash tool. MTK_Driver_Auto_Installer_SP_Drivers_20160804.exe, Reboot your computer.
Enter the python folder, run the "install pyusb pyserial json5.bat" when it's done close the terminal.
Enter the driver folder, this folder contains a USB to COM driver for MTK Devices, right-click the "cdc-acm.inf" click install.
Enter the libusb folder, run the libusb-win32-devel-filter-1.2.6.0.exe file, click next,next...install, when it's done it would prompt you to launch "filter installer wizard" click finish, when the wizard shows up, select "Install a device filter" it would show you your connected USB devices,
Get your phone and a USB cable, connect the USB cable to your computer, while holding the volume up button on your phone connect your phone to the computer (Based on community feedback you might need to hold both up and down volume buttons) once your phone turns on you would see your phone listed as "MediaTek USB Port" at the libusb filter installer before your phone reboots click at the "MediaTek USB Port" and then click install if you don't do it on time, your phone will get disconnected because of rebooting, try again re-plugging your phone. once you click install, You should get a pop-up message saying "...device filter successfully installed for MediaTek USB port..." click ok and exit, then remove your phone from the computer.
Enter the bypass folder (This folder contains scripts to bypasses the Mi auth) double click the "1ST RUN THIS.bat" when it says "waiting for device" hold volume up and plug your phone into the computer (btw: You can let the button when it's recognized by the script). now most likely it would say "RuntimeError: unexpected output, expected 0xfd got 0xfe", if it does close the script and disconnect your phone, Try the "2ND RUN THIS.bat" when it shows "Waiting for device" hold volume up and connect your phone to the computer, wait till the console recognizes your phone, (At this part it might take few tries to make it work, try reconnecting your phone without holding any buttons or try holding volume down while reconnecting your phone) Once it gets recognized it would output "Found port = COM3" and Protection disabled. At this part your phone has stopped boot looping which is good but, DO NOT TOUCH YOUR PHONE, DO NOT DISCONNECT IT FROM THE COMPUTER, set your phone aside, and continue with the guide.
Enter the SP Flash Tool folder run the flash_tool.exe at the Download-Agent click choose and select the DA_6765_6785_6768_6873_6885_6853.bin file which is included in the SP flash tool folder.
At the Authentication File, click choose and select the auth_sv5.auth included in the SP flash tool folder.
At the Scatter-loading File, click choose, go to the fastboot image extraction folder (Step 4) then enter the images folder and select the MT6768_Android_scatter.txt file (Fastbootimage/images/MT6768_Android_scatter.txt)
On the drop-down box below the "Authentication File" label change the option from Download Only to Firmware Upgrade.
At the toolbar above click Options -> Option... go to Connection check the UART option and set the Baud rate to 921600, make sure the com port option is set to com 3, then close the window.
Click Download with the green arrow, now wait till it finished flashing your phone this would take quite of time, at this part DO NOT TOUCH ANYTHING LET IT FINISH TO AVOID ANY CURROPTION ON YOUR PHONE.
When it's done it would show you a pop-up window "Download Ok" with a green background and a checkmark, click the X to close, and now you can also close the SP Flash tool app.
Disconnect your device from your computer and press the power button to start your phone, connect it to a charger or back to the computer since there was no charge so it won't die suddenly now.
Your phone now should boot normally showing the MIUI logo, because its first boot it would take few minutes for the phone to boot, wait patiently and you would see the "first setup" screen.
That's it! You successfully brought back to life a hard-bricked Redmi Note 9 (merlin). A huge weight now has lifted from you hf.
Credits:
Bypass script and payload included in the attachment file is provided by (chaosmaster, xyzz) github
Click to expand...
Click to collapse
Hi thanks a lot for your help. I accidentally flashed a redmi 10x miui 11, wanted to downgrade my Redmi 9 from 12.5, bad perfomance, resulting in your hard-bricked version. Flashing last fastboot version doesn't help, do i have a chance to fix it?

vagelis199 said:
Get the fastboot image from here select your version (I picked the latest global) click download scroll down where it says "type:fastboot" and click "download: full Rom" the file name should look like this "merlin_images....tgz" or "merlin_global_images....tgz", etc, NOT miui_Merlin.zip,
Click to expand...
Click to collapse
Hi and thanks for this detailed guide.
I bricked my merlin trying to root it (long history trying to get TWRP to stick)
I am now in the redmi logo loop and i am trying to follow this with great care.
however in the step above, no matter what I choose in "Yshasalger" page, i end up with a Recovery ROM and the file name contains the miui prefix as opposed to what you clearly state.
see image:
I am asking because i am scared of making more mistakes.
So i guess my question is if someone can check it happens to them (maybe the page changed since the writting of this guide)
If i should try with that ROM zip file or if there is another place i can get the proper one
I want to if possible to flash an older MIUI / Android than the latest 12 xxx / Android 11 as i find the phone to be really slow since the last OTA update.

Coroneln said:
Hi and thanks for this detailed guide.
I bricked my merlin trying to root it (long history trying to get TWRP to stick)
I am now in the redmi logo loop and i am trying to follow this with great care.
however in the step above, no matter what I choose in "Yshasalger" page, i end up with a Recovery ROM and the file name contains the miui prefix as opposed to what you clearly state.
see image:
View attachment 5476667
I am asking because i am scared of making more mistakes.
So i guess my question is if someone can check it happens to them (maybe the page changed since the writting of this guide)
If i should try with that ROM zip file or if there is another place i can get the proper one
I want to if possible to flash an older MIUI / Android than the latest 12 xxx / Android 11 as i find the phone to be really slow since the last OTA update.
Click to expand...
Click to collapse
That's because you are choosing recovery and not fastboot, choose fastboot as type scroll down it has two links for recovery and for fastboot image. Check the file name

vagelis199 said:
That's because you are choosing recovery and not fastboot, choose fastboot as type scroll down it has two links for recovery and for fastboot image. Check the file name
Click to expand...
Click to collapse
i promise i am choosing fastboot but it ends up in the recovery i have tried several different versions in case it was a file wrongly indexed.

TL|DR
Python errors, step 8 and 12 on Windows 10
Go to -> "start" and type "Manage App Execution Aliases". Go to it and turn off "Python"
=========================
Now read....
Just in case someone has trouble with step: 8
Escenario: the BAT file calls `python` and in some windows 10 this will result in a message about the windows store (Even if the path is added)
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings
but `py` works, so just edit the BAT file and replace the call for `python` with `py` it will install all the python modules with no errors.
EDIT:
This also affects step: 12
Found a solution here: https://stackoverflow.com/questions...arguments-to-install-from-the-microsoft-store
Go to -> "start" and type "Manage App Execution Aliases". Go to it and turn off "Python"
The error:
After editing the BAT file replacing `python` with `py`

Related

GUIDE: How to unbrick your Zenfone 6 (ZS630KL)

Hello.
This guide will help you unbrick your device in case your devices hangs as it boots, and always boots into fastboot mode and recovery is unavailable and the like.
Note: Unlocked bootloader is not required to do any of the actions described in this guide.
Disclaimer: I'm in no way responsible for the actions you perform and whatever happens to your device due to these actions. Proceed at your own risk.
Prerequisites:
Service firmware. Can be downloaded here. It's an older build, but it will do the trick and it's the only one I could find freely available at the time of writing. Only for WW SKU
Zip for your desired build. Can be found here.
- Note: For this guide, my desired build will be WW-17.1810.1910.63, which is a special case, as you will need to flash in the following order: Service Firmware -> WW-16.1220.1909.194 -> WW-17.1810.1910.63. In other cases, unless noted otherwise in a description of the build on the ASUS website, Service Firmware -> Desired build will suffice.
Platform tools of Android SDK. Latest package can be downloaded from: Windows | Linux. Somewhat optional but good to have.
Step 1 - Preparing the environment
This is not required but for the sake of simplicity and keeping everything in one place, create a folder and name it whatever you like, for example ASUS or Unbrick
Create a sub-folder inside the folder you've created in the previous step, call it service_firmware, download and unzip service firmware into this folder
Download files for the desired builds from the above link. For this specific case, WW-16.1220.1909.194 and WW-17.1810.1910.63.
3.a If you have microSD card, transfer zip file for the desired build into its root and insert the card into the phone.
3.b. If you do not have a microSD card, download and unzip platform tools mentioned in the prerequisites as you will need adb to flash firmware/s via sideload
Step 2 - Flashing service firmware
Connect your phone via USB
Enter fastboot mode via one of the methods:
1.1. Turn off your device, then turn it on while holding down the power and volume up buttons at the same time. Release the power button when it powers up (keep holding the volume up button)
1.2. If you have platform tools, you can do adb reboot fastboot
Open CMD (windows) | Terminal (unix)
CD into the folder with service firmware from item #2 from the step above.
Make sure your phone is detected by typing fastboot devices
Ensure battery is at least 20% charged. Aside from normal means, it's possible to check the battery charge via fastboot oem get-batcap.
Sample output: (bootloader) bat cap = 35, which means that the battery is 35% charged.
IMPORTANT NOTE BEFORE CONTINUING:
By default, flashing with one of the scripts wipes your userdata, in other words, it performs a factory reset.
It is possible to avoid userdata wipe (although not encouraged) but keep in mind, unless you flash your current build after flashing service firmware, your phone will not boot up.
If you absolutely would like to preserve your userdata, even if for the sake of backing it up before doing a factory reset, you have to edit the flashall script in the following way:
Windows: Open flashall.cmd in your favorite text editor, go to line #298 and change it from fastboot -w to REM fastboot -wand save the changes.
Unix: Open flashall.sh in your favorite text editor, go to line #275 and change it from $fastbootcmd -w to #$fastbootcmd -w and save the changes.
Once again, this is not encouraged as it can potentially cause issues later on. You've been warned.
Run the script
1. 1. Windows: In the CMD you opened earlier, type flashall.cmd
1. 2. Unix: In the Terminal you opened earlier, type ./flashall.sh
Note: An obvious note, do not disconnect your device from your PC while flashall script is running. Your device will reboot a few times during the execution.
Once script outputs format logdump... and the phone reboots, service firmware will be flashed.
Step 3 - Upgrade to your desired build
Enter Recovery mode via one of the following methods:
1.1. If your phone is turned on and USB debugging is enabled, use command adb reboot recovery
1.2. While in fastboot mode, navigate to Recovery Mode using Volume Up/Down buttons and select with a single press of a Power button
1.3. While in fastboot mode, issue one of the following commands : fastboot reboot recovery or fastboot oem reboot-recovery
Once in Recovery Mode, you have 2 ways to proceed:
A: Update from SD card
A.1. Select Apply update from SD card option
A.2. Navigate your SD card and select UL-ASUS_I01WD-ASUS-16.1220.1909.194-1.1.1-user.zip
A.3. Confirm your choice with a single press of the Power button
A.4. Once you're back to the menu of Recovery Mode, reboot by selecting Reboot system now and enter Recovery Mode once again via any of the above methods
A.5. Select Apply update from SD card option again
A.6. Navigate your SD card and select UL-ASUS_I01WD-ASUS-17.1810.1910.63-1.1.1-user.zip
A.7. Confirm your choice with a single press of the Power button
A.8. Once you're back to the menu of Recovery Mode, select Reboot system now
B: Update through ADB Sideload
B.1. Select Apply update from ADB option
B.2. In your CMD/ Terminal, issue command adb sideload "UL-ASUS_I01WD-ASUS-16.1220.1909.194-1.1.1-user.zip"
B.3. Once you're back to the menu of Recovery Mode, reboot by selecting Reboot system now and enter Recovery Mode once again via any of the above methods
B.4. Select Apply update from ADB again
B.5. In your CMD/ Terminal, issue command adb sideload "UL-ASUS_I01WD-ASUS-17.1810.1910.63-1.1.1-user.zip"
B.6. Once you're back to the menu of Recovery Mode, select Reboot system now
Note: Like I've mentioned earlier, these steps are specifically for build WW-17.1810.1910.63. If your target build does not require another build for an update, you can skip steps A.4 to A.7 or B3 to B5
That's pretty much it. If you followed the steps above correctly, you should once again have a running phone with your desired build of firmware.
If you have any questions, do not hesitate to ask.
Cheers.
Hello i've a question (sorry for my bad English). This morning my phone was bricked (red message logo), and with this tuto i remove this logo and i found my original recovery.
But when i want to install firmware from recovery with SDcard option, i've a message no SDcard found and impossible to install firmware. (even after several tries)...
If i reboot my phone i have android logo bootloop...
Can you help me???
https://drive.google.com/file/d/1GStfEgZFpb66JRaAmjeYOKmyn9d8WcPz/view?usp=sharing
https://drive.google.com/file/d/1FSRZfI1vNAyDQDZaLDGrHyiC-lImsYhr/view?usp=sharing
Thank you and Happy New Year...
Thanks for the link to that service firmware!
_Kuroi_ said:
This guide will help you unbrick your device in case your devices hangs as it boots, and always boots into fastboot mode and recovery is unavailable and the like.
Cheers.
Click to expand...
Click to collapse
Thanks a lot mate, you made my day!
Please, one question: can you tell me, if both slots (A & B) are flashed by this method?
Thanks!
Thank you so much!
I've wanted to go back to stock for so long, but I haven't been able to find a stock ROM. I've even contacted ASUS support and they couldn't even get it! Thank you so much for the download and for the guide, you've made my week. I'll be smiling every time I use my phone thanks to you!
Great guide. I have a soft bricked device after flashing Lineage 16.0 recovery. Have a boot loop and can't get to recovery. I realise the mistake was flashing the recovery as should have just booted it.
Has anyone else had success with this on a Zenfone 6?
For those who need it; managed to resolve by downloading the stock firmware from Asus, extracting the boot.img and flashing it. Back working.
Didn't try the guide but this is quicker in this scenario if you have flashed a custom recovery to the boot partition. There is no separate recovery partition so this soft bricked the device, overwriting boot with recovery (I followed the guide here for LineageOS which is ill advised) . Should be booting the recovery rather than flashing, or booting into stock recovery and using the installer zip for your custom recovery.
Steps to recover:
1. Download stock firmware from Asus - make sure you use the same firmware version installed on the device or you may find it will boot but some hardware such as WiFi or others may not work.
2. Extract the archive and then you need to extract the boot.img from payload.bin - see this article and use the payload dumper
3. Flash your boot.img with fastboot flash boot boot.img
4. Reboot
Device should restart and boot up. Now to see why TWRP and LineageOS custom recoveries won't boot.
Hi, I followed your tutorial down to the letter, but when trying to install the ROM from stock recovery, I'm getting this error
"Eackage is for product ASUS_I01WD but expected WW_I01WD
Installation aborted"
Any fix? I'm trying to flash the latest Android 10 rom, but no luck.
This worked for me, but I'm still in CSC FastBoot Mode and when Android boots, I'm asked to insert a previous pin, which nothing works. Any advice?
kenturky said:
Hi, I followed your tutorial down to the letter, but when trying to install the ROM from stock recovery, I'm getting this error
"Eackage is for product ASUS_I01WD but expected WW_I01WD
Installation aborted"
Any fix? I'm trying to flash the latest Android 10 rom, but no luck.
Click to expand...
Click to collapse
hey, did you manage to fix this? i'm having the exact same problem
sapientsaxonsaboo said:
1. Download stock firmware from Asus - make sure you use the same firmware version installed on the device or you may find it will boot but some hardware such as WiFi or others may not work.
2. Extract the archive and then you need to extract the boot.img from payload.bin - see this article and use the payload dumper
3. Flash your boot.img with fastboot flash boot boot.img
4. Reboot
Device should restart and boot up. Now to see why TWRP and LineageOS custom recoveries won't boot.
Click to expand...
Click to collapse
I tried to install latest firmware from
https://www.asus.com/Phone/ZenFone-6-ZS630KL/HelpDesk_BIOS/
everything goes fine but it shows till this moment:
fastboot flash boot_b boot.img
Sending 'boot_b' (98304 KB) OKAY [ 2.295s]
Writing 'boot_b' FAILED (remote: 'Flashing is not allowed for non-official image')
any suggestions ?
kenturky said:
Hi, I followed your tutorial down to the letter, but when trying to install the ROM from stock recovery, I'm getting this error
"Eackage is for product ASUS_I01WD but expected WW_I01WD
Installation aborted"
Any fix? I'm trying to flash the latest Android 10 rom, but no luck.
Click to expand...
Click to collapse
Taylor Moon said:
hey, did you manage to fix this? i'm having the exact same problem
Click to expand...
Click to collapse
Try flashing latest image of Android 9 and then flash Android 10
Can somebody please help me with my problem?
So I was able to get my hands on a new 8gb/512gb matte black version of this. Was setting up the phone, updated to Android 10 first before transfering sms, call logs and updating apps. Went to turn off the phone to insert my SIM card and now the phone won't turn on. It vibrates every time I press the power button but then nothing. Currently it's connected to the supplied charger with the LED light lit red. It was already charging while I was using it, had about 70% battery before I switched it off. I've tried volume down + power button for 10 seconds, LED light turns off and it vibrates, and it keeps vibrating every 10 seconds when it's connected to the charger (doesn't keep vibrating when it's not connected). Can feel the area between the fingerprint reader and camera pretty hot during this. Volume up + power doesn't work either. Any ideas?
Click to expand...
Click to collapse
Also, the phone gets detected when I connect it to my laptop but I can't do an "adb reboot" or "adb reboot fastboot" as it says the "error: device is not found."
I left it on charge overnight and the LED changed from red to green too.
Any help would be greatly appreciated.
CVonV said:
Can somebody please help me with my problem?
Also, the phone gets detected when I connect it to my laptop but I can't do an "adb reboot" or "adb reboot fastboot" as it says the "error: device is not found."
I left it on charge overnight and the LED changed from red to green too.
Any help would be greatly appreciated.
Click to expand...
Click to collapse
When you connect it to your laptop, go to device manager and check what it is detected as.
_Kuroi_ said:
When you connect it to your laptop, go to device manager and check what it is detected as.
Click to expand...
Click to collapse
I can't seem to find any listing that would correspond to the phone under the Ports section :/
CVonV said:
I can't seem to find any listing that would correspond to the phone under the Ports section :/
Click to expand...
Click to collapse
Maybe upload a screenshot of the devices listing?
_Kuroi_ said:
Maybe upload a screenshot of the devices listing?
Click to expand...
Click to collapse
I thought it would've been listed in the Ports section but it's right at the top under "Android Device" as "Android ADB Interface". I believe I have the correct Qualcomm drivers installed.
Attached screenie also shows device not found when I try an "adb reboot" in command prompt.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hmm, I half expected it to be listed as QDLoader 9008, but then it would be under serial ports.
Try fastboot commands instead of adb and also try holding power + vol down for 10-15 seconds
Great guide @_Kuroi_ , I will be trying it out soon. The service rom you are using is pretty old. So I grabbed the last P update service firmware (WW-16.1220.1909.194) and the latest Q build I could get currently (WW-17.1810.2002.133). I have a subscription to one of the paid firmware sites for reasons like this. This way people have more options and it will simplify most people's updating because they can go from the new P service rom to any Q ota. Q firmware doesn't really make sense until it's not being updated anymore but it's here just in case someone finds it useful. If there is some incompatibility in the future or something that requires a newer update I will grab it then. If there isn't I will grab the last firmware once Q is stopped being updated.
WW-16.1220.1909.194
Here
WW-17.1810.2002.133
Here
WW-17.1810.2009.176
Here
Feel free to update your guide to incorporate these all I ask is a credit in the OP for providing it.
After running ./flashall.sh I get the following output:
Done.
target reported max download size of 805306368 bytes
File system type is raw !!!
Erase successful, but not automatically formatting.
File system type raw not supported.
Erasing 'userdata'...
OKAY ( 0.266s)
Sending 'userdata' (1888 KB)...
OKAY ( 0.067s)
Writing 'userdata'...
OKAY ( 0.003s)
Erasing 'metadata'...
OKAY ( 0.027s)
Finished. Total time: 0.799s
Rebooting...
(I changed square brackets to round brackets in the output because otherwise it wouldnt let me post this comment because of bbcode)
I don't seem to have a recovery partition by the end of it and "adb devices" doesn't show me anything.
Does anyone know what might have gone wrong?

How to rollback from Android 10 to 9?

Hello people,
I wish to know step by step how to rollback my devices to Android 9 official version.
1. I know that my bootloader need to be unlocked (is it possible on Android 10)?
2. How to install the official rom and where to find?
3. Would it work like the official with locked bootloader?
Please share your experience since and the way did you done it ??? since Android 10 on my Mi A2 lite have been working very bad even though I have erased all data and reset it.
Appreciate any information, have a good day (stay safe)
I am also going to downgrade it but not getting the time
Try Xiaomi Flash Tool.
koska92 said:
Hello people,
I wish to know step by step how to rollback my devices to Android 9 official version.
1. I know that my bootloader need to be unlocked (is it possible on Android 10)?
2. How to install the official rom and where to find?
3. Would it work like the official with locked bootloader?
Please share your experience since and the way did you done it since Android 10 on my Mi A2 lite have been working very bad even though I have erased all data and reset it.
Appreciate any information, have a good day (stay safe)
Click to expand...
Click to collapse
1. Yes, all you have to do is unlock OEM in developer settings, then boot to fastboot by turning off your phone and pressing power and vol- buttons at the same time, then open up adb in cmd and write "fastboot oem unlock" (it will wipe your data, unless you're still holding vol- button)
2. You install it by simply downloading it and unpacking, then copying it's directory to adb and choosing which option would you like, I recommend flash_all.bat, full command should look similiar
D:\daisy\daisy_global_images_V11.0.7.0.QDLMIXM_10.0\flash_all.bat
You can get every single fastboot Image from here:
https://forum.xda-developers.com/mi-a2-lite/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824871
3. Yes it will work like an official with locked bootloader, only diffirence is that it might not have apps like google play music, also with unlocked bootloader you will be able to use magisk and get for example
Google camera app
Here you can download ADB
https://developer.android.com/studio/releases/platform-tools
Personally I didn't had a single problem with flashing Android One through fastboot, and personally I prefer that way since xiaomi flash tools need a phone that's in edl mode which later on you have to exit manually on your own (at least in my case, maybe others don't have this problem)
Divolka said:
1. Yes, all you have to do is unlock OEM in developer settings, then boot to fastboot by turning off your phone and pressing power and vol- buttons at the same time, then open up adb in cmd and write "fastboot oem unlock" (it will wipe your data, unless you're still holding vol- button)
2. You install it by simply downloading it and unpacking, then copying it's directory to adb and choosing which option would you like, I recommend flash_all.bat, full command should look similiar
D:\daisy\daisy_global_images_V11.0.7.0.QDLMIXM_10.0\flash_all.bat
You can get every single fastboot Image from here:
https://forum.xda-developers.com/mi-a2-lite/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824871
3. Yes it will work like an official with locked bootloader, only diffirence is that it might not have apps like google play music, also with unlocked bootloader you will be able to use magisk and get for example
Google camera app
Here you can download ADB
https://developer.android.com/studio/releases/platform-tools
Personally I didn't had a single problem with flashing Android One through fastboot, and personally I prefer that way since xiaomi flash tools need a phone that's in edl mode which later on you have to exit manually on your own (at least in my case, maybe others don't have this problem)
Click to expand...
Click to collapse
Thank you for your help I will try now to fix it up
UPDATE I would give you a guidance how I managed since I had an issue with miflash application (maybe I'm the only one )
If you are following my steps I'm NOT RESPONSIBLE for any damage that may occur during the process!!!
After a quite a while of time I managed to rollback to the Anroid 8.1.0 daisy ( here is the rom https://forum.xda-developers.com/mi-a2-lite/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824871 ) .
As for beggining I had a problem with most newest MIFLASH tools, since it shows an error as soon you load application and all about certain "log" folder missing from the downloaded files.
The way to solve this issue after testing a program on multiple systems ( Win 7 & Win 10), I've resolved it in following steps (working on Win 10) :
1. Download and install MiFlash20160830 from https://www.xiaomiflash.com/download/ ( Don't forget to install ADB and drivers on your PC otherwise won't work
2. Extract and install to system
3. Run the program and connect the phone while in fastboot mode ( shut down phone, wait 10 seconds and then press volume down & power button, should see "FASTBOOT" and android avatar ) and press refresh on right top corner (On the MiFlash on PC).
4. Go to the installation files (C:\XiaoMi\XiaoMiFlash <- in my case) and copy the log file
5. Then install the newest MiFlash ( from the website https://www.xiaomiflash.com/downloads/ ) and extract it
6. Paste the log folder into the directory of newest MiFlash and run Miflash
7. Carefully browse and select the extracted rom folder, than select the folder and select "clean all and lock" (in right bottom corner)
8. Power off phone and go into the fastboot mode ( volume down & power )
9. Connect phone to the computer via USB and click refresh on Miflash (should recognize you phone)
10. Click flash and let it do the work (Don't disconnect don't interrupt )
11. When is done disconnect the phone and hold power button until phone reboots and you phone is ready! Enjoy
Sorry for being so descriptive it may help the noobs like me
Hi I'm currently using Android 9 and thinking of upgrading to 10. May I ask the reason why you want to go back to Android 9 ? So I'll see if I should actually go to android 10 haha
koska92 said:
UPDATE I would give you a guidance how I managed since I had an issue with miflash application (maybe I'm the only one )
If you are following my steps I'm NOT RESPONSIBLE for any damage that may occur during the process!!!
After a quite a while of time I managed to rollback to the Anroid 8.1.0 daisy ( here is the rom https://forum.xda-developers.com/mi-a2-lite/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824871 ) .
As for beggining I had a problem with most newest MIFLASH tools, since it shows an error as soon you load application and all about certain "log" folder missing from the downloaded files.
The way to solve this issue after testing a program on multiple systems ( Win 7 & Win 10), I've resolved it in following steps (working on Win 10) :
1. Download and install MiFlash20160830 from https://www.xiaomiflash.com/download/ ( Don't forget to install ADB and drivers on your PC otherwise won't work
2. Extract and install to system
3. Run the program and connect the phone while in fastboot mode ( shut down phone, wait 10 seconds and then press volume down & power button, should see "FASTBOOT" and android avatar ) and press refresh on right top corner (On the MiFlash on PC).
4. Go to the installation files (C:\XiaoMi\XiaoMiFlash <- in my case) and copy the log file
5. Then install the newest MiFlash ( from the website https://www.xiaomiflash.com/downloads/ ) and extract it
6. Paste the log folder into the directory of newest MiFlash and run Miflash
7. Carefully browse and select the extracted rom folder, than select the folder and select "clean all and lock" (in right bottom corner)
8. Power off phone and go into the fastboot mode ( volume down & power )
9. Connect phone to the computer via USB and click refresh on Miflash (should recognize you phone)
10. Click flash and let it do the work (Don't disconnect don't interrupt )
11. When is done disconnect the phone and hold power button until phone reboots and you phone is ready! Enjoy
Sorry for being so descriptive it may help the noobs like me
Click to expand...
Click to collapse
Nice man!! I want to try it. Do you know if back to Android 8.1 can cause some security problems on Mi A2 Lite?
After the first update(8.1 to 9.0) a lots of problems comes. The first one: Call Recorders stop work!
Now I'm with the last Android 10 update, and my cell phone is a tash. I cant use it. Lot of bugs!
I need to change the android Version(back to 8.1), install a MIUI stock, or buy a new phone(I cant do it now!!). I think this is my first and my last Xiaomi Phone.
joeyvix said:
Nice man!! I want to try it. Do you know if back to Android 8.1 can cause some security problems on Mi A2 Lite?
After the first update(8.1 to 9.0) a lots of problems comes. The first one: Call Recorders stop work!
Now I'm with the last Android 10 update, and my cell phone is a tash. I cant use it. Lot of bugs!
I need to change the android Version(back to 8.1), install a MIUI stock, or buy a new phone(I cant do it now!!). I think this is my first and my last Xiaomi Phone.
Click to expand...
Click to collapse
When it comes to security, you would need to unlock bootloader ( which means that all of the warranty would be gone). On top of that you can install some custom roms that may have some potential malware so be careful.
Nevertheless when it comes to stock roms, I never had a problem when it comes to the security, it may show up some bugs from time to time, but otherwise should run as official version...
Well the phone is pretty much outdated so it's usual that some of them won't work properly.
Nevertheless in the past with Android One phones was more than smooth and buggless. Now we see that as soon as xiaomi start to release an update it seems like they don't want to invest time to pretest the phone on the new system. It seems like MIUI is their best option...
Hoshiiiii_ said:
Hi I'm currently using Android 9 and thinking of upgrading to 10. May I ask the reason why you want to go back to Android 9 ? So I'll see if I should actually go to android 10 haha
Click to expand...
Click to collapse
Well the reason is simple. After each update my phone was much more slower and buggy. On the Android 10 the ram management was awful (as soon as you go out of the application, system close it). A lot of bugs, slow.
I've tried to connect customer service, they replied me to reset the phone and try again, but most of the problems are the same.
I won't suggest you to update.
Search out the form there was a subject about Android 10 on Mi a2 lite...
koska92 said:
UPDATE I would give you a guidance how I managed since I had an issue with miflash application (maybe I'm the only one )
If you are following my steps I'm NOT RESPONSIBLE for any damage that may occur during the process!!!
After a quite a while of time I managed to rollback to the Anroid 8.1.0 daisy ( here is the rom https://forum.xda-developers.com/mi-a2-lite/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824871 ) .
As for beggining I had a problem with most newest MIFLASH tools, since it shows an error as soon you load application and all about certain "log" folder missing from the downloaded files.
The way to solve this issue after testing a program on multiple systems ( Win 7 & Win 10), I've resolved it in following steps (working on Win 10) :
1. Download and install MiFlash20160830 from https://www.xiaomiflash.com/download/ ( Don't forget to install ADB and drivers on your PC otherwise won't work
2. Extract and install to system
3. Run the program and connect the phone while in fastboot mode ( shut down phone, wait 10 seconds and then press volume down & power button, should see "FASTBOOT" and android avatar ) and press refresh on right top corner (On the MiFlash on PC).
4. Go to the installation files (C:\XiaoMi\XiaoMiFlash <- in my case) and copy the log file
5. Then install the newest MiFlash ( from the website https://www.xiaomiflash.com/downloads/ ) and extract it
6. Paste the log folder into the directory of newest MiFlash and run Miflash
7. Carefully browse and select the extracted rom folder, than select the folder and select "clean all and lock" (in right bottom corner)
8. Power off phone and go into the fastboot mode ( volume down & power )
9. Connect phone to the computer via USB and click refresh on Miflash (should recognize you phone)
10. Click flash and let it do the work (Don't disconnect don't interrupt )
11. When is done disconnect the phone and hold power button until phone reboots and you phone is ready! Enjoy
Sorry for being so descriptive it may help the noobs like me
Click to expand...
Click to collapse
If you got an error saying log file error or something related to log then there is a simple solution. that is creating a folder named log inside the MIflash folder. like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

[GUIDES & FAQ][Merlin] Bootloader, Magisk, EdXposed, SafetyNet, GSI/Treble ROMs

DISCLAIMERS (please read !)​
This thread is made for the Redmi Note 9, also known as Redmi 10X 4G.
This device's codename is Merlin.
I will not be held responsible if you brick your device.
Follow the instructions shown in this thread at your own risks.
Follow the steps and ask questions below when unsure, everything will be fine!
No files will be directly provided. Do not use pre-created/re-uploaded files.
Feel free to cite parts of this thread in your own, just make sure to give credit where it's due.
Prerequisites for most manipulations​
Your phone, well charged if possible
The USB cable used to link your phone to your computer (the one on your charger works just fine)
A computer, with recent ADB & Fastboot (Platform Tools)
Some time, patience, and the ability to read and follow instructions!
Tutorials​
Spoiler: Unlocking your bootloader (Required for all other tutorials below)
Step 1
Make sure you have a Mi Account ready.
You should've created one when first setting up your phone, with your phone number and a password.
- If you have it: Double-check you have access to it by attempting to connect on Xiaomi's official website (Login page).
- If you don't: Create one with the Create an account button below the password form (same link as above), then connect to it.
Step 2
On your PC, go to Xiaomi's unlock page and click the colored Download Mi Unlock button.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 3
A download should start. Wait for it to finish, move the archive to your desktop and extract its content.
Step 4
Inside the extracted folder, double click the file called miflash_unlock.exe to start Xiaomi's Unlocking program.
Step 5
Read Xiaomi's Disclaimer then agree to their terms, or stop here and leave this thread if you don't.
Step 6
Sign in to your Mi Account we talked about in Step 1.
Step 7
Let's get your phone ready for unlocking.
Go to your phone's Settings > Mi Account and make sure you're logged in.
Now Settings > About Phone and tap the "MIUI Version" box multiple times until it says You are now a developer!
And finally Settings > Additional Settings > Developer Options
Enable the following settings inside Developer Options, and click Accept when warnings pop-up:
OEM Unlocking
USB Debugging
Still in Developer Options, check your Mi Unlock status and click the Add account and device button at the bottom if present.
Make sure to backup your phone's data before continuing on with this tutorial, as unlocking will make it factory reset (wipe)!
Step 8
Alright, all backed up? Confident? Let's get going with the final steps.
Turn off your phone.
Turn it back on into fastboot mode by holding down the Power button AND Volume Down together until it vibrates, you may then let go of the Power Button, but keep Volume Down held until you see the fastboot image on your phone.
Connect your phone to your computer with the USB Cable.
Xiaomi's Software should detect it. If not, click on the cog-wheel in the top right, click the Check button to install the driver and follow instructions, then keep going.
Click Unlock, and follow the instructions!
Now there are two possible scenarios
Either you've done all this before and can have your phone unlocked right away.
Or this is the first time and at the end of the progress it'll ask you to wait ~7days, and, well, there's no way around that, so come back in 7 days and start from Step 8 again.
And there you go! Your phone will reboot and you can set it all up again, with the ability to follow the rooting tutorial below, and you can also install custom ROMs/recovery!
Spoiler: Rooting (Magisk)
Step 1
Download the latest Magisk .apk on your phone.
Go to the link above, click the latest (topmost) Magisk-vXX.X.apk you see in the list to start the download, open the file and install it.
Step 2
Go to the download page for the MIUI Official Rom for your region, make sure to get the fastboot version.
OR (if you don't want/can't download 3gb of ROM)
Follow DavitidzeSh's instructions on how to gather the boot.img and vbmeta.img files and SKIP to Step 5.
OR (if you're on a custom rom)
Look into your custom rom's .zip, find the boot.img and vbmeta.img files and SKIP to Step 5.
Step 3
Take the file you downloaded above, it should be a .tgz archive.
Extract it, you'll get a .tar achive.
Extract that one again.
Step 4
You should now have a folder similar to the one below
Go inside the images folder
Step 5
Grab the the vbmeta.img file and copy it to your ADB & Fastboot (Platform Tools) folder.
Grab the boot.img file and copy it to your phone's internal storage.
(where the Android, DCIM, Download, and more are present, just drop it in there)
Here's how it should look inside your phone's storage in the end.
Step 6
On your phone, open up Magisk Manager.
Click the Magisk Install button as shown below.
Then Select and Patch a File.
Go look for your boot.img you previously copied to your phone and pick it.
Click Let's go! and wait for Magisk to complete the process!
Step 7
Link your phone to your PC, grab the file made by Magisk Manager.
It's located in your phone's downloads folder, called magisk_patched.img.
Copy and paste it where your ADB & Fastboot (Platform Tools) are located.
You should now have a folder structure like this:
adb.exe
fastboot.exe
magisk_patched.img
vbmeta.img
Extra files from the platform tools
Step 8
Alright, we're ready to root!
Turn off your phone, then get in fastboot mode.
(Power + Volume Down, like the unlocking tutorial)
Step 9
Link your phone to your PC with the USB cable if not done already.
Step 10
Shift + Right click in an empty space inside the folder we prepared in Step 7,
And click Open PowerShell window here.
Inside the PowerShell window, input the following commands line by line, in order.
.\fastboot.exe devices
Click to expand...
Click to collapse
Make sure your device shows up, should be a bunch of numbers and letters, a couple spaces, and fastboot.
If nothing does, go back to Step 8 and try again.
.\fastboot.exe --disable-verity --disable-verification flash vbmeta vbmeta.img
.\fastboot.exe flash boot .\magisk_patched.img
.\fastboot.exe reboot
Click to expand...
Click to collapse
Note: Your PowerShell window will look different, I'm using a different program, don't worry
Your phone will reboot.
Open up Magisk Manager, and double check that it's installed.
You're done!
That said, you will have issues with certain apps leaving it like this.
You should to hide the fact that your phone is rooted.
Check out the Passing SafetyNet tutorial further down below!
Spoiler: Getting EdXposed
I very much discourage to EdXposed your phone unless you have a very good reason for it.
It's a pain to pass SafetyNet.
It doesn't get updated often.
It has very niche use cases for which it's actually worth it.
That said, I explain it here for people who know what they're getting into and want instructions on how to do it.
This procedure requires to be rooted with Magisk.
Step 1
Inside Magisk Manager, go to the Modules tab.
Click the search button (bottom right) and search Riru.
Install the Riru module by Rikka.
Activate it and Reboot.
Step 2
Download and install the latest EdXposed Manager, the same way you did with Magisk Manager when rooting.
Step 3
Open it up, go to the ALPHA tab and click install/update.
It'll start a file download.
Step 4
Go back to Magisk Manager, Modules tab, except this time click Install from Storage.
Point to the .zip file you just got, located in the Downloads folder of your phone.
At the end of the installation, click reboot.
Step 5
Let's double check your installation is operational.
Go to EdXposed Manager, first tab.
It should say EdXposed Framework is active.
You're done!
You should now be able to install EdXposed modules.
That said, you will have issues with certain apps leaving it like this.
You should to hide the fact that your phone is EdXposed.
Check out the Passing SafetyNet tutorial further down below!
Spoiler: Passing SafetyNet (Magisk/EdXposed)
For Magisk Rooted Phones
Enable Magisk Hide inside Magisk Manager's settings.
You may also need to use the Props module to spoof your phone as another, if you want a tutorial on that, let me know.
For EdXposed Phones
Again, I highly recommend not EdXposing your phone and sticking to just Magisk if you can help it.
You should also know that this method will show you're passing SafetyNet inside Magisk but it's a pain to do and isn't as well hidden as Magisk alone.
Step 1 - Do the step for Rooted phones listed above if not done already.
Step 2 - In EdXposed Manager, get the HiddenCore Module and activate it.
Step 3 - Now, in the side-menu: Compat List > tick HiddenCore Module.
Step 4 - Then, go to Settings > Framework > Enable "App List mode".
Step 5 - Finally, Applications(Black List) and tick: Android Services Library, Chrome, Google Play services, Google Play Store, Google Services Framework
Reboot and enjoy! You're all set and SafetyNet should pass.
Spoiler: Installing GSI's (Non-device specific ROMs)
Step 1
Pick your poison in the Treble Forums!
My recommendations are in the Extras section of this post.
Step 2
Download the chosen ROM's A/B Arm64 version
It should be an .img.xz file
Extract it and you'll get an .img file.
You're almost ready to flash.
Make sure to backup your phone's data.
Continuing this tutorial will wipe your phone!
Step 3
Put your phone into fastboot mode.
(Power + Volume Down)
Connect it to your PC.
Step 4
Move the .img file you downloaded to your ADB & Fastboot (Platform Tools) folder.
Rename it to system.img
Step 5
Shift + Right click in an empty space inside the folder,
And click Open PowerShell window here.
Inside the PowerShell window, input the following commands line by line, in order.
.\fastboot.exe reboot fastboot
.\fastboot.exe --disable-verification flash vbmeta .\vbmeta.img
.\fastboot.exe flash system .\system.img
.\fastboot.exe -w
.\fastboot.exe reboot
Click to expand...
Click to collapse
Your phone will now reboot on its own.
Set it all up and enjoy!
That said, depending on how old the GSI you picked is, you MAY have issues leaving it at that.
Therefore, I highly recommend checking out the next tutorial section about Fixing GSI Issues.
Spoiler: Fixing brightness/jack on older GSI's
I have worked together with a developer to bring fixes for our device to every custom GSI rom out there.
The most recent GSI's shouldn't need the fixes listed below.
Older GSI (treble) roms have two known bugs that we can fix:
The brightness slider being misscalibrated, and therefore auto-brightness broken too.
The headphone jack not working.
You need to be rooted to do so.
Step 1 - Get yourself a Terminal Emulator, I recommend Termux
Step 2 - Type the following commands inside of it, line by line, in order:
su
setprop persist.sys.qcom-brightness $(cat /sys/class/leds/lcd-backlight/max_brightness)
setprop persist.sys.overlay.devinputjack true
Click to expand...
Click to collapse
You're done! Brightness should be fine, headphones get detected, enjoy!
Spoiler: Resetting your phone
Backup all the data you might have on your phone to restore it after the manipulation!
Step 1
Download the fastboot ROM corresponding to your region here.
(The same one used to grab the boot.img and vbmeta.img when rooting)
And extract it.
Step 2
Download the latest MiFlashTool.
And extract it.
Step 3
Put your device in fastboot mode.
(Power + Vol Down, refer to the rooting tutorial for a more info)
And connect it to your computer via USB.
Step 4
Open MiFlashTool (XiaoMiFlash.exe), your device should appear in the list.
Step 5
Click the Select button in the top left,
And point to your fastboot ROM's folder
(The one containing the "AP", "BP", "BP_IN", "images" folders and a bunch of files)
Step 6
At the bottom right of the software, choose if you either want to just:
clean all
(wipe and re-install)
OR
clean all and lock
(wipe, reinstall and re-lock your bootloader)
Note: If you re-lock your bootloader but wish to unlock it again later, you won't have to wait the 7 days again.
Step 7
Finally, in the top right, click the flash button.
Now just wait a while, your phone will reboot on the stock rom and you're good to go!
Extras​
Spoiler: Frequently Asked Questions (FAQ)
Q: Will unlocking my bootloader void my warranty?
A: No, it will not, it's easily reversable too, check the "Resetting your phone" tutorial.
Q: I rooted/EdXposed my phone and now Netflix won't even open, or doesn't work properly, what's up with that?
A: There's an easy fix if you have Magisk. Install the liboemcrypto disabler Magisk module, activate it and reboot.
Q: I tried unlocking my bootloader but, Mi Flash Unlock doesn't detect my phone, even though it's in fastboot mode and connected. Help?
A: Here are some things you can try:
Try another USB port.
Try another USB cable.
Install the Mi USB Drivers manually, they're included in the MiFlashUnlock folder.
Run the driver_install_64.exe, OR go to the driver folder, then the folder corresponding to your windows version, right click the android_winusb.inf and click Install.
In the Device Manager, check that the driver provider is Xiaomi.
If not, uninstall it and restart your computer.
RESERVED
Akitake said:
RESERVED
Click to expand...
Click to collapse
Hi,
I am also a user of RN9 Merlin.
I think we should add more details like
-how to flash official firmware(both from stock recovery, fastboot)
-should we need the same MIUI firmware that is there before we started booting custom ROM(GSI), if we need to go back to stock?
-what should happen if we interrupt the process in middle
-unlocking bootloader linux, macos or a link for the guide
-why we need to flash vbmeta.img?
-how to make vbmeta.img on our own(some are giving modified one, what is it?)
I know we need more and more time to do these, but these will help a newbie/noob/beginner for Xiaomi and rooting.
Thanks
HemanthJabalpuri said:
Hi,
I am also a user of RN9 Merlin.
I think we should add more details like
-how to flash official firmware(both from stock recovery, fastboot)
-should we need the same MIUI firmware that is there before we started booting custom ROM(GSI), if we need to go back to stock?
-what should happen if we interrupt the process in middle
-unlocking bootloader linux, macos or a link for the guide
-why we need to flash vbmeta.img?
-how to make vbmeta.img on our own(some are giving modified one, what is it?)
I know we need more and more time to do these, but these will help a newbie/noob/beginner for Xiaomi and rooting.
Thanks
Click to expand...
Click to collapse
1.Flashing official firmware is universal method for all devices through fastboot, And for recovery, we can't flash it yet since TWRP doesn't support dynamic partition yet.
2.No, you don't need the same firmware.
3.If you interrupt the process in between, the device would remain in fastboot Mode, and you can still restart the process.
Yxnq_Param said:
1.Flashing official firmware is universal method for all devices through fastboot, And for recovery, we can't flash it yet since TWRP doesn't support dynamic partition yet.
2.No, you don't need the same firmware.
3.If you interrupt the process in between, the device would remain in fastboot Mode, and you can still restart the process.
Click to expand...
Click to collapse
I heard a term called "Anti Roll Back" from https://forum.xda-developers.com/redmi-note-5-pro/how-to/faq-questions-answered-t3816185
Are all our merlin ROMs have same version of anti roll back. That is are we able to flash MIUI 11 on MIUI 12?
Thanks
HemanthJabalpuri said:
I heard a term called "Anti Roll Back" from https://forum.xda-developers.com/redmi-note-5-pro/how-to/faq-questions-answered-t3816185
Are all our merlin ROMs have same version of anti roll back. That is are we able to flash MIUI 11 on MIUI 12?
Thanks
Click to expand...
Click to collapse
Anti-rollback is only an issue if you're trying to downgrade through the stock recovery (Vol + Up) or through MIUI's recovery (About Phone > MIUI Version > Three dots and there is an option there)
If you want to go back to MIUI 11 for some reason, you can, by flashing it through fastboot.
HemanthJabalpuri said:
Hi,
I am also a user of RN9 Merlin.
I think we should add more details like
-how to flash official firmware(both from stock recovery, fastboot)
-should we need the same MIUI firmware that is there before we started booting custom ROM(GSI), if we need to go back to stock?
-what should happen if we interrupt the process in middle
-unlocking bootloader linux, macos or a link for the guide
-why we need to flash vbmeta.img?
-how to make vbmeta.img on our own(some are giving modified one, what is it?)
I know we need more and more time to do these, but these will help a newbie/noob/beginner for Xiaomi and rooting.
Thanks
Click to expand...
Click to collapse
1 - Google, this isn't Merlin specific.
2 - No, you can go back directly to the latest MIUI for your device.
3 - Just start over, your device will remain in fastboot, it's actually really safe.
4 - That's a niche demand, 99% of people use Windows and, if you use something else it's on you. If you're a Linux user, you're used googling information and it's not a problem. And for mac, well, worst case scenario use someone else's pc for 10 minutes.
5 - To prevent boot-loops. If you don't flash vbmeta, it won't boot.
6 - Read disclaimers, the tutorial literally tells you to take the vbmeta from the official rom. There's no such thing as a modified vbmeta, what matters is how we flash it with fastboot, disabling verifications.
Also this is my first post, and I'll add more as time goes on. But even as it is, I think it's miles better than what people care to create for most devices on XDA. It's also pretty detailed with images and such to reassure the user.
can someone help me?
So I wanted to unlock the bootloader
Did the
Turnn on OEM unlocking
Turn on USB debugging
Added my device on my account (the other thing to do in developer setting)
Boot into fastboot
The Mi unlock can't detect my device although the drivers are fine (I checked it in device manager) and I run it in administrator check the driver again in the software it says it is installed.
What can I do? Did I missed some steps?
markevan12 said:
can someone help me?
So I wanted to unlock the bootloader
Did the
Turnn on OEM unlocking
Turn on USB debugging
Added my device on my account (the other thing to do in developer setting)
Boot into fastboot
The Mi unlock can't detect my device although the drivers are fine (I checked it in device manager) and I run it in administrator check the driver again in the software it says it is installed.
What can I do? Did I missed some steps?
Click to expand...
Click to collapse
Here are some things you can try:
- Try another USB port.
- Try another USB cable.
- Install the Mi USB Drivers manually (included in the MiFlashUnlock folder, run the driver_install_64.exe, or go to the driver folder, then the folder corresponding to your windows version, right click the android_winusb.inf and click Install)
- In the Device Manager, check that the driver provider is Xiaomi. If not, uninstall it and restart your computer.
hi sir , can you tell the gsi rom install tutorial if we installed it from twrp?
fachrizoyy said:
hi sir , can you tell the gsi rom install tutorial if we installed it from twrp?
Click to expand...
Click to collapse
I will not support custom recovery's. I highly dislike them, and they're unofficial for Merlin as well.
Thx for the answer
Akitake said:
Here are some things you can try:
- Try another USB port.
- Try another USB cable.
- Install the Mi USB Drivers manually (included in the MiFlashUnlock folder, run the driver_install_64.exe, or go to the driver folder, then the folder corresponding to your windows version, right click the android_winusb.inf and click Install)
- In the Device Manager, check that the driver provider is Xiaomi. If not, uninstall it and restart your computer.
Click to expand...
Click to collapse
thanks but I solved it by moving the unlock folder to C:
Hey man. First of all I appreciate that you spent this much time for redmi note 9 users. I just want to know that how do I know that my device is merlin?
mirzanuman6612 said:
Hey man. First of all I appreciate that you spent this much time for redmi note 9 users. I just want to know that how do I know that my device is merlin?
Click to expand...
Click to collapse
Hey, no problem!
Well, Merlin is just the codename for Redmi Note 9. So if you have a Redmi Note 9, you have a merlin.
BUT, keep in mind the Redmi Note 9 Pro, Pro Max and S are different and have their own section in the forums.
Akitake said:
Hey, no problem!
Well, Merlin is just the codename for Redmi Note 9. So if you have a Redmi Note 9, you have a merlin.
BUT, keep in mind the Redmi Note 9 Pro, Pro Max and S are different and have their own section in the forums.
Click to expand...
Click to collapse
Well, thanks but one more thing, I tried unlocking the bootloader of my phone yesterday. I went into developer options and enabled the following options:
OEM unlocking
USB debugging
I also installed all the drivers needed in my pc and went into fastboot mode in my phone. But Xiaomis mi unlock can't recognise my device. I tried 2 different usb cables but the mi unlock just says, "your phone is not connected" I hope to get a reply from you and you will probably will be able to help me out.
mirzanuman6612 said:
Well, thanks but one more thing, I tried unlocking the bootloader of my phone yesterday. I went into developer options and enabled the following options:
OEM unlocking
USB debugging
I also installed all the drivers needed in my pc and went into fastboot mode in my phone. But Xiaomis mi unlock can't recognise my device. I tried 2 different usb cables but the mi unlock just says, "your phone is not connected" I hope to get a reply from you and you will probably will be able to help me out.
Click to expand...
Click to collapse
Yes I could, I will actually add a section to the FAQ soon for better driver installation, it's a driver issue.
Akitake said:
Yes I could, I will actually add a section to the FAQ soon for better driver installation, it's a driver issue.
Click to expand...
Click to collapse
Alrighty, thanks for your replies.
mirzanuman6612 said:
Well, thanks but one more thing, I tried unlocking the bootloader of my phone yesterday. I went into developer options and enabled the following options:
OEM unlocking
USB debugging
I also installed all the drivers needed in my pc and went into fastboot mode in my phone. But Xiaomis mi unlock can't recognise my device. I tried 2 different usb cables but the mi unlock just says, "your phone is not connected" I hope to get a reply from you and you will probably will be able to help me out.
Click to expand...
Click to collapse
Had you tried moving the unlock folder to c:/ ?
markevan12 said:
Had you tried moving the unlock folder to c:/ ?
Click to expand...
Click to collapse
I appreciate you replying to me. But, I already fixed it by installing windows 7 I had windows 10 before and it didn't seem to work on it so I installed windows 7 and it worked flawlessly. Btw, are you a user that has installed a custom rom? And if yes, then which one and is the performance any better?
Thanks.
mirzanuman6612 said:
I appreciate you replying to me. But, I already fixed it by installing windows 7 I had windows 10 before and it didn't seem to work on it so I installed windows 7 and it worked flawlessly. Btw, are you a user that has installed a custom rom? And if yes, then which one and is the performance any better?
Thanks.
Click to expand...
Click to collapse
Nope I didn't YET, I'm still waiting for the unlock to complete. I did tried treble roms in my other device. It just is basically have the same performance (LOSQ) but I had heating problems in my Samsung device, I expect a normal experience with this ROMs.

How To Guide How to flash a stock rom [alioth]

Hello everyone.
The purpose of this guide is to illustrate two methods to flash the stock rom on F3, both with the use of xiaomi flash tool (which for convenience I will call "miflash") and with cmd.​Warnings!​Before starting I would like to make one point clear, every moding operation involves risks that could lead to bootloop, softbrick or hardbrick of your phone, they can be caused by countless circumstances or actions, so you need the utmost attention and scrupulousness in performing certain operations.​What I will describe I have tested it on my F3 and it works, in any case, ​neither I nor the xda forum are responsible for any breakdowns on the phone caused by the operations described below!​Having said that, let's start...
All you need is:​
Bootloader unlocked, using the official tool you find here
Latest version of miflash, which you can download from here;
SDK platform tools, which you can download from here;
Stock fastboot rom, which you can download from here, here or here.
Make a backup of your data because they will be deleted in the process!
Now that you have everything you need, follow the steps:​1) How to flash a stock rom using miflash.​
Unzip miflash to C:\ ; [Only for the first time]​
Unzip SDK platform tools to C:\ ; [Only for the first time]
Unzip the fastboot rom in the miflash folder;
Rename the fastboot rom folder with a shorter name and no spaces like "V12.5.6.0.RKHEUXM";
Disable driver signature enforcement in windows 10; [Only for the first time. It is a temporary option that is reactivated the next time the pc is restarted]
Spoiler: How to disable driver signature
1 - Open settings;
2 - Go to update and security;
3 - In the left column click on restore;
4 - Under advanced restart click on restart now;
The pc will restart in a blue screen, click in sequence:
1. Troubleshoot;
2. Advanced options;
3. Startup Settings;
4. Restart;
5. Press the 7 or F7 key to Disable driver signature.
Now the pc restarts by itself.
Go to the miflash folder in c:\, open it and search for XiaoMiFlash.exe, right click and start as administrator;
Click on the driver button at the top and then install (if a warning message comes out, install anyway); [Only for the first time]
Restart your pc; [Only for the first time]
Go to the miflash folder in c:\, open it and search for XiaoMiFlash.exe, right click and start as administrator;
Click on the select button at the top left and navigate to the fastboot rom folder in the window that opens, then press ok; (If you followed the guide it is located in C:\MiFlash20210226\namethatyougavetotherom);
Click on the clean all option at the bottom right;
Spoiler: Why clean all option
- The clean all option allows you to flash the rom avoiding blocking the bootloader (which I recommend);
- The save user data option allows you to flash the rom without deleting the data (not recommended if you come from custom rom or from stock rom of different regions and does not block the bootloader);
- The clean all and lock option instead at the end of the flash blocks the bootloader which in some cases especially if you flash a rom that is not the original and can lead to a brick of the phone (I do not recommend blocking the bootloader, but if you want to do it make sure you are on the stock rom of the same region your phone was born with).
Now in the phone enable debug USB in developer option;
Spoiler: Developer option
Enable developer option:
- Go to settings;
- Tap on my device;
- Tap on all specifications;
- 7 tap on miui version.
Debug USB:
- Go to settings;
- Other settings;
- Developer options;
- Debug USB.
Restart the phone in fastboot mode and connect it to a rear USB port or in any case to a USB 2.0;
Spoiler: Fastboot mode
Turn the phone off;
Long press of the power key + volume -.
If the phone is recognized by miflash its code appears in the first row of the table otherwise click the refresh button at the top right;
Make sure clean all is selected and click on flash;
The flash lasts several minutes wait without touching anything;
Surely miflash at the end of the flash will give an error because the clean all option is selected and not blocking the bootloader at the end of the process it recognizes it as an error. Do not worry!!! it's normal;
If all went well the phone should restart by itself, (attention! the first start of the phone lasts several minutes stuck on the miui logo, wait until the configuration screen appears.
2) How to flash a stock rom using cmd.​Small premise; You could easily use this method even just by starting the .bat file inside the fastboot rom, but if any problems should occur or at the end of the process the window would close immediately without giving you the time to understand what happened, while if you run the .bat file directly from the prompt (cmd) you have the possibility to check the whole flash process and see if any errors occur because the window will remain open anyway.​
Unzip miflash to C:\ ; [Only the first time to install drivers]​
Unzip SDK platform tools to C:\ ; [Only for the first time]
Unpack the fastboot rom and move all content to C:\platform-tools;
Disable driver signature enforcement in windows 10; [Only for the first time. It is a temporary option that is reactivated the next time the pc is restarted]
Spoiler: How to disable driver signature
1 - Open settings;
2 - Go to update and security;
3 - In the left column click on restore;
4 - Under advanced restart click on restart now;
The pc will restart in a blue screen, click in sequence:
1. Troubleshoot;
2. Advanced options;
3. Startup Settings;
4. Restart;
5. Press the 7 or F7 key to Disable driver signature.
Now the pc restarts by itself.
Go to the miflash folder in c:\, open it and search for XiaoMiFlash.exe, right click and start as administrator; [Only for the first time]
Click on the driver button at the top and then install (if a warning message comes out, install anyway); [Only for the first time]
Restart your pc; [Only for the first time]
Go to the start button with the mouse and click with the right button;
In the menu that will open click on command prompt (administrator) a cmd window will open;
Now in the phone enable debug USB in developer option;
Spoiler: Developer option
Enable developer option:
- Go to settings;
- Tap on my device;
- Tap on all specifications;
- 7 tap on miui version.
Debug USB:
- Go to settings;
- Other settings;
- Developer options;
- Debug USB.
Restart the phone in fastboot mode and connect it to a rear USB port or in any case to a USB 2.0;
Spoiler: Fastboot mode
Turn the phone off;
Long press of the power key + volume -.
Now in the cmd window you are in the path: C:\windows\system32. First we move to the platform tools folder and check if the pc recognizes the phone in fastboot (if you followed the guide it will be in C:\platform-tools) to move to the folder press this command and press enter:
Code:
cd c:\platform-tools
Now check if the pc recognizes the phone in fastboot with this command and press enter (The phone code should appear):
Code:
fastboot devices
If the code appears you can start the .bat file to start the flash, then type this command and press enter:
Code:
flash_all.bat
Spoiler: Why flash_all.bat
- The flash_all.bat allows you to flash the rom avoiding blocking the bootloader (which I recommend);
- The flash_all_except_storage.bat allows you to flash the rom without deleting the data (not recommended if you come from custom rom or from stock rom of different regions and does not block the bootloader);
- The flash_all_lock.bat instead at the end of the flash blocks the bootloader which in some cases especially if you flash a rom that is not the original and can lead to a brick of the phone (I do not recommend blocking the bootloader, but if you want to do it make sure you are on the stock rom of the same region your phone was born with).
The flash lasts several minutes wait without touching anything but you can follow the trend in case there are problems;
If all went well the phone should restart by itself, (attention! the first start of the phone lasts several minutes stuck on the miui logo, wait until the configuration screen appears.
I hope this guide can help you to get back or flash the stock rom.
Happy flash everyone!​
Thanks.
Can i do by twrp Install the rom
Nandowiko said:
Thanks.
Can i do by twrp Install the rom
Click to expand...
Click to collapse
It is not advisable to flash the stock rom with twrp for two simple reasons:
1) For the moment the only two twrp developed are in beta state and it is not certain that they perform this task correctly.
2) Twrp does not do the arb check (Anti RollBack) To find out more, read here:
Xiaomi's Anti-Rollback Protection Explained: How to avoid bricking your phone
All Xiaomi smartphones and tablets will have anti-rollback protection enabled. What is it and how do you avoid bricking your device because of it?
www.xda-developers.com
So using miflash or the executable via cmd is the safest and most reliable way to flash the stock rom.
This is not working with locked bootloader.. any other method with locked bootloader to flash stock rom?
Mihiranpura said:
This is not working with locked bootloader.. any other method with locked bootloader to flash stock rom?
Click to expand...
Click to collapse
It is true! you need the unlocked bootloader, I read that with this tool you can do it. I have not tried it, I do not guarantee the success of the flash with a locked bootloader and in any case I strongly advise against flashing with a locked bootloader. If any errors occur it is risky and complicated to recover it, it is always better to unlock it.
RollDload said:
Hello everyone.
The purpose of this guide is to illustrate two methods to flash the stock rom on F3, both with the use of xiaomi flash tool (which for convenience I will call "miflash") and with cmd.​Warnings!​Before starting I would like to make one point clear, every moding operation involves risks that could lead to bootloop, softbrick or hardbrick of your phone, they can be caused by countless circumstances or actions, so you need the utmost attention and scrupulousness in performing certain operations.​What I will describe I have tested it on my F3 and it works, in any case, ​neither I nor the xda forum are responsible for any breakdowns on the phone caused by the operations described below!​Having said that, let's start...
All you need is:​
Bootloader unlocked, using the official tool you find here
Latest version of miflash, which you can download from here;
SDK platform tools, which you can download from here;
Stock fastboot rom, which you can download from here, here or here.
Make a backup of your data because they will be deleted in the process!
Now that you have everything you need, follow the steps:​1) How to flash a stock rom using miflash.​
Unzip miflash to C:\ ; [Only for the first time]​
Unzip SDK platform tools to C:\ ; [Only for the first time]
Unzip the fastboot rom in the miflash folder;
Rename the fastboot rom folder with a shorter name and no spaces like "V12.5.6.0.RKHEUXM";
Disable driver signature enforcement in windows 10; [Only for the first time. It is a temporary option that is reactivated the next time the pc is restarted]
Spoiler: How to disable driver signature
1 - Open settings;
2 - Go to update and security;
3 - In the left column click on restore;
4 - Under advanced restart click on restart now;
The pc will restart in a blue screen, click in sequence:
1. Troubleshoot;
2. Advanced options;
3. Startup Settings;
4. Restart;
5. Press the 7 or F7 key to Disable driver signature.
Now the pc restarts by itself.
Go to the miflash folder in c:\, open it and search for XiaoMiFlash.exe, right click and start as administrator;
Click on the driver button at the top and then install (if a warning message comes out, install anyway); [Only for the first time]
Restart your pc; [Only for the first time]
Go to the miflash folder in c:\, open it and search for XiaoMiFlash.exe, right click and start as administrator;
Click on the select button at the top left and navigate to the fastboot rom folder in the window that opens, then press ok; (If you followed the guide it is located in C:\MiFlash20210226\namethatyougavetotherom);
Click on the clean all option at the bottom right;
Spoiler: Why clean all option
- The clean all option allows you to flash the rom avoiding blocking the bootloader (which I recommend);
- The save user data option allows you to flash the rom without deleting the data (not recommended if you come from custom rom or from stock rom of different regions and does not block the bootloader);
- The clean all and lock option instead at the end of the flash blocks the bootloader which in some cases especially if you flash a rom that is not the original and can lead to a brick of the phone (I do not recommend blocking the bootloader, but if you want to do it make sure you are on the stock rom of the same region your phone was born with).
Now in the phone enable debug USB in developer option;
Spoiler: Developer option
Enable developer option:
- Go to settings;
- Tap on my device;
- Tap on all specifications;
- 7 tap on miui version.
Debug USB:
- Go to settings;
- Other settings;
- Developer options;
- Debug USB.
Restart the phone in fastboot mode and connect it to a rear USB port or in any case to a USB 2.0;
Spoiler: Fastboot mode
Turn the phone off;
Long press of the power key + volume -.
If the phone is recognized by miflash its code appears in the first row of the table otherwise click the refresh button at the top right;
Make sure clean all is selected and click on flash;
The flash lasts several minutes wait without touching anything;
Surely miflash at the end of the flash will give an error because the clean all option is selected and not blocking the bootloader at the end of the process it recognizes it as an error. Do not worry!!! it's normal;
If all went well the phone should restart by itself, (attention! the first start of the phone lasts several minutes stuck on the miui logo, wait until the configuration screen appears.
2) How to flash a stock rom using cmd.​Small premise; You could easily use this method even just by starting the .bat file inside the fastboot rom, but if any problems should occur or at the end of the process the window would close immediately without giving you the time to understand what happened, while if you run the .bat file directly from the prompt (cmd) you have the possibility to check the whole flash process and see if any errors occur because the window will remain open anyway.​
Unzip miflash to C:\ ; [Only the first time to install drivers]​
Unzip SDK platform tools to C:\ ; [Only for the first time]
Unpack the fastboot rom and move all content to C:\platform-tools;
Disable driver signature enforcement in windows 10; [Only for the first time. It is a temporary option that is reactivated the next time the pc is restarted]
Spoiler: How to disable driver signature
1 - Open settings;
2 - Go to update and security;
3 - In the left column click on restore;
4 - Under advanced restart click on restart now;
The pc will restart in a blue screen, click in sequence:
1. Troubleshoot;
2. Advanced options;
3. Startup Settings;
4. Restart;
5. Press the 7 or F7 key to Disable driver signature.
Now the pc restarts by itself.
Go to the miflash folder in c:\, open it and search for XiaoMiFlash.exe, right click and start as administrator; [Only for the first time]
Click on the driver button at the top and then install (if a warning message comes out, install anyway); [Only for the first time]
Restart your pc; [Only for the first time]
Go to the start button with the mouse and click with the right button;
In the menu that will open click on command prompt (administrator) a cmd window will open;
Now in the phone enable debug USB in developer option;
Spoiler: Developer option
Enable developer option:
- Go to settings;
- Tap on my device;
- Tap on all specifications;
- 7 tap on miui version.
Debug USB:
- Go to settings;
- Other settings;
- Developer options;
- Debug USB.
Restart the phone in fastboot mode and connect it to a rear USB port or in any case to a USB 2.0;
Spoiler: Fastboot mode
Turn the phone off;
Long press of the power key + volume -.
Now in the cmd window you are in the path: C:\windows\system32. First we move to the platform tools folder and check if the pc recognizes the phone in fastboot (if you followed the guide it will be in C:\platform-tools) to move to the folder press this command and press enter:
Code:
cd c:\platform-tools
Now check if the pc recognizes the phone in fastboot with this command and press enter (The phone code should appear):
Code:
fastboot devices
If the code appears you can start the .bat file to start the flash, then type this command and press enter:
Code:
flash_all.bat
Spoiler: Why flash_all.bat
- The flash_all.bat allows you to flash the rom avoiding blocking the bootloader (which I recommend);
- The flash_all_except_storage.bat allows you to flash the rom without deleting the data (not recommended if you come from custom rom or from stock rom of different regions and does not block the bootloader);
- The flash_all_lock.bat instead at the end of the flash blocks the bootloader which in some cases especially if you flash a rom that is not the original and can lead to a brick of the phone (I do not recommend blocking the bootloader, but if you want to do it make sure you are on the stock rom of the same region your phone was born with).
The flash lasts several minutes wait without touching anything but you can follow the trend in case there are problems;
If all went well the phone should restart by itself, (attention! the first start of the phone lasts several minutes stuck on the miui logo, wait until the configuration screen appears.
I hope this guide can help you to get back or flash the stock rom.
Happy flash everyone!​
Click to expand...
Click to collapse
Thank You So Much - Get Back Device in normal Mode
Hello @RollDload
I have Flashed below Fastboot ROM in Mi11X India using the CMD method and working fine but I am surprised why I didn't get OTA for the next Version - Below Mentioned Update Tracker got from another post - My Bootloader is Unlocked - If I manually Update next version using recovery ROM then Can I flash without data lost? - If possible please let me know the solution
2021-04-20 | Stable Fastboot | V12.5.2.0.RKHCNXM (Currently Avalibale)
2021-05-25 | Stable Recovery | V12.5.3.0.RKHCNXM (Should Offer this via OTA as per my Assumption)
sunnymodh said:
Hello @RollDload
I have Flashed below Fastboot ROM in Mi11X India using the CMD method and working fine but I am surprised why I didn't get OTA for the next Version - Below Mentioned Update Tracker got from another post - My Bootloader is Unlocked - If I manually Update next version using recovery ROM then Can I flash without data lost? - If possible please let me know the solution
2021-04-20 | Stable Fastboot | V12.5.2.0.RKHCNXM (Currently Avalibale)
2021-05-25 | Stable Recovery | V12.5.3.0.RKHCNXM (Should Offer this via OTA as per my Assumption)
Click to expand...
Click to collapse
Hi, I'm glad it worked fine ...
First try to clear the update application data.
If you don't get the update try the recovery method, you shouldn't lose your data. Do a backup anyway to be sure ...
First of all thanks for the Response
I have already tried clear data of Update app, also login into Mi Account but non of the works
Now I will use the recovery method - will follow the below steps let me correct if I am going to do wrong steps
Download this ROM 2021-05-25 | Stable Recovery | V12.5.3.0.RKHCNXM
Put it into Device -> Choose update package - > will flash
Will take backup for Safety
Hi all!
Trying to flash stock ROM (On Linux, cmd command mode), i get following message: "Missmatching image and device" although my phone is a Poco F3 Alioth :/
sunnymodh said:
First of all thanks for the Response
I have already tried clear data of Update app, also login into Mi Account but non of the works
Now I will use the recovery method - will follow the below steps let me correct if I am going to do wrong steps
Download this ROM 2021-05-25 | Stable Recovery | V12.5.3.0.RKHCNXM
Put it into Device -> Choose update package - > will flash
Will take backup for Safety
Click to expand...
Click to collapse
Why not try the latest update directly? So there is no more need for the ota.
Remember that "CN" is the Chinese version.
"ID" the Indian version.
"MI" l "EEA" etc the global versions.
Use the one corresponding to the one you already have in use.
Otherwise flash what you would like with miflash but avoid blocking the bootloader.
nicfio said:
Hi all!
Trying to flash stock ROM (On Linux, cmd command mode), i get following message: "Missmatching image and device" although my phone is a Poco F3 Alioth :/
Click to expand...
Click to collapse
I don't know, I don't use linux, but try to check the drivers and make sure you use the right rom for your model, there are three versions, china india and global.
RollDload said:
Why not try the latest update directly? So there is no more need for the ota.
Remember that "CN" is the Chinese version.
"ID" the Indian version.
"MI" l "EEA" etc the global versions.
Use the one corresponding to the one you already have in use.
Otherwise flash what you would like with miflash but avoid blocking the bootloader.
Click to expand...
Click to collapse
Yes...Correct regarding latest flash
let me correct you regarding Version
ID - Indonesia ROM
IN - India ROM
I have changed ROM from India to another for Miui Dialer only but after installation, I found Xiaomi EU ROM much better than any other Region ROM
Chinese ROM - good but lots of bloatware, No Gapps
Xiaomi EU - Excellent Performance, MIUI Dialer with Gapps (you can download only from Xiaomi EU website (EU & EEA) both are different Version
Im stuck on
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
what to do?
edit:
okay so I panicked. lol
I disconnected the phone from pc then I realized it was a dumb move
the phone is still on fastboot though.
So I reconnected the phone to pc and it wont detect. I am worried that if I turned off my phone it will die.
So what I did next was hold power button and volume down trying my luck to get into fastboot again.
And it did boot into fastboot again.
Then using miflash and everything worked now im on stock rom. Thanks!
PS: Im so happy that I am still within Gods grace.
LynnnXDA said:
Im stuck on
View attachment 5557529
what to do?
edit:
okay so I panicked. lol
I disconnected the phone from pc then I realized it was a dumb move
the phone is still on fastboot though.
So I reconnected the phone to pc and it wont detect. I am worried that if I turned off my phone it will die.
So what I did next was hold power button and volume down trying my luck to get into fastboot again.
And it did boot into fastboot again.
Then using miflash and everything worked now im on stock rom. Thanks!
PS: Im so happy that I am still within Gods grace.
Click to expand...
Click to collapse
yes, unplugging the phone in the middle of a flash is very dangerous, but luck was on your side. better this way
Guys just wanted to clear a doubt i had
So currently I have a mi11x Indian version running miui 13
So my first question is if I unlock via miunlock and then flash custom ROMs (pixelexperience)
Will I be able to go back to stock rom and relock bootloader if in the future I need to go back to stock or something
Or will it cause a brick.
Please, you don't need to know this but I am disabled, get really low on energy really quick. Trying to solve this is driving me mad!
Mi 11 bought with CN stock.
Unlocked the bootloader, loaded global rom for miui 12, all worked well.
OTA didn't work though.
Updated yesterday to latest global rom. All seems to work except, Google Wallet which used to work great gives me their CTS error.
Nothing actually changed on the phone, it's still just the unlocked phone, stock global rom.
I tried loading an older 12.5 rom and then, did an OTA update to MIUI 13
Still, Google Wallet doesn't want to know.
Was considering flashing again with the stock global rom (I don't want the CN on there) and locking the boot again but, would that even work or, does it have to be the CN stock rom?
All the bypass options for the security are just beyond my mind now sadly.

How To Guide Install GSI Image to A54 5G (Compatible with all devices with OEM Unlock toggle)

First of all, download the firmware for your device. I use Samsung firmware downloader (https://github.com/zacharee/SamloaderKotlin)
In the model section, put your device model (If you don't know it, go to settings, about phone and below your model name, there should appear a code next to "Model number" Example: A546B)
In the CSC section, put your CSC. (If you don't know it go to settings, about phone, Software information and search for Service Provider SW Ver. You may find 3 or more 3 letter codes in it, the one we care about is the first one. For example, for me it's "EUX/EUX/-/EUX")
Now, click on "Check for updates" and then "Download". It will take a while, so leave it for 5-10 minutes depending on your internet speed.
Now, we will need to unlock the bootloader. If this is your main phone, backup data if you really want to custom ROM it, because it will erase all data. First of all, we will need to shutdown the device. Now, when it is fully off, we will press both VOL + and VOL - keys and connect a cable from the phone to our PC. Now, you should see a light blue screen with a bunch of text. Now we need to hold VOL+ key for 5 or more seconds, and press the vol+ key when the text changes.
Going through the setup is not necessary, as we will need to factory reset later on.
Now, check the folder where you told the program to store the firmware in and extract the folder. In it, you will see 5 files that end in .tar.md5 (CSC, HOME_CSC, CP, BL and AP), the one we care about is AP. Open it with winrar and extract the "recovery.img.lz4" file. Now, install lz4 (https://github.com/lz4/lz4/releases).
You can add the folder to path, but it's optional. Now, open CMD/Powershell and go to the directory your "recovery.img.lz4" is stored. Now run this command: "lz4 recovery.img.lz4 recovery.img". After that, you should get the recovery.img in the same folder.
For this step, we will need a github account, so go to github.com and create an account. Now go to https://github.com/Johx22/Patch-Recovery and fork the repository (the button is at the top right). Now we should be in our fork. Click on the "Actions" button below the repository name and click "RECOVERY". Now, we will upload our image to transfer.sh and get the link it gives us. Click on run workflow, and put the link transfer.sh gave us. Wait a minute or so, and we should get a file named "Patched-Recovery". Download it. Now, extract the file and we should get "fastbootd-recovery.tar".
Download odin https://odindownload.com/SamsungOdin/ and open it.
Now we will get the phone on the same mode as before (the blue screen), and instead of holding the VOL+ key now, we will press it once. Now connect your phone to your pc and click the "AP" button on odin. Select the file we got (fastbootd-recovery.tar) and click "Start".
Now, this is very important, when the bar finishes going to the end, and the square above says "RESET", we will need to hold the power key+VOL+ key. If we don't, the recovery will the rewritten and we will need to flash it again.
Now we should be in recovery mode.
Now, there should be a new option: "Enter fastboot mode"/"Enter fastbootd". use volume keys to move and when you are on "Enter fastboot mode", click power key.
Now, download platform-tools, i already provided them in the thread. Unzip the file and open CMD in platform-tools and now it's time to download a GSI image.
There's many GSI's but pixel experience is my favourite. As of now, the latest working GSI of pixel experience on samsung devices is this one: https://github.com/ponces/treble_bu...Plus_arm64-ab-13.0-20230421-UNOFFICIAL.img.xz.
Uncompress it and move the image to platform-tools. Now, we run this command on CMD: fastboot flash PixelExperience_arm64-ab-13.0-20230104-UNOFFICIAL.img, and wait till it completes.
Now click "Enter recovery mode" and click Wipe Data/Factory reset and after it completes, restart to system. You should see a google logo now.
Enjoy!
are you running a gsi now? do you mind telling me if you saw any audio degradation when using gsi on your a54?
Updated latest compatible PE GSI build
I'm still getting error during building patched recovery, do you mind upload your patched recovery?
Thanks a lot!

Categories

Resources