Mi 9 don't boot after flashing - Xiaomi Mi 9 Questions & Answers

Hi,
I need some help for flashing custom rom on my Xiaomi Mi 9.
I unlocked the phone's bootloader yesterday but got soft bricked while wiping data and trying to reboot.
I can flash stock official rom with the all in one tool and it works perfectly but when I try to flash any other
custom rom the phone starts bootloop or gets stuck on fastboot mode.
I modded different other android phones before but I never got stuck like that with one of them.
Can someone help me ?
Sorry for bad english

WazG4 said:
Hi,
I need some help for flashing custom rom on my Xiaomi Mi 9.
I unlocked the phone's bootloader yesterday but got soft bricked while wiping data and trying to reboot.
I can flash stock official rom with the all in one tool and it works perfectly but when I try to flash any other
custom rom the phone starts bootloop or gets stuck on fastboot mode.
I modded different other android phones before but I never got stuck like that with one of them.
Can someone help me ?
Sorry for bad english
Click to expand...
Click to collapse
1. Flash TWRP.
2. Boot to TWRP.
3. Wipe cache/dalvik and FORMAT data (don't wipe system, it's needless and you may stuck in fastboot if you will reboot after that without flashing a ROM).
4. Flash custom ROM (you may use usb otg or adb push).
5. Reboot to system (first boot might take 5-10 minutes).

g_seva said:
1. Flash TWRP.
2. Boot to TWRP.
3. Wipe cache/dalvik and FORMAT data (don't wipe system, it's needless and you may stuck in fastboot if you will reboot after that without flashing a ROM).
4. Flash custom ROM (you may use usb otg or adb push).
5. Reboot to system (first boot might take 5-10 minutes).
Click to expand...
Click to collapse
I will try it thanks !

