Guide to flash latest official firmware with unlocked bootloader - Xiaomi Mi 9 Questions & Answers

Hi,
As per title. Latest OTA is available but it won't flash because I have custom recovery (twrp). How do I go about flashing latest OTA without re-locking bootloader etc.
Thanks.

Hi.
Select the ROM version you need below, make sure your version is the same as your device is came with. The "Recovery" types are all TWRP flashable.
https://xiaomifirmwareupdater.com/miui/cepheus/

_MartyMan_ said:
Hi.
Select the ROM version you need below, make sure your version is the same as your device is came with. The "Recovery" types are all TWRP flashable.
https://xiaomifirmwareupdater.com/miui/cepheus/
Click to expand...
Click to collapse
Thanks! Will this keep existing data or is it a full wipe?

czarb0ris said:
Thanks! Will this keep existing data or is it a full wipe?
Click to expand...
Click to collapse
I always wipe everything when doing an update so i'm not sure sorry.

Related

[Q] sense 6 OTA not working

Hello,
I have 4.4.2 installed on my One. I had rooted it with custom recovery. But as sense 6 is there I un-rooted it, locked it properly and removed tampered flag. Installed stock recovery and also put it in S-ON.
I can download OTA but while installing it is failing. It is showing red triangle and restarting it.
Can somebody help me to proceed further? If I go to HTC, will they update it?
I think , preload file is wiped when u unlocked ur device
Try installing ota manual and write the message
crazyboy4ever said:
I think , preload file is wiped when u unlocked ur device
Try installing ota manual and write the message
Click to expand...
Click to collapse
I am trying manually update it. But in recovery after red triangle it is restarting even after I press power and volume up button. So I am not reaching to recovery selection menu.
avcoolkarni said:
I am trying manually update it. But in recovery after red triangle it is restarting even after I press power and volume up button. So I am not reaching to recovery selection menu.
Click to expand...
Click to collapse
Did you flash the proper version of stock recovery? it Must be the same version as your phones currently installed OS.
mb_guy said:
Did you flash the proper version of stock recovery? it Must be the same version as your phones currently installed OS.
Click to expand...
Click to collapse
Yes, it is the same version. I have kitkat 4.4.2 India version. I got it from some other thread.
avcoolkarni said:
Can somebody help me to proceed further? If I go to HTC, will they update it?
Click to expand...
Click to collapse
Your problem is the current ROM is not 100% stock, some files are missing especially the preload.
1. What is your current software version no. ?
2. unlock the bootloader again and flash TWRP
3. flash a stock ROM.zip of your version no. or restore a proper nandroid backup
4. reboot and do the normal setup
5. reboot to bootloader
6. flash the stock recovery
7. reboot and do the OTA
So ... solve the no. 1 first.
ckpv5 said:
Your problem is the current ROM is not 100% stock, some files are missing especially the preload.
1. What is your current software version no. ?
2. unlock the bootloader again and flash TWRP
3. flash a stock ROM.zip of your version no. or restore a proper nandroid backup
4. reboot and do the normal setup
5. reboot to bootloader
6. flash the stock recovery
7. reboot and do the OTA
So ... solve the no. 1 first.
Click to expand...
Click to collapse
Hey,
My software version number is 4.20.707.7 with HBOOT 1.56. I don't have stock ROM readily available anywhere like htc1guru etc., so I am downloading it from one of the xda thread.
Now
I will install TWRP,
reset stock ROM (there is also an option of installin stock recovery) once my download finishes.
Then again will lock boot loader,
put S ON back
update sense 6 OTA.
avcoolkarni said:
Hey,
My software version number is 4.20.707.7 with HBOOT 1.56. I don't have stock ROM readily available anywhere like htc1guru etc., so I am downloading it from one of the xda thread.
Now
I will install TWRP,
reset stock ROM (there is also an option of installin stock recovery) once my download finishes.
Then again will lock boot loader,
put S ON back
update sense 6 OTA.
Click to expand...
Click to collapse
1. There is another file that you need to flash after that ROM zip.
See : http://forum.xda-developers.com/showpost.php?p=52981541&postcount=57
2. There is no need to lock boot loader and put S-On back (if now is S-Off) to do OTA update
Only stock recovery is needed
avcoolkarni said:
Then again will lock boot loader,
put S ON back
Click to expand...
Click to collapse
Really recommend you do NOT GO S-ON
ckpv5 said:
1. There is another file that you need to flash after that ROM zip.
See : http://forum.xda-developers.com/showpost.php?p=52981541&postcount=57
2. There is no need to lock boot loader and put S-On back (if now is S-Off) to do OTA update
Only stock recovery is needed
Click to expand...
Click to collapse
Thanks, I already downloaded that updater which contains twitter client. I will keep S OFF.
nkk71 said:
Really recommend you do NOT GO S-ON
Click to expand...
Click to collapse
Ok, will try that. Thanks

Upgrading to lollipop

-------------------------
Just flash the latest TWRP
Take a nandroid backup just to be safe
Do a factory reset
Download the ROM file (Titan Prime)
Download the latest gapps for 5.0
Flash ROM
Flash gapps
Wipe Cache and Dalvik
Reboot
Done
And about the bootloader update, that happens only when you use the OTA update. Otherwise it isnt necessary
I usually take the update first just because I like being up to sate but not necessary.
-------------------------
axl409 said:
You mean you like to update also the bootloader? Because I think that if you take the ota, the only thing that change is that also the bootloader will update.
Click to expand...
Click to collapse
Boot loader and recovery I belive. I just like everything on the latest version that is just me...
axl409 said:
You mean you like to update also the bootloader? Because I think that if you take the ota, the only thing that change is that also the bootloader will update.
Click to expand...
Click to collapse
Bootloaders & Recovery are two separate things. A bootloader is usually updated through official means only (OTAs & such). Meaning, bootloaders don't get updated when you flash a recovery zip.
I'd suggest you keep your recovery as updated as possible, as it'll have certain bugs & compatibility issues resolved.

[Q] Help w/ Root Htc One (m7)

Hello, this is my first time on XDA so if I make any mistakes please forgive me .
I have unlocked the bootloader on my Sprint HTC One m7, and I can't find any guides on how to root my phone with its current stock Andriod version. It has version 4.4.2 with HTC version 6.0. Can anyone point me towards a good guide?
Thanks!
Lifehags said:
Hello, this is my first time on XDA so if I make any mistakes please forgive me .
I have unlocked the bootloader on my Sprint HTC One m7, and I can't find any guides on how to root my phone with its current stock Andriod version. It has version 4.4.2 with HTC version 6.0. Can anyone point me towards a good guide?
Thanks!
Click to expand...
Click to collapse
Welcome to xda!
Since your bootloader is already unlocked, then all you need to do is to flash a custom recovery like TWRP.
With the recovery.img in the same folder where you have adb and fastboot and your phone booted in bootloader/fastboot usb mode, open a command prompt and type:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
then reboot in recovery mode by selecting "recovery" in the bootloader. Once booted in TWRP recovery, just select to reboot to system and the recovery will detect that your phone isn't rooted and will ask if you want to root it. Select "yes". Then once rebooted in the OS, you should have supersu in your app drawer.
Don't forget sprint variant of the One isn't the same phone as the international gsm variant so always flash files (Custom recovery/ custom roms/ Custom kernel) compatible for sprint (M7WLS sometime called M7SPR)
alray said:
Welcome to xda!
Since your bootloader is already unlocked, then all you need to do is to flash a custom recovery like
With the recovery.img in the same folder where you have adb and fastboot and your phone booted in bootloader/fastboot usb mode, open a command prompt and type:
Code:
fastboot flash recovery name_of_recovery.img
fastboot erase cache
fastboot reboot-bootloader
then reboot in recovery mode by selecting "recovery" in the bootloader. Once booted in TWRP recovery, just select to reboot to system and the recovery will detect that your phone isn't rooted and will ask if you want to root it. Select "yes". Then once rebooted in the OS, you should have supersu in your app drawer.
Don't forget sprint variant of the One isn't the same phone as the international gsm variant so always flash files (Custom recovery/ custom roms/ Custom kernel) compatible for sprint (M7WLS sometime called M7SPR)
Click to expand...
Click to collapse
That's all? Also, using this procedure, if I update will my root be broken or Will I still have root? Also if it brakes my root what will happenen to the stuff that I gave root permission too? And stuff like that? Thanks for all the help!
Lifehags said:
That's all? Also, using this procedure, if I update
Click to expand...
Click to collapse
You'll maybe not be able to update. When you unlock the bootloader, /data/preload and its content is wiped (some of HTC preloaded apps, weather animations etc). These apps are sometime updated during an ota update and if they are missing, like after unlocking the bootloader. the ota installation will fail. You also need to flash your stock recovery back before an ota update.
will my root be broken or Will I still have root?
Click to expand...
Click to collapse
You'll loose root. All you have to do is to root again after the ota update.
Also if it brakes my root what will happenen to the stuff that I gave root permission too? And stuff like that? Thanks for all the help!
Click to expand...
Click to collapse
They will still be installed but they won't work, or at least, there functions requiring root will not work.
alray said:
You'll maybe not be able to update. When you unlock the bootloader, /data/preload and its content is wiped (some of HTC preloaded apps, weather animations etc). These apps are sometime updated during an ota update and if they are missing, like after unlocking the bootloader. the ota installation will fail. You also need to flash your stock recovery back before an ota update.
You'll loose root. All you have to do is to root again after the ota update.
They will still be installed but they won't work, or at least, there functions requiring root will not work.
Click to expand...
Click to collapse
Thanks for all the help!
alray said:
You'll maybe not be able to update. When you unlock the bootloader, /data/preload and its content is wiped (some of HTC preloaded apps, weather animations etc). These apps are sometime updated during an ota update and if they are missing, like after unlocking the bootloader. the ota installation will fail. You also need to flash your stock recovery back before an ota update.
You'll loose root. All you have to do is to root again after the ota update.
They will still be installed but they won't work, or at least, there functions requiring root will not work.
Click to expand...
Click to collapse
I used adb to make a backup and restore so I should be able to install ota updates
Lifehags said:
I used adb to make a backup and restore so I should be able to install ota updates
Click to expand...
Click to collapse
So you have backed up /data/preload before unlocking?
alray said:
You'll maybe not be able to update. When you unlock the bootloader, /data/preload and its content is wiped (some of HTC preloaded apps, weather animations etc). These apps are sometime updated during an ota update and if they are missing, like after unlocking the bootloader. the ota installation will fail. You also need to flash your stock recovery back before an ota update.
You'll loose root. All you have to do is to root again after the ota update.
They will still be installed but they won't work, or at least, there functions requiring root will not work.
Click to expand...
Click to collapse
alray said:
So you have backed up /data/preload before unlocking?
Click to expand...
Click to collapse
Yup
Lifehags said:
Yup
Click to expand...
Click to collapse
:good:
alray said:
:good:
Click to expand...
Click to collapse
Any alternative to twrp, it seems like a lot of people are having problems with it.
Lifehags said:
Any alternative to twrp, it seems like a lot of people are having problems with it.
Click to expand...
Click to collapse
TWRP is the preferred recovery of M7 but you can also use CWM
alray said:
:good:
Click to expand...
Click to collapse
Lifehags said:
Any alternative to twrp, it seems like a lot of people are having problems with it.
Click to expand...
Click to collapse
Should I go with the latest version of 2.8, or do you suggest a eilear version?
Lifehags said:
Should I go with the latest version of 2.8, or do you suggest a eilear version?
Click to expand...
Click to collapse
if you are only going to root and not flashing rom then use any version you want, the latest should be fine. If you want to flash a custom rom, use the recovery mentioned in the rom OP.
alray said:
if you are only going to root and not flashing rom then use any version you want, the latest should be fine. If you want to flash a custom rom, use the recovery mentioned in the rom OP.
Click to expand...
Click to collapse
Alright, thanka for all of the help!
Lifehags said:
Alright, thanka for all of the help!
Click to expand...
Click to collapse
youre welcome

How do I change the radio and boot loader?

Go easy....
Wanting to flash some of the newer M ROMs.
Requirements are latest radio, boot loader and TWRP
How do I change those?
I'm root and twrp installed. Are there zips to flash in recovery 1st?
Steps or even a video would be HUGE, and thank you for helping.
The information is everywhere. You have to flash the radio/bootloader in fastboot mode. You can't flash them in recovery.
SirBindy said:
The information is everywhere. You have to flash the radio/bootloader in fastboot mode. You can't flash them in recovery.
Click to expand...
Click to collapse
I beg to differ :
http://forum.xda-developers.com/showthread.php?t=3066052
This is how i did it, in recovery.
It's all just an illusion
robfromga said:
Go easy....
Wanting to flash some of the newer M ROMs.
Requirements are latest radio, boot loader and TWRP
How do I change those?
I'm root and twrp installed. Are there zips to flash in recovery 1st?
Steps or even a video would be HUGE, and thank you for helping.
Click to expand...
Click to collapse
I was in a similar situation, I have MultiRom, and I wanted to preview M out without getting rid of PureNexus. So this is what I did
Download factory image for M
Make sure you have the latest android SDK!!!
extract the factory image
rename bootloader file to bootloader.img; rename radio file to radio.img
connect your device and reboot into bootloader
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
then reboot your phone, and you are good
if you are uncertain about it, take a look at flash-base.sh, or flash-all.bat, and follow those steps.
most bootloaders and radios ARE available via a flashable zips that can be flashed via twrp, you just have to look for them. otherwise, fastboot is very easy.
I found the zips and flashed them with flashify. How do I know if it took? What is the radio listed under settings?
Settings-about phone-?
robfromga said:
I found the zips and flashed them with flashify. How do I know if it took? What is the radio listed under settings?
Settings-about phone-?
Click to expand...
Click to collapse
If you flashed the marshmallow radio, the baseband should end in .27r.
It's all just an illusion
robfromga said:
I found the zips and flashed them with flashify. How do I know if it took? What is the radio listed under settings?
Settings-about phone-?
Click to expand...
Click to collapse
i dont think you can flash the bootloader via flashify.
Does flashing marshmallow factory image not update the boot loader and radio with it ? Ie flashing marshmallow from NRT toolkit ?
bigup7 said:
Does flashing marshmallow factory image not update the boot loader and radio with it ? Ie flashing marshmallow from NRT toolkit ?
Click to expand...
Click to collapse
if you flash the whole thing it does.
simms22 said:
if you flash the whole thing it does.
Click to expand...
Click to collapse
Ahh great. Had me confused for a bit
bigup7 said:
Ahh great. Had me confused for a bit
Click to expand...
Click to collapse
if youre rooted, and dont want to go through the process again, and dont want to lose your data, all you have to do is flash the boot.img and the system.img to update the rom. and then reflash supersu in twrp
Right baseband?
robfromga said:
Right baseband?
Click to expand...
Click to collapse
That's what I have. You should be good.
It's was all just an illusion
Sweet!
So if I'm understanding everything, I'm now on the latest update of TWRP ,bootloader and radio....so its OK to flash M?
Yep
It's was all just an illusion

Rootin and OTa

Is there anyway to root and still get OTA ?
anttaz said:
Is there anyway to root and still get OTA ?
Click to expand...
Click to collapse
You will get OTA, after Root also, but after updating your root will gone, recovery will replaced by Stock recovery, and if You are decrypted after update
it will get encrypted.
uttam.ace said:
You will get OTA, after Root also, but after updating your root will gone, recovery will replaced by Stock recovery, and if You are decrypted after update
it will get encrypted.
Click to expand...
Click to collapse
Does stock recovery not allow zip flashing?
anttaz said:
Does stock recovery not allow zip flashing?
Click to expand...
Click to collapse
It allows local upgrade, but it has not much flexibility like TWRP.
I've just updated from 4.0.2 to 4.0.3 and here's how my "OTA" was working:
1) Got notification that the update is available
2) Went to XDA to download OOS 4.0.3. full ROM zip, TWRP 3.1.4.1 image and Magisk 11.1 root
3) rebooted to TWRP, flashed new ROM, Magisk root and TWRP image.
As far as I know, that's the only sure way to update your phone while keeping root and TWRP.
Does it pass safety net?
anttaz said:
Does it pass safety net?
Click to expand...
Click to collapse
Yes, it does! With MagiskHide it works like a charm.
Will ota work for cleaning system for say arise sound mod or will have to use full? And does full wipe device clean?
anttaz said:
Will ota work for cleaning system for say arise sound mod or will have to use full? And does full wipe device clean?
Click to expand...
Click to collapse
I'm sorry, i didn't fully understand what you were trying to say here
But i'll take a wild guess and tell you that in TWRP you always need to flash full ROM, not OTA version. Otherwise your phone won't boot.
hrsa said:
I'm sorry, i didn't fully understand what you were trying to say here
But i'll take a wild guess and tell you that in TWRP you always need to flash full ROM, not OTA version. Otherwise your phone won't boot.
Click to expand...
Click to collapse
Along those lines in a way does full ROM zip wipe phone each flash?
anttaz said:
Along those lines in a way does full ROM zip wipe phone each flash?
Click to expand...
Click to collapse
Nope, it never wipes anything other than system, so all your data and apps are safe.
anttaz said:
Along those lines in a way does full ROM zip wipe phone each flash?
Click to expand...
Click to collapse
Does flashing full ROM zip wipe phone with each flash?
Thanks all
Which version twrp to use seen official and a few others in forum for our device??
Hello, sorry for my bad english (German). I installed the update too and now my root, recovery, kernel.... are away. When I try to flash the recovery or other stuff with cmd, is there an error message: FAILED (remote: Partition flashing is not allowed)
Got anyone an idea how i can flash my recovery again?

Categories

Resources