• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Guide] Flash MIUI OTA/Stock/Any MIUI based ROM from recovery without bricking device

Search This thread

the_weird_aquarian

Senior Member
Nov 13, 2016
396
209
Hi again u said " If decrypted, boot to recovery manually and under miui OTA settings enable the Disable Forced Encryption option first and then flash OTA from recovery. "
how do i flash from Ota ? where do i find the update i m on decrypted device
after you've downloaded the ota from updater app, it's stored in "dowloaded_rom" folder in internal storage..after disabling force encryption from recovery just select the zip file inside "dowloaded_rom" folder and swipe to flash.
what happens if i install it from using the MIUI updater app ? will it work ?i don t care if system becomes encrypted again just will it work ?
Thanx in advance
well if you're already decrypted and install from updater app you'll bootloop into recovery everytime and then the only thing that can save you is format data(format..not wipe)..I don't think anyone likes losing all data in their internal everytime they flash...
ok i had to install everything from the start is it possible to encrypt phone again without loosing anything?
to encrypt again you gotta flash full fastboot rom again via mi flash.....and then while flashing anything from recovery just don't select "Disable Forced Encryption"
 
  • Like
Reactions: TheCrowX

jean000

Member
Oct 8, 2008
13
0
Panama
hello please i need help I use orange recovery to flash my redmi note 8 (willow) and now I have a bricked phone I flash this miui_WILLOWGlobal_V11.0.3.0.PCXMIXM_5f1d980a44_9.0 everything was ok after flash and when I hit reboot device my device won´t boot doesnt enter in fasboot or recovery i just get a black screen with bootloop please help contact me in [email protected] if anyone knows how to revive my device please help
 

the_weird_aquarian

Senior Member
Nov 13, 2016
396
209
I have a question. My phone is a Note 8T(willow) and I have installed OrangeFox. I have downloaded the Note 8(gingko) Indonesian ROM and would like to install it but OrangeFox will not let me install it. How do you get around that. Thanks.
you have already answered your question..you have a willow...downloaded a ginkgo rom...why would it let you flash if it's not device specific....
anyway I don't recommend flashing ginkgo rom on willow even if it's same hardware...you won't be able to use NFC and other unknown issues might arise...
if you still wanna flash it then in the ginkgo rom.zip you can go to META-INF/com/google/android/updater-script->here remove the following line:

Code:
getprop("ro.product.device") == "ginkgo" || abort("E3004: This package is for \"ginkgo\" devices; this is a \"" + getprop("ro.product.device") + "\".");

Now recovery won't verify your device and you can flash the rom. Although don't extract your full rom.zip. Just open(not extract) with winrar, go to the mentioned path and extract the updater-script, make changes with notepad++ and drag the new modified updater-script back in the same path. :)
 

sasukewa

Senior Member
you have already answered your question..you have a willow...downloaded a ginkgo rom...why would it let you flash if it's not device specific....
anyway I don't recommend flashing ginkgo rom on willow even if it's same hardware...you won't be able to use NFC and other unknown issues might arise...
if you still wanna flash it then in the ginkgo rom.zip you can go to META-INF/com/google/android/updater-script->here remove the following line:

Code:
getprop("ro.product.device") == "ginkgo" || abort("E3004: This package is for \"ginkgo\" devices; this is a \"" + getprop("ro.product.device") + "\".");

Now recovery won't verify your device and you can flash the rom. Although don't extract your full rom.zip. Just open(not extract) with winrar, go to the mentioned path and extract the updater-script, make changes with notepad++ and drag the new modified updater-script back in the same path. :)

I might have to try building a specific rom for this..... might take me a week or 2.
 

rusm

Member
Mar 27, 2011
16
1
Hello.
On my 8T I installed everything as described in first topic. It worked with Orange Fox and 11.0.3.0 EEA ROM two months without any problem, thank you.

Now I would like to upgrade to 11.0.7.0 EEA. My phone is encrypted, I use Magisk and I frose or replaced some app include system (dialer, etc).

So, what the best way to update ROM, save all my data, encryption, and system apps config? Is it possible by OTA? or need flashing zip via OrangeFox?
 

TapaSte

Senior Member
Jun 23, 2017
344
37
Hello.
On my 8T I installed everything as described in first topic. It worked with Orange Fox and 11.0.3.0 EEA ROM two months without any problem, thank you.

Now I would like to upgrade to 11.0.7.0 EEA. My phone is encrypted, I use Magisk and I frose or replaced some app include system (dialer, etc).

So, what the best way to update ROM, save all my data, encryption, and system apps config? Is it possible by OTA? or need flashing zip via OrangeFox?
If You have EEA You can simply update via OTA with no issue apart, maybe, to overwrite recovery with the stock one.
 

DailyRoutine

Member
Aug 14, 2018
27
0
Maybe oot?
I wipe my internal storage, and formatting data too(not wipe data) because my phone is "broken". Rebooting to system and everything came back to normal. But there is one thing, the device still encrypted. Why it's like that? It's supposed to be unencrypted, right?

Sent from my Redmi Note 8 using Tapatalk
 

the_weird_aquarian

Senior Member
Nov 13, 2016
396
209
Maybe oot?
I wipe my internal storage, and formatting data too(not wipe data) because my phone is "broken". Rebooting to system and everything came back to normal. But there is one thing, the device still encrypted. Why it's like that? It's supposed to be unencrypted, right?

Sent from my Redmi Note 8 using Tapatalk
no...just formatting data won't keep it decrypted...if you want to keep it decrypted then flash the disable dm verity force encryption zip after formatting data. :)
 

am23rs90

Senior Member
Apr 3, 2020
57
2
Redmi Note 8
Hey guys.
I flashed the stock MIUI 11 recovery room through OrangeFox, and everything went well.

However l, when I install Viper4Android drivers through the app and when the phone auto reboots, it just keeps showing Redmi splash screen and then boots to recovery.

Can someone please advise me on a solution.
 

the_weird_aquarian

Senior Member
Nov 13, 2016
396
209
Hey guys.
I flashed the stock MIUI 11 recovery room through OrangeFox, and everything went well.

However l, when I install Viper4Android drivers through the app and when the phone auto reboots, it just keeps showing Redmi splash screen and then boots to recovery.

Can someone please advise me on a solution.
format data from recovery(format..not wipe)
 

numbazZ

Senior Member
what if after flashing stock miui rom my internal memory got wiped for some reason and there is no folder Fox/OTA? How to perform OTA update in the future?

Edit: That's because i've used Orange Fox R10.1_4-Beta for this. Flashed the stable version and did everything again, now all good
 
Last edited:

Neronex

New member
Jun 10, 2020
3
0
Hi,

I'm having a problem flashing an OTA Update. I'm on a decrypted 8T and selected "Disable Forced Encryption'' in recovery. When I try to flash the zip it gives me this error:

E: String resource 'You must flash MIUI OTA updates from the MIUI updater, because only MIUI can decrypt the zips.' not found. No default value.
[You must flash MIUI OTA updates from the MIUI updater, because only MIUI can decrypt the zips.]
E: Please flash this package using MIUI updater app!

Trying to flash miui-blockota-willow_eea_global-V11.0.7.0.PCXEUXM-V11.0.9.0.PCXEUXM-5797b20f4-9.0.zip if that helps any.

If someone could help, thanks in advance!
 

bluefender

Senior Member
Jun 30, 2010
557
49
wales
Redmi Note 9 Pro
i have a note 8t with miui v11.0.4.0 pcxmixm, can i install miui_WILLOWEEAGlobal_V11.0.9.0.PCXEUXM_9d774ae5d2_9.0 with orangefox, also does the rom have to be placed in internal memory or can i placed it on the sd card before flash.
i also have magisk installed, i am encrypted, do i follow first page instruction to the letter?
 
Last edited:

Vyto-Khron

Member
Nov 29, 2015
33
3
Redmi Note 8
Hi,

I'm having a problem flashing an OTA Update. I'm on a decrypted 8T and selected "Disable Forced Encryption'' in recovery. When I try to flash the zip it gives me this error:

E: String resource 'You must flash MIUI OTA updates from the MIUI updater, because only MIUI can decrypt the zips.' not found. No default value.
[You must flash MIUI OTA updates from the MIUI updater, because only MIUI can decrypt the zips.]
E: Please flash this package using MIUI updater app!

Trying to flash miui-blockota-willow_eea_global-V11.0.7.0.PCXEUXM-V11.0.9.0.PCXEUXM-5797b20f4-9.0.zip if that helps any.

If someone could help, thanks in advance!

Did you manually reboot to OrangeFox and tried flashing the update file?
 

TapaSte

Senior Member
Jun 23, 2017
344
37
i Need to flash stock miui (eea) before to install another custom aosp 10 ROM in my redmi note 8t.

now I'm running on MiuiMix (miui custom ROM).

can I simply flash the stock ROM .zip via custom recovery after have done all 5 wipes ?

p.s. I'm encrypted and want to stay so. :)

Sent from my Redmi Note 8T
 

the_weird_aquarian

Senior Member
Nov 13, 2016
396
209
I'm having a problem flashing an OTA Update. I'm on a decrypted 8T and selected "Disable Forced Encryption'' in recovery. When I try to flash the zip it gives me this error:

E: String resource 'You must flash MIUI OTA updates from the MIUI updater, because only MIUI can decrypt the zips.' not found. No default value.
[You must flash MIUI OTA updates from the MIUI updater, because only MIUI can decrypt the zips.]
E: Please flash this package using MIUI updater app!

Trying to flash miui-blockota-willow_eea_global-V11.0.7.0.PCXEUXM-V11.0.9.0.PCXEUXM-5797b20f4-9.0.zip if that helps any.
in orangefox > menu > click settings icon > enable miui rom mode > Enable "support miui incremental ota", "ota survival", "incremental ota signature verification". After that flash full miui rom once through orangefox (remember to select disable force encryption and dm verity options).. Then try flashing ota through recovery.

i have a note 8t with miui v11.0.4.0 pcxmixm, can i install miui_WILLOWEEAGlobal_V11.0.9.0.PCXEUXM_9d774ae5d2_9.0 with orangefox, also does the rom have to be placed in internal memory or can i placed it on the sd card before flash.
i also have magisk installed, i am encrypted, do i follow first page instruction to the letter?
Yes you can flash the EU version from orangefox. You can place it on SD card too. Since you're encrypted just flashing the rom and magisk would do. :)

i Need to flash stock miui (eea) before to install another custom aosp 10 ROM in my redmi note 8t.

now I'm running on MiuiMix (miui custom ROM).

can I simply flash the stock ROM .zip via custom recovery after have done all 5 wipes ?

p.s. I'm encrypted and want to stay so. :)
Yes since you're encrypted just flashing the rom would do. :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Code:
    /*
     * Your warranty is now void.
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. 
     * Please do some research if you have any concerns.
     * YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    A guide to flash MIUI OTA/Stock/Any MIUI based rom from recovery without any bootloops or bricking device.

    First things first, if you haven't done any modifications to your device (not even unlocked bootloader), then this guide is probably not for you. Just update via the Updater app. If you want to unlock bootloader and root read this guide first then come back. :)

    Now if you have unlocked bootloader with TWRP installed and encrypted device then you can flash full ROM from TWRP without any issues.
    Staying on an encrypted device is recommend for better security.

    To check if your device is encrypted or not go to Phone Settings > Passwords & security > Privacy > Encryption & credentials > check if it shows encrypted or not.

    To decrypt your internal storage (Not recommended):
    Make sure you have a backup of your data copied in PC.
    - In TWRP go to Wipe and select Format Data(don't go to advanced). Type yes and format data. [This process will format all your data so make sure your data is backed up].
    - Go back to TWRP home and Reboot > Recovery.
    - Reboot > System.

    Now if you check again in Phone settings it'll show "Phone not encrypted".

    If you have a decrypted device and want to flash MIUI rom or OTA through recovery you'll face bootloop.
    Then there are two solutions to overcome this issue:

    1. After flashing full MIUI rom through TWRP you need to format data again. But you will have to backup your data to PC everytime as your internal will be formatted. And then you would have to go through the hassle of setting up your phone which takes atleast 15 mins.

    2. A better solution is to use another recovery like OrangeFox recovery. It has a special MIUI OTA support. So you can flash MIUI OTA and any MIUI based rom from recovery without bootloop, formatting data or bricking device in any way.

    Here's how to use OrangeFox recovery:
    Make sure you have a backup of your data copied in PC.
    These steps work for both encrypted and non-encrypted devices
    - Download the stock MIUI Recovery ROM for your region or any other MIUI based custom rom of your choice, and copy it to your phone’s storage.
    - Download the OrangeFox recovery zip from here.
    - If you don't have any recovery installed right now then extract the recovery.img file from the zip and follow the "Flashing TWRP" steps from here
    - If you already have TWRP then go to Install > flash zip normally. Your device will boot into OrangeFox recovery automatically in 5 seconds.
    - Go to the Menu > tap on OrangeFox settings icon in top right corner, and enable these under MIUI OTA settings :
    1. Support MIUI incremental OTA
    2. Include system in OTA survival
    3. Incremental OTA signature verification
    4. Prevent auto reboot after installing OTA
    5. Disable DM-Verity
    6. Disable Forced Encryption (Don't enable this if you have an encrypted device already and want to stay encrypted)
    7. Aggressive stock recovery deactivation
    - Now go to the “Wipe” menu :
    1. If already on a MIUI based rom and flashing your current MIUI rom zip then select data, cache, and dalvik.
    2. If coming from a non MIUI based rom to MIUI based one or if switching from current MIUI based rom to completely different MIUI based one then select data, cache, dalvik, system, vendor.
    - Now go to "Install" and flash your MIUI ROM. (This is just a one time process.)
    - After the ROM is flashed, OrangeFox will start the "OTA_BAK" process, which will backup your system and boot partitions into the /sdcard/Fox/OTA directory. You must NOT delete any of the files in the /sdcard/Fox/OTA directory. If you do, then incremental OTA updates will most definitely fail.
    - Reboot > system.

    Now when MIUI notifies you that there is an update:
    - Download the update, using the MIUI updater app/official website.
    - If on an encrypted device allow it to reboot automatically to OrangeFox. If decrypted, boot to recovery manually and under miui OTA settings enable the Disable Forced Encryption option first and then flash OTA from recovery.
    - OrangeFox will install the update automatically (this might take several minutes).
    - Your phone will reboot automatically upon completion of the installation of the MIUI OTA update (If it doesn't then reboot manually).
    - After this, you will not need to flash a full rom any more.
    - Enjoy your updated MIUI :)

    Links
    1. OrangeFox Recovery
    2. Stock MIUI Recovery ROM


    If this helped you then hit the Thanks Button. Good Luck. :)
    2
    thanks
    Can u pls tell me that, as my data is encrypted so every time i put password to decrypt it in OF recovery.. but i found in Miui OTA>Disable DM-Verity is unchecked. Is that okay or i should check mark that every time when flash any zip etc?
    Disable dm-verity is used to stop the stock mi recovery from coming back. Disable force encryption is required to stop the encryption. Now in OF, "Disable DM-Verity" and "Disable Force Encryption" options are always unchecked automatically everytime you reboot.
    If you're encrypted and you're flashing the miui zip again(like updating maybe or something) only then check the disable dm verity option(so that stock mi recovery doesn't come back)...for other zips like magisk, gapps whatever no need to do anything just flash....
    1
    im using android 10 syberia project and wanted to go back stock rom, will it work the same way?

    Yes absolutely :) just make sure to wipe dalvic,cache,data,system,vendor...rest procedure is same
    1
    Hello
    Can I flash Global Stable 11.0.4.0 rom via orange fox recovery over India stable rom??
    What's the process
    Plz reply...
    Yes you can...in wipe select dalvic,cache,data,system, vendor...rest process is same. :)
    1
    Hello! I have Redmi Note 8 (simple, gingko, 4/64). Immediately after the purchase, I installed Indonesia software (for non-Google caller, call recorder, sms). I was extremely pleased ... until I upgraded it to 12.0.1, OTA, officially! Now the battery drops seeing with my eyes .. before it lasted 5-6 days, now 3, maximum 4. I would like to put back MIUI 11 that I had (with MiFlash, obviously). From what you know, is there a danger of brick ??? Is the operation possible? Note: the phone has the bootloader unlocked (otherwise I couldn't have made the switch from EU to Indonesia) Thanks in advance for any response!
    you can flash the recovery rom too without any issues.. If you want to flash via miFlash then yes you can do that too... however make sure not to lock the bootloader while flashing another region rom with miflash .. select "clean_all" and NOT "clean_all_and_lock". 🙂