I tried and the phone is stuck on the Mi logo (before rom's animated logo)...
Any other solution ?

WazG4 said:
I tried and the phone is stuck on the Mi logo (before rom's animated logo)...
Any other solution ?
Click to expand...
Click to collapse
What custom ROM do you flash? What prerequisites it have?
Have you formated data (not wipe)?

g_seva said:
What custom ROM do you flash? What prerequisites it have?
Have you formated data (not wipe)?
Click to expand...
Click to collapse
I tried everything, but I just flashed this morning a modified vbmeta.img and then it seems to work for most of roms.
When I flash Resurrection Remix the phone boots only in fastboot but Paranoid and Descendant X works fine
so I'm satisfied. Thanks for help

Related

[help] Phone always boots into recovery

Hello everyone, I need some help.
I Installed a custom rom (pac-man) on my Nokia x2 but now phone always restarts into recovery mode. no matter what i do.
I'm using cmw6.0.5.1 recovery, have tried twrp as well but no luck.
In order to boot into rom, first I've to reboot into bootloader mode and then type this command in terminal
Code:
Fastboot -i 0x0421 continue
to continue boot into rom.
Anyone know fix to this issue or any possible solutions?
You need to wipe and install the rom again
Thomson+ said:
You need to wipe and install the rom again
Click to expand...
Click to collapse
did that many times still boots into recovery. Installed another roms as well without any success.
So i flashed back stock recovery just now and it boots into system.

stuck on mi logo but can use twrp

after losing my mind because all the methods to install twrp and root my device, i decided to start from here: https://twrp.me/xiaomi/xiaomiredmi4x.html
and use the Fastboot Install Method, i followed the tutorial, boot my phone, have the "password issue" > wipe data > and reboot again to a bootloop nightmare.
now its a bit tricky, but i can enter into twrp, if i put new rom on my SD card and flash it with twrp, will it solve the problem ? any suggestions ?
my phone BL is unlocked but its not rooted yet, any restart attempt via twrp, ends with endless mi logo
thank you.
clean flash new rom from twrp, issue will be solved.
i have try to flash new rom (miui_HM4XGlobal_V8.5.2.0.MAMMIED_973da51a2e_6.0), the process went well but my device is still in bootloop. is there any recommended rom for that situation ?
psoneseven said:
clean flash new rom from twrp, issue will be solved.
Click to expand...
Click to collapse
inCider said:
i have try to flash new rom (miui_HM4XGlobal_V8.5.2.0.MAMMIED_973da51a2e_6.0), the process went well but my device is still in bootloop. is there any recommended rom for that situation ?
Click to expand...
Click to collapse
new rom bootup takes 7- 15+ mins, give it time, or try to flash any custom rom.
Flash stock ROM via mi flash then it boots up,it takes little longer time to boot.
All the best....
An update...
As a professional noob, i have installed twrp and then reboot without rooting, so the device went into loop, rooting the device solved the problem, now i am happy.
Thank you and sorry for the hassle.
inCider said:
An update...
As a professional noob, i have installed twrp and then reboot without rooting, so the device went into loop, rooting the device solved the problem, now i am happy.
Thank you and sorry for the hassle.
Click to expand...
Click to collapse
Or you needed just simple wipe dalvik/cache
tried that of course and it didn't help .
Jakuza001 said:
Or you needed just simple wipe dalvik/cache
Click to expand...
Click to collapse
inCider said:
An update...
As a professional noob, i have installed twrp and then reboot without rooting, so the device went into loop, rooting the device solved the problem, now i am happy.
Thank you and sorry for the hassle.
Click to expand...
Click to collapse
The weird thing is how could you achieve rooting the device if when in a bootloop because TWRP + reboot leads an zero SD storage and you cant mount anything... I mean, how could you flash the zip from nowhere? and solve the storage thing btw (its encrypted)
inCider said:
after losing my mind because all the methods to install twrp and root my device, i decided to start from here: https://twrp.me/xiaomi/xiaomiredmi4x.html
and use the Fastboot Install Method, i followed the tutorial, boot my phone, have the "password issue" > wipe data > and reboot again to a bootloop nightmare.
now its a bit tricky, but i can enter into twrp, if i put new rom on my SD card and flash it with twrp, will it solve the problem ? any suggestions ?
my phone BL is unlocked but its not rooted yet, any restart attempt via twrp, ends with endless mi logo
thank you.
Click to expand...
Click to collapse
Here are the steps I followed:
Go to fastboot (volume down + power)
Go to twrp by running `fastboot boot twrp-3.2.1-0-santoni.img`. i.e. Flashing and getting into recovery is a tricky thing.
Install miui if it is not installed, by downloading miui rom from their site.
Install lazy flasher to disable dm-verity. - https://forum.xda-developers.com/xi...very-recovery-redmi-4x-redmi-4-india-t3613560
Restart the phone. You should see 3 moving dots in the bottom area of the screen. It took around 7 mins to boot.

Stuck on fastboot mode everytime i try a Rom

I'm getting stuck on fastboot mode everytime i flash derpfest rom , i've tried ''fastboot reboot'' i've tried to install ''twrp'' or boot to it , nothing works everything i try takes me back to the fastboot logo although the install of the rom was succesfull , i've tried with TWRP-3.3.1-8-siankatabg and also with regular TWRP and also with ORANGE FOX recovery , i'm on miui 11.0.7 EU version , can anyone help me
In TWRP, format data and then flash derpfest ROM. Take note that your data will be wiped though.
sangbuana said:
In TWRP, format data and then flash derpfest ROM. Take note that your data will be wiped though.
Click to expand...
Click to collapse
I did just that I placed the ROM in /tmp/ using TWRP file manager then I formated system and cash and data and then I did the data format by writing "Yes" then went back and erased everything a second time for good measure but still after flashing the ROM I get stuck on fastboot with no ability to boot to recovery or use commands like "fastboot reboot" the only solution for me that time is to reuse mi flash to flash stock rom which doesn't work but lets me boot into recovery which i use to flash miui 11.0.7 zip which apparently works just fine .
Also the basics are covered I made sure to allow usb debuging and update TWRP and all of that
1. flash using miflash
2.setup ur phone
3.enable dev optmake sure oem unlock too
4.going for twrp
5. wipe
6. flash ur rom
7.dont go reboot to system
8.format data then rebot to system
In case nothing else helps you can try to flash vbmeta first, following these instructions.
Cheers
Toscha

Cannot boot into recovery (TWRP)

As the title suggest, I fail to boot into TWRP.
I have unlocked the phone and flashed TWRP (https://dl.twrp.me/raphael/twrp-3.3.1-0-raphael.img).
I could boot into TWRP using Power + Volume Up , wiped everything (except vendor) and pushed a custom rom to the internal storage.
I restarted the phone for some reason and cannot boot into TWRP anymore. Whatever I do, I end up in fastboot. Tried to flash various versions of TWRP with the same result.
Can you guys help me out?
Edit: I flashed the corresponding Xiaomi fastboot image and repeated the process, same problem.
Edit: Solved by repeating again.
flel said:
As the title suggest, I fail to boot into TWRP.
I have unlocked the phone and flashed TWRP (https://dl.twrp.me/raphael/twrp-3.3.1-0-raphael.img).
I could boot into TWRP using Power + Volume Up , wiped everything (except vendor) and pushed a custom rom to the internal storage.
I restarted the phone for some reason and cannot boot into TWRP anymore. Whatever I do, I end up in fastboot. Tried to flash various versions of TWRP with the same result.
Can you guys help me out?
Edit: I flashed the corresponding Xiaomi fastboot image and repeated the process, same problem.
Edit: Solved by repeating again.
Click to expand...
Click to collapse
In future, don't wipe everything. You should only need to do the factory reset in TWRP, which will automatically wipe data, cache and dakvik. If you are flashing over MIUI then you will also need to format data.
There is almost never any need to wipe anything else in TWRP when doing normal custom ROM flashing.

My k20 pro isnt booting up

I tried installing custom rom for the first time now i did it with xiaomitool but it gave error that it couldnt wipe data and my phone stuck on boot.
Then on my phone i booted to twrp and frm there i wiped dalvik cache and data with a wrappedkey error but i continued and flashed pixel exp plus and formatted data and when i rebooted system i again got stuck there
Then once again i went to twrp and tried wiping dalvik cache and data again but this time with wrappedkey amd some decrypted error to and formated data and then tried rebooting to system. Again nothing worked pls help my otherwose my parents are going to kill me
EDIT : Also my laptop has mac os so i think there isnt much i could do with pc and thats only why i used unofficial xiaomitool in the first place
If youre coming from xiaomi rom or xiaomi eu rom you need to format data ( option in twrp where you type yes) not just wipe data, then reboot to recovery (twrp) again and then follow instruction of rom you want to install. Some custom roms require flashing vendor firmware before flashing rom , then gapps , then magisk if you require root ( if magisk wont install then after flashing rom reboot to twrp again). Also xiaomitool is not ideal for installing custom rom but for recovery and fastboot roms ( one that came originally with phone when phone had locked bootloader, never tick wipe and lock)
Disregard my comment about xiaomitool, had thoght that you mean miflash tool
But how
That rom is not in my phone anymore nor i know how to install back to xiaomi rom btw my phone is indian varient
UPDATE
I once again tried flashing pixl exp plus using a diff tutorial which included flashing some disable force encryption and now my device wont even boot into twrp its stuck on fastboot mode.
Now i only hot two question :
1.) will i be able to charge my phone in fastboot mode (or any other way?)
2.) will i be able to flash stock miui rom in fastboot mode through my mac (or if theres any other way pls tell me)
Yes you will be able to charge through fastboot
Just flash twrp again thn boot into twrp and go to wipe - format data and type yes.
Until and unless you format data you will not be able to do anything
Thn download Indian vendor zip ,your required rom and disableforceencryption.zip in your pc and copy it to the phone while in twrp.
Go to wipe and wipe cache ,dalvik ,data,system,vendor
Thn flash vendor zip followed by rom and dfe
Now reboot
device is jusr stuck on fastboot
Pronoy_ said:
Yes you will be able to charge through fastboot
Just flash twrp again thn boot into twrp and go to wipe - format data and type yes.
Until and unless you format data you will not be able to do anything
Thn download Indian vendor zip ,your required rom and disableforceencryption.zip in your pc and copy it to the phone while in twrp.
Go to wipe and wipe cache ,dalvik ,data,system,vendor
Thn flash vendor zip followed by rom and dfe
Now reboot
Click to expand...
Click to collapse
i did the sameexcept for vendor as i had latest miui but phone got stuck in fastboot and twrp is not accessible.
now what if i install official fastboot rom will it relock the bootloader and brick my phone for good?
ak20prouser said:
i did the sameexcept for vendor as i had latest miui but phone got stuck in fastboot and twrp is not accessible.
now what if i install official fastboot rom will it relock the bootloader and brick my phone for good?
Click to expand...
Click to collapse
Only if you forget to change the option in the Mi Flash Tool, which is easily done if you're not paying attention. If the fastboot ROM is the correct version for the phone then you won't brick the phone if you forget to change the flash option. You will just need to unlock the bootloader again before doing anything else.
After flashing a fastboot ROM, boot into MIUI once so that the install finalises itself.
Then flash TWRP and boot into TWRP.
Do a factory reset, then format data. No need to wipe anything else.
Reboot into TWRP to ensure the newly formatted data partition is properly mounted.
Now copy across and flash the ROM of choice plus any optional extras.
There is no need to flash dfe files or vbmeta, etc.
Assuming you've flashed the latest fastboot ROM, then there's no need to flash vendor or firmware files.
Just go through this post
Trust me it has solved all of my issues
http://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
Pronoy_ said:
Just go through this post
Trust me it has solved all of my issues
http://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
Click to expand...
Click to collapse
Hello Bro. I flashed the latest firmware and the evolution x rom but now my phone is stuck on the redmi logo. I am able to go back to recovery but what do I do now?

Categories

Resources