Reflashing MIUI and stock recovery? - Xiaomi Mi 5 Questions & Answers

Hey so if this has been covered elsewhere please let me know, but I'm hoping to revert back from my Nougat rom to MIUI8 and return to the standard recovery.
What is the correct procedure for this? Can I just flash the MIUI8 rom with TWRP?
Thanks in advance people.

Hamsteh said:
Hey so if this has been covered elsewhere please let me know, but I'm hoping to revert back from my Nougat rom to MIUI8 and return to the standard recovery.
What is the correct procedure for this? Can I just flash the MIUI8 rom with TWRP?
Thanks in advance people.
Click to expand...
Click to collapse
Maybe this helps? http://forum.xda-developers.com/mi-5/help/how-to-revert-cm14-to-miui-t3516986
Obviously you can't flash MIUI with TWRP if you are on CM or some other custom ROM. You need miflash.

Nbkdnssr said:
Maybe this helps? http://forum.xda-developers.com/mi-5/help/how-to-revert-cm14-to-miui-t3516986
Obviously you can't flash MIUI with TWRP if you are on CM or some other custom ROM. You need miflash.
Click to expand...
Click to collapse
Thanks heaps mate, so seems like the procedure is as follows:
gaz090 said:
Yeah first time I did this I hard bricked the phone. This is the process I use now:
1) Download MiFlash
2) Download Mi5 Fastboot ROM that you want to use
3) Reboot phone into Fastboot
4) Put phone into EDL using the command "fastboot oem edl" (without quotes)
5) Launch MiFlash - it should detect it as a COM device. Flash the ROM you downloaded earlier.
6) Once it's done, you'll be back to original MIUI. Be aware that this also flashes the recovery too, so you'll need to reinstall TWRP if you want to use it.
Click to expand...
Click to collapse
I'm going to souce MiFlash and the latest fastboot ROM from here: http://en.miui.com/a-234.html

Just an update, the procedure above worked perfectly.
I am now running MAAMIDI with stock recovery.
Thankss heaps for the help Nbkdnssr!

Related

Help installing TWRP on Xiaomi mi5

Hello people
i'm aware that there are guides out there, but i'm honestly not the best at all this flashing stuff, i have done it to a few phones but this one needs to be done just right!
So, where should i begin?, i reckon i should start with unlocking the phone via the unlock tool (i am registered and accepted) and then flash TWRP via that tool?
or is the best/only way of flashing TWRP with the ADB fastboot?
Citroon said:
Hello people
i'm aware that there are guides out there, but i'm honestly not the best at all this flashing stuff, i have done it to a few phones but this one needs to be done just right!
So, where should i begin?, i reckon i should start with unlocking the phone via the unlock tool (i am registered and accepted) and then flash TWRP via that tool?
or is the best/only way of flashing TWRP with the ADB fastboot?
Click to expand...
Click to collapse
There is a Mi5 flashing tool, but I've never used it.
sent from my Mi5
Citroon said:
Hello people
i'm aware that there are guides out there, but i'm honestly not the best at all this flashing stuff, i have done it to a few phones but this one needs to be done just right!
So, where should i begin?, i reckon i should start with unlocking the phone via the unlock tool (i am registered and accepted) and then flash TWRP via that tool?
or is the best/only way of flashing TWRP with the ADB fastboot?
Click to expand...
Click to collapse
Use MiUnlock tool to unlock BL
Then flash TWRP through fasboot
otonieru said:
Use MiUnlock tool to unlock BL
Then flash TWRP through fasboot
Click to expand...
Click to collapse
my problem now is i have no idea how to get miui 7 on it. Iknow that all CM based roms will end in a bootloop if i try to flash with that on.
i have tried a number of things, last time i tried i ended up with it not detecting my sim card, so i had to revert back to Miui 8
Citroon said:
my problem now is i have no idea how to get miui 7 on it. Iknow that all CM based roms will end in a bootloop if i try to flash with that on.
i have tried a number of things, last time i tried i ended up with it not detecting my sim card, so i had to revert back to Miui 8
Click to expand...
Click to collapse
Use miflash tool to flash latest stable global miui 8, then flash CM
It will be fine. I went to CM that way
otonieru said:
Use miflash tool to flash latest stable global miui 8, then flash CM
It will be fine. I went to CM that way
Click to expand...
Click to collapse
i guess ill trust you then! =)
i have the latest stable rom with my bootloader unlocked i'll try to flash TWRP now
did you do that with ADB? seems like im a tad unlucky there as well. (i'm not a noob at this, nor a pro)
Citroon said:
i guess ill trust you then! =)
i have the latest stable rom with my bootloader unlocked i'll try to flash TWRP now
did you do that with ADB? seems like im a tad unlucky there as well. (i'm not a noob at this, nor a pro)
Click to expand...
Click to collapse
No, the MIUI need to be flashed through Miflash tool
TWRP through fastboot
And CM through TWRP
No adb at all
otonieru said:
No, the MIUI need to be flashed through Miflash tool
TWRP through fastboot
And CM through TWRP
No adb at all
Click to expand...
Click to collapse
my miflash wont detect my phone :/
Citroon said:
my miflash wont detect my phone :/
Click to expand...
Click to collapse
let me correct that, it wont detect the file
Citroon said:
let me correct that, it wont detect the file
Click to expand...
Click to collapse
What do you mean by that?
marcoly said:
What do you mean by that?
Click to expand...
Click to collapse
in the flash tool it simply says "error could not find the package"
Citroon said:
in the flash tool it simply says "error could not find the package"
Click to expand...
Click to collapse
Could you post screenshot of MiFlash showing path too?
marcoly said:
Could you post screenshot of MiFlash showing path too?
Click to expand...
Click to collapse
This is what it does, it finds my phone
Gyazo link: https://gyazo.com/a68917c96a4e9d6b3aa4da60ae671454
i locate the file, i've tried both in zip and as a normal folder.
Citroon said:
This is what it does, it finds my phone
Gyazo link: https://gyazo.com/a68917c96a4e9d6b3aa4da60ae671454
i locate the file, i've tried both in zip and as a normal folder.
Click to expand...
Click to collapse
this is another problem, when i want to flash TWRP it cant find my device
https://gyazo.com/9ef62b14719dcc9049b7103167921853
Your thread is getting slightly confusing so let's do it step by step.
Is your phone currently unlocked?
To check, put it into fastboot mode manually without adb:
Turn off your device. Then turn on your device again while holding volume down button.
Plug in your device. Use fastboot:
Code:
fastboot oem device-info
Post screenshots.
Reboot your phone. Post a screenshot of your "About phone" settings menu.
Citroon said:
Hello people
i'm aware that there are guides out there, but i'm honestly not the best at all this flashing stuff, i have done it to a few phones but this one needs to be done just right!
So, where should i begin?, i reckon i should start with unlocking the phone via the unlock tool (i am registered and accepted) and then flash TWRP via that tool?
or is the best/only way of flashing TWRP with the ADB fastboot?
Click to expand...
Click to collapse
I also tried this way.But not miflash tool. I use twrp to flash global stable rom,boot up the rom and flash twrp through fastboot.And then you can flash your favourite rom.
Hi,
sorry to hijack this thread, but i also have problem flashing TWRP.
I have unlocked phone.
I have USB debugging enabled.
I can reboot to fastboot via adb.
I ca flash twrp (twrp-3.0.2-1-gemini.img 25.2M 2016-07-19 18:48:36 EDT).
But when i go to recovery i still see Mi PcSuite thing. No twrp.
What am i doing wrong? IS there some other, more appropriate twrp image?
Svashtar said:
Hi,
sorry to hijack this thread, but i also have problem flashing TWRP.
I have unlocked phone.
I have USB debugging enabled.
I can reboot to fastboot via adb.
I ca flash twrp (twrp-3.0.2-1-gemini.img 25.2M 2016-07-19 18:48:36 EDT).
But when i go to recovery i still see Mi PcSuite thing. No twrp.
What am i doing wrong? IS there some other, more appropriate twrp image?
Click to expand...
Click to collapse
I got mine sorted out, what you are missing is when you are done flashinh you have to type "Fastboot reboot" and then set TWRP to default recovery
hope that helps you out
Same problem for me, when i type "Fastboot reboot", my Mi5 reboot quickly and after when i go to recovery i see also Mi PC Suite....
Do you have a workaround ?
Second question, is it normal that time to send TWRP.img to phone in ADB is only 0,9s ?
http://forum.xda-developers.com/showthread.php?p=69249337
sent from my MI5

Reverting back to stock miui 8 from cm 14.1 on Mi 5

I want a little help from the community. I recently unlocked the bootloader on my Mi5 and flashed twrp and then installed cm 14.1 on it. Now I want to revert back to stock miui 8 that came with the phone. How can I do this? Can anyone help me out?
Ishan Vajpeyi said:
I want a little help from the community. I recently unlocked the bootloader on my Mi5 and flashed twrp and then installed cm 14.1 on it. Now I want to revert back to stock miui 8 that came with the phone. How can I do this? Can anyone help me out?
Click to expand...
Click to collapse
Take a look at the download section of MIUI.com
They have 2 versions, 1 to flash via TWRP or other recovery's and 1 to use there flash tool.
You can choose what you want in there.
elot01 said:
Take a look at the download section of MIUI.com
They have 2 versions, 1 to flash via TWRP or other recovery's and 1 to use there flash tool.
You can choose what you want in there.
Click to expand...
Click to collapse
Is it so? I've undestood that you can't flash orginal miui rom with twrp but you have to use miflash instead. But you can flash eu rom or any other custom rom with twrp.
Nbkdnssr said:
Is it so? I've undestood that you can't flash orginal miui rom with twrp but you have to use miflash instead. But you can flash eu rom or any other custom rom with twrp.
Click to expand...
Click to collapse
I flashed the fastboot rom through mi flash tool, but it didn't boot.
I'm just referring to this: http://forum.xda-developers.com/showpost.php?p=70197250&postcount=508
It seems that you can't flash at least nougat miui with latest twrp.
Nbkdnssr said:
I'm just referring to this: http://forum.xda-developers.com/showpost.php?p=70197250&postcount=508
It seems that you can't flash at least nougat miui with latest twrp.
Click to expand...
Click to collapse
Still, how do i revert back to stock miui 8?
Ishan Vajpeyi said:
Still, how do i revert back to stock miui 8?
Click to expand...
Click to collapse
I haven't done it so maybe I'm not the best advisor. But there is some discussion of it: http://forum.xda-developers.com/mi-5/help/how-to-revert-cm14-to-miui-t3516986
Specially the last reply.
But as far as i understand, orginal miui rom needs to be flashed in fastbood mode with miflash. Eu rom can be flashed with twrp.
Nbkdnssr said:
I haven't done it so maybe I'm not the best advisor. But there is some discussion of it: http://forum.xda-developers.com/mi-5/help/how-to-revert-cm14-to-miui-t3516986
Specially the last reply.
But as far as i understand, orginal miui rom needs to be flashed in fastbood mode with miflash. Eu rom can be flashed with twrp.
Click to expand...
Click to collapse
Thanks man, it worked!
Hmmm, you guys are right.
I had a link about flashing from recovery, but that was only if you already had MIUI running (v7) and you wanted to upgrade to 8.
My bad, sorry.
Ishan Vajpeyi said:
Thanks man, it worked!
Click to expand...
Click to collapse
did you just go into fastboot and clean all and then flash using mi flash ?
or did you have to install the original recovery via adb first ?
Is it safe if I go back to MIUI from my RR ROM with custom kernel?
mfkofc said:
Is it safe if I go back to MIUI from my RR ROM with custom kernel?
Click to expand...
Click to collapse
Just make sure to backup everything, since flashing using fastboot mode will erase everything including internal storage.

How can I get my xiaomi mi a2 back to normal?

I rooted my phone but didn't really like it while having my banking apps on it. So I tried to get back to normal but ended up wiping everything, even the OS, off of my phone. I am trying to get it back to normal. I followed one guide on here which gave me an android 10 ROM but I was unable to update it to the latest version. The link for that guide is: https://forum.xda-developers.com/mi-a2/how-to/guide-official-stock-android-10-t4033835. I didn't install the force encrypt or the magisk because I don't wanna root it. I just want it back to how it was before the root. So I am wondering if there is a way that I can get back to normal now. Thanks in advance for any advice.
Tyche303 said:
I rooted my phone but didn't really like it while having my banking apps on it. So I tried to get back to normal but ended up wiping everything, even the OS, off of my phone. I am trying to get it back to normal. I followed one guide on here which gave me an android 10 ROM but I was unable to update it to the latest version. The link for that guide is: https://forum.xda-developers.com/mi-a2/how-to/guide-official-stock-android-10-t4033835. I didn't install the force encrypt or the magisk because I don't wanna root it. I just want it back to how it was before the root. So I am wondering if there is a way that I can get back to normal now. Thanks in advance for any advice.
Click to expand...
Click to collapse
well what is the problem ? if it booted and you didn't flash magisk you are on stock. ...what exactly do you want ? to lock the bootloader or remove twrp custom recovery too ?
KevMetal said:
well what is the problem ? if it booted and you didn't flash magisk you are on stock. ...what exactly do you want ? to lock the bootloader or remove twrp custom recovery too ?
Click to expand...
Click to collapse
The ROM was an earlier version of android 10. But I am unable to install the latest updates for android 10 OTA. It's working but I would like to be able to receive updates again. If there is another ROM that would give me those results I would be fine with flashing that too.
Tyche303 said:
The ROM was an earlier version of android 10. But I am unable to install the latest updates for android 10 OTA. It's working but I would like to be able to receive updates again. If there is another ROM that would give me those results I would be fine with flashing that too.
Click to expand...
Click to collapse
the most likely issue is your recovery ... take the stock recovery from a fastboot stock rom and flash that with fastboot
also make sure to flash stock rom in both slot A & B then updates will work
go to this website
https://www.getdroidtips.com/xiaomi-mi-a2-stock-firmware/
download a PIE stock rom that is a FASTBOOT version ... download miflash ...follow instructions to flash it using miflash in fastboot mode
then boot & set it up ...it will start offering updates by itself
your problem right now is that you flashed stock rom in only one slot and you have a custom recovery so that is why it can't update
KevMetal said:
the most likely issue is your recovery ... take the stock recovery from a fastboot stock rom and flash that with fastboot
also make sure to flash stock rom in both slot A & B then updates will work
go to this website
https://www.getdroidtips.com/xiaomi-mi-a2-stock-firmware/
download a PIE stock rom that is a FASTBOOT version ... download miflash ...follow instructions to flash it using miflash in fastboot mode
then boot & set it up ...it will start offering updates by itself
your problem right now is that you flashed stock rom in only one slot and you have a custom recovery so that is why it can't update
Click to expand...
Click to collapse
Awesome, thanks! I will try that later tonight or tomorrow.
KevMetal said:
the most likely issue is your recovery ... take the stock recovery from a fastboot stock rom and flash that with fastboot
also make sure to flash stock rom in both slot A & B then updates will work
go to this website
https://www.getdroidtips.com/xiaomi-mi-a2-stock-firmware/
download a PIE stock rom that is a FASTBOOT version ... download miflash ...follow instructions to flash it using miflash in fastboot mode
then boot & set it up ...it will start offering updates by itself
your problem right now is that you flashed stock rom in only one slot and you have a custom recovery so that is why it can't update
Click to expand...
Click to collapse
So I downloaded a fastboot file from here :https://forum.xda-developers.com/mi-a2/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824849
The miui flash program wouldn't work for me. On the website you linked me there was a method that used twrp to flash it. But when use twrp I can't see any of the zip files in twrp. I've tried three different ones from the link I just shared here. Not sure what the problem is.
KevMetal said:
the most likely issue is your recovery ... take the stock recovery from a fastboot stock rom and flash that with fastboot
also make sure to flash stock rom in both slot A & B then updates will work
go to this website
https://www.getdroidtips.com/xiaomi-mi-a2-stock-firmware/
download a PIE stock rom that is a FASTBOOT version ... download miflash ...follow instructions to flash it using miflash in fastboot mode
then boot & set it up ...it will start offering updates by itself
your problem right now is that you flashed stock rom in only one slot and you have a custom recovery so that is why it can't update
Click to expand...
Click to collapse
nevermind, I have gotten it to work. Thank you for your help
Tyche303 said:
nevermind, I have gotten it to work. Thank you for your help
Click to expand...
Click to collapse
okay glad you came right
half the fun is figuring this stuff out

Can I go back to official Rom if I have flashed a custom rom?

Hi
I currently have pixelos 12.1 custom rom, and want to flash China V12.5.6.0.RFACNXM.
Is there any specific steps required? can I just use miflash? Thanks
if ur phone have a chinese rom like a stock rom, u can flash it, but if u have the rom like global/EEA/india, u can install flashing the zip in twrp
shafiro said:
Hi
I currently have pixelos 12.1 custom rom, and want to flash China V12.5.6.0.RFACNXM.
Is there any specific steps required? can I just use miflash? Thanks
Click to expand...
Click to collapse
I have same question , i tried mi flash but im stuck with my costum recovery and fasboot
reymasters said:
I have same question , i tried mi flash but im stuck with my costum recovery and fasboot
Click to expand...
Click to collapse
try as follows: connect phone to pc and put it in fastboot and open the folder where the extracted files are and click where it says flash all this folder put it in the miflash folder.

Question Stuck in fastboot after trying to install PixelExperience :(

Hey everyone
I recently got this phone and went through the bootloader unlock process.
I then tried to follow the instructions on this page https://wiki.pixelexperience.org/devices/rosemary/install/ to get this rom installed but somehow ****ed it up.
Everything went well until I tried to flash the recovery img from this page: https://get.pixelexperience.org/rosemary (i downloaded the 13 plus recovery img).
I flashed the img via fastboot but after that I got stuck in fastboot. The phone is stuck in a bootloop when I try to reboot into recovery or normal boot. The only thing I can get back into is fastboot.
Would really appreciate any help to get the phone working again. Im not new to android custom roms but Im new to xiaomi phones and Im a little lost
Thanks.
OK nevermind I successfully got the phone booting again with miflash tool by reflashing an official firmware...
Greetings!
You can install the rom via adb sideload too. Put on some random recovery (see my tutorial here: https://forum.xda-developers.com/t/twrp-on-android-12.4522273/), and start adb sideload.
Then,
adb sideload insert_package_name.zip
Click to expand...
Click to collapse
Hope it helps! ; D
dona3000 said:
Hey everyone
I recently got this phone and went through the bootloader unlock process.
I then tried to follow the instructions on this page https://wiki.pixelexperience.org/devices/ros mary/install/ to get this rom installed but somehow ****ed it up.
Everything went well until I tried to flash the recovery img from this page: https://get.pixelexperience.org/rosemary (i downloaded the 13 plus recovery img).
I flashed the img via fastboot but after that I got stuck in fastboot. The phone is stuck in a bootloop when I try to reboot into recovery or normal boot. The only thing I can get back into is fastboot.
Would really appreciate any help to get the phone working again. Im not new to android custom roms but Im new to xiaomi phones and Im a little lost
Thanks.
Click to expand...
Click to collapse
Did u make sure ur on Miui 12.5.16.0.RKLMIXM?
I'm also having similar problem and circumstance, may I ask where did you find the official firmware and/or recovery img for the Redmi note 10s
fol!s said:
I'm also having similar problem and circumstance, may I ask where did you find the official firmware and/or recovery img for the Redmi note 10s
Click to expand...
Click to collapse
Greetings!
As this phone has an MTK processor, we don't really have a recovery image, it's stored in the boot img I suppose. That link, you can download the official rom to this. DISCLAIMER: There are two types of ROMs listed here, one type is fastboot, that you need now in order to flash it through a computer for example. The another type is the recovery rom, that you can flash from recovery like a magisk package, or anything flashable zip, or with adb sideload.
https://mifirm.net
You should choose global if you are in Europe, but it's suitable for devices in the US or USA probably, ony feature differences are here between an EEA and Global rom.
Also, if you install pixel experience recovery, you can install the firmware by going into recovery, and do it via sideload. Or, you can try flashing the rom with TWRP (tutorial linked below), but then you won't able to install updates automatically.
One question: Did you checked in OEM unlocking in developer options before flashed PE?
Hope it helps!
Yeah, I did checked the oem unlocking. I think the reason why i failed because my bootloader probably updated and I forgot to check. You need bootloader version 12.5.16.0.RKLMIXM to install the pixel experience. Also thank for help
Greetings!
You can install the rom via adb sideload too. Put on some random recovery (see my tutorial here: https://forum.xda-developers.com/members/gurtnyi.11842195), and start adb sideload.
Then,
adb sideload insert_package_name.zip
Hope it helps! ; D
Click to expand...
Click to collapse
Can I do that on newer firmware or should I roll back to version 12.5.16.0.RKLMIXM? And if I roll back then I need to unlock device again?
I think you can. I've flashed it successfully on the latest version too. Currently I don't use PE but it was good for me.
Well, regarding to the unlock, it's not a big deal, you don't have to wait 168h again, once you've firstly unlocked your device, you can re-unlock it again, and again, no matter how many times, you don't have to wait a lot again.
But depending on how you rollback it,
I mean, with xiaomi flasher (i think that's its name) you can choose between clean all and lock, save userdata, and clean all, but in the first case, it'll lock back the bootloader. With SP flash tool (if you need, I can provide a link for the modified version of it, that doesn't require an auth file, but if fails, you need a python script, I can link that too), as I remember it won't lock back the device, but I'm not a 100% sure
Hope it helps!
Can you repair link to totorial https://forum.xda-developers.com/members/gurtnyi.11842195 doesn't seem to work.
raven17a said:
Can you repair link to totorial https://forum.xda-developers.com/members/gurtnyi.11842195 doesn't seem to work.
Click to expand...
Click to collapse
Corrected, thank you!
Thank you! I managed to install PE by rolling back to MIUI 12.5. Sideload unfortunatly not working on stock recovery.
raven17a said:
Thank you! I managed to install PE by rolling back to MIUI 12.5. Sideload unfortunatly not working on stock recovery.
Click to expand...
Click to collapse
Happy to hear that!
By the way, yes, pe recovery is better for sideloading, or eventually any not stock recovery. Also, if you install PE recovery, you can apply updates automatically, and in the future you won't need to flash it manually.

Categories

Resources