[Guide] Flash MIUI OTA/Stock/Any MIUI based ROM from recovery without bricking device - Redmi Note 8 Guides, News, & Discussion

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.

im using android 10 syberia project and wanted to go back stock rom, will it work the same way?

aidenskcyu said:
im using android 10 syberia project and wanted to go back stock rom, will it work the same way?
Click to expand...
Click to collapse
Yes absolutely just make sure to wipe dalvic,cache,data,system,vendor...rest procedure is same

Hi,
do you think this procedure could work for willow (Redmi Note 8T) too?
I'm mainly concerned about OrangeFox package indicating ginkgo only...
Another question: when you suggest to backup data, you mean that everything (including installed apps and their settings) would be lost?
Thanks
Bye

how to decrypt

the_weird_aquarian said:
Yes absolutely just make sure to wipe dalvic,cache,data,system,vendor...rest procedure is same
Click to expand...
Click to collapse
thanks a lot!

aidenskcyu said:
thanks a lot!
Click to expand...
Click to collapse
Np :good:

imonshahed said:
how to decrypt
Click to expand...
Click to collapse
Mentioned in the post read it carefully
SbAgOoTs said:
Hi,
do you think this procedure could work for willow (Redmi Note 8T) too?
I'm mainly concerned about OrangeFox package indicating ginkgo only...
Another question: when you suggest to backup data, you mean that everything (including installed apps and their settings) would be lost?
Thanks
Bye
Click to expand...
Click to collapse
Well the only reason I didn't mention willow is I'm not sure if orangefox supports willow or not... although I think willow support was added after 10.1 stable version and it's the same file as of ginkgo....
Yes you need to backup your internal storage and every app as you will lose all data/apps/internal storage files.

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...

Isafurniture said:
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...
Click to expand...
Click to collapse
Yes you can...in wipe select dalvic,cache,data,system, vendor...rest process is same.

the_weird_aquarian said:
Yes you can...in wipe select dalvic,cache,data,system, vendor...rest process is same.
Click to expand...
Click to collapse
Thank you..

Isafurniture said:
Thank you..
Click to expand...
Click to collapse
Np??

1. Can I use this to flash Custom MIUI like eu, pro or custom MIUI step is different?
2. Do I need to follow this stock rom step if I already have a full backup of the ROM?

Dude,, u r guardian of this redmi note 8 forum.. thank you so much for

DailyRoutine said:
1. Can I use this to flash Custom MIUI like eu, pro or custom MIUI step is different?
2. Do I need to follow this stock rom step if I already have a full backup of the ROM?
Click to expand...
Click to collapse
1. Yes just wipe dalvic, cache,data,system,vendor...rest process is same.
2. If you're already on stock rom then whole process is same....if you're coming back to stock rom from custom rom then wipe dalvic, cache,data,system,vendor...rest process is same.
Mozar3lla said:
Dude,, u r guardian of this redmi note 8 forum.. thank you so much for
Click to expand...
Click to collapse
Just helping out others and sharing the knowledge... Thanks though.

Hello, i am on miui 11 eu, (thanks to you, great room honestly), i want to know if i can root with the EU ROM and still update when weekly update is come? or need to unistall the root first and then root?
Thanks

LuisElListo said:
Hello, i am on miui 11 eu, (thanks to you, great room honestly), i want to know if i can root with the EU ROM and still update when weekly update is come? or need to unistall the root first and then root?
Thanks
Click to expand...
Click to collapse
Yes you can root eu.. I'm using rooted eu without any issues....you will still receive updates, no need to uninstall root...but when you install the update you have to flash magisk zip again as after updating you will lose root...so after updating rom, flash magisk and everything will be back to normal.

Is that orangefox method same for encrypted version? I mean my data is encrypted and I'm okay with that but want to flash Orangefox also want MIUI ota/update... Do i need to follow the steps (formatting data/cach etc, flashing recovery miui for create sdcard/fox/ota folder) ?

Superraju said:
Is that orangefox method same for encrypted version? I mean my data is encrypted and I'm okay with that but want to flash Orangefox also want MIUI ota/update... Do i need to follow the steps (formatting data/cach etc, flashing recovery miui for create sdcard/fox/ota folder) ?
Click to expand...
Click to collapse
yes it'll also work in encrypted devices but under miui ota settings don't check disable encryption option so that you can still have an encrypted internal.. Yes you need to flash your current miui recovery rom once you flash orangefox. It's just a one time process for your current rom. Just wipe data,cache,dalvik nothing else.

the_weird_aquarian said:
yes it'll also work in encrypted devices but under miui ota settings don't check disable encryption option so that you can still have an encrypted internal.. Yes you need to flash your current miui recovery rom once you flash orangefox. It's just a one time process for your current rom. Just wipe data,cache,dalvik nothing else.
Click to expand...
Click to collapse
Thanks for your fast reply. The Fox/Ota now taking almost 5gb of internal storage. Can u pls help that...
1. Now if i flash Magisk, do i need to flash Universal DM-Verity and ForceEncrypt disabler zip? or OF will take care of it
2. if i want to flash others custom rom and after that change my mind and restore MIUI back, will ota still work from there? Or i need to repeat the whole process again?

Related

[ROM] OxygenOS Open Beta 9 (Nougat) Update and Installation!!

Hi everyone,
We appreciate everyone’s feedback from the OxygenOS Open Beta 8. With your help, we have optimized and improved several key areas.
The changes include:
Added Expanded Screenshots
Shelf Design Optimizations
General UI Optimizations
DPI Optimizations
Battery Performance Optimizations
Stability and Performance Optimizations
General bug fixes
Please visit the download page here:
http://downloads.oneplus.net/oneplus-3/oneplus_3_oxygenos_openbeta_9/
If you’ve already flashed a previous Open Beta build, you will receive this update via OTA. If you haven’t, you will need to flash this build by ADB sideload. Your data may transfer, but there is always a possibility of losing personal data, so be sure to backup all of your important data before flashing this build. As stated before, once you flash the Open Beta, you’ll continue getting Open Beta OTAs.
Please follow the link below for the UI/UX experience survey. We’d really appreciate a few minutes of your time, as it will help us make OxygenOS even better. One last thing: this is a limited program, so we may disable this download link once we receive enough feedback.
- Feedback on UI/UX: https://goo.gl/forms/hEqMPq9U9QNrxvhc2
Note: If you flash this Open Beta build, you’ll receive Open Beta OTAs (but not official OTAs). You’ll need to manually (clean) flash back to our official builds to continue receiving official OTAs. Rolling back to official OxygenOS versions require wiping data and cache.
Thank you for your patience and as always, we look forward to hearing your continued feedback in the bug reporting forum here: https://forums.oneplus.net/feedback/.
Thank you for helping us build a better OxygenOS.
Never settle.
Installation Methods
Before we start:This method is only for the OnePlus 3
Follow the steps correctly otherwise you may brick your device. I am not responsible for any damage to your device, please ensure that your device is at least 60% charged to prevent the accidental shutdown in-between the update process.
Downloads:
Beta 9 Full Zip Official Download
Compatible Stock Recovery
********************* For Stock Non Rooted Users with Stock Recovery *****************
1. Download the appropriate OTA/Full Zip from above link and place it in the root folder.
2. Navigate to Settings > System Updates > Settings Icon > Local Upgrade & Select the OTA File
3. Once selected system would prompt upgrade now
4. Select upgrade now and system would reboot in stock recovery and flash the OTA
5. The installer would itself flash the OTA and reboot the device.
The Device will reboot and your OnePlus 3 is now running on the latest OxygenOS firmware & OS.
PS: The first boot may take some time so keep calm and wait for it to boot.
* After flash is successful go back to recovery and a wipe of cache is recommended.
* If in any case flash is unsuccessful the system would prompt you to download the full 1.4GB zip. So download that and follow the same process as above.
************************ For Rooted Users with TWRP Recovery ************************
Download Beta 9 Full Zip
1. Download the Beta 9 Full Zip on your phone internal memory.
2. Download the Latest SuperSU SR5
4. Reboot To TWRP (Modified 28) & Take a Nandroid of your existing ROM
5. Go to Wipe > Advance Wipe > Select Dalvik & Cache & Swipe to Wipe
6. Install Menu > Select Beta 9 Rom Zip > Swipe to Flash
7. Wipe Dalvik & Cache
8. Flash SuperSU to maintain root
9. Reboot System and Enjoy the Beta 9 Update
* Do not flash Xposed as not compatible with 7.0 builds yet
If you come from a custom rom, i recommend a clean flash and make sure you use the modified TWRP 3.0.2-1.28 as the official one is incompatible with the CB firmware yet.
PS: The first boot may take some time so keep calm and wait for it to boot and the system would boot twice due to flash of supersu so keep calm
PS: Rooted users may either flash the full Beta 9 Zip or they need to flash the previous full zip beta 8 first to overwrite system partition followed by the relevant Beta 9 OTA zip for a successful flash else just the OTA flash would fail with error 7 in TWRP
I was on TWRP (modded) and rooted. Installed the update (OTA) and now my phone just reboots to TWRP no matter what I do (I have even made a factory reset and reinstalled Beta8)
salomaoa said:
I was on TWRP (modded) and rooted. Installed the update (OTA) and now my phone just reboots to TWRP no matter what I do (I have even made a factory reset and reinstalled Beta8)
Click to expand...
Click to collapse
You can't install the ota update on TWRP recovery. You need the stock one.
Try reflashing TWRP recovery via fastboot and then flash open beta 9(not the ota)
salomaoa said:
I was on TWRP (modded) and rooted. Installed the update (OTA) and now my phone just reboots to TWRP no matter what I do (I have even made a factory reset and reinstalled Beta8)
Click to expand...
Click to collapse
Download the recovery at the bottom of the page.
http://downloads.oneplus.net/oneplus-3/oneplus_3_oxygenos_openbeta_9/
Copy it onto your phone with the this Open Beta 9 package.
Start up TWRP, format /dalvik, /cache, /system, /data.
Flash the Open Beta and clean the caches if asked.
Flash the original recovery from TWRP as recovery image, and restart your phone afterwards.
Your phone may boot into the new recovery, then show "Update failed", then do another restart, but after that mine was working.
Does all partitions support f2fs?
smk513 said:
Does all partitions support f2fs?
Click to expand...
Click to collapse
AFAIK, only data partition is f2fs
Sun90 said:
AFAIK, only data partition is f2fs
Click to expand...
Click to collapse
I wonder if the new version is possible...
Thank you for your response.
flashing with twrp will result in recovery booting loop. after downloading ota simply reboot to recovery, download oneolusrecovery from ob9 page. transfer it to phone. select install image in twrp, select reocover, flash as recovery and reboot to recovery. itll show updating.. takes about 20mins
Will modified twrp also not work?
Really? The modified twrp doesnt work? I,ve read the thread in oneplus forum and some are saying it worked for them. :/
Edit: anyways, im on modified twrp, rooted, beta 8, can i dirty flash beta 9?
jfodra said:
Really? The modified twrp doesnt work? I,ve read the thread in oneplus forum and some are saying it worked for them. :/
Click to expand...
Click to collapse
It works. I flashed the full zip with it.
Edit:
Yes you can dirty flash. Everything is working as expected.
jfodra said:
Really? The modified twrp doesnt work? I,ve read the thread in oneplus forum and some are saying it worked for them. :/
Click to expand...
Click to collapse
It will work with full zips !! It won't work it ota updates
As simple as this
Dirty flashed over OB8, everything working fine!
Edit:
Using Modified TWRP
Dirty flashed over OB8, so far no issue's.
Did flash TWRP img after update in TWRP (just to be sure), first boot took a while tho.
Anyone tried supersu?
I have this from yesterday. I was on 3.2.8 from OnePlus site, dated 12.05.16.
Clean flash with TWRP 3.0.2-1.28, thanks to eng_stk. Flash the rom & SuperSU SR5 (if you want root). Refalsh recovery 3.0.2-1.28. Reboot to recovery. If it not works reflash recovery.
Then reboot to system.
I did not flash any mods. All it's ok.
t181 said:
It works. I flashed the full zip with it.
Edit:
Yes you can dirty flash. Everything is working as expected.
Click to expand...
Click to collapse
Oh okay thanks. So is it the same as before? Flash beta 9, flash twrp again, then flash sr5 then reboot?
Edit: Nvrmind, flashed it already and d*mn. It does feel smoother than beta 8. ???
Can it be flashed over modded Open Beta 8 ?
M3ntoR said:
Can it be flashed over modded Open Beta 8 ?
Click to expand...
Click to collapse
Yep. Just make sure to have the full update and not the OTA one. Also, just in case make sure you have the TWRP img and super-su on your phone's memory to be able to flash them again
Any mirror for this? Full zip is downloading really slow and I've already stucked on twrp after OTA Need to dirty flash the full zip, but it is going to dowload around Christmas with that speed...

Magisk 19.1 KILLED my Note 7 4/128 Gb

Stock rom, bought Note 7 4/128 Gb 2 weeks ago and waited till yesterday to unlock bootloader. Without using the phone.
Finally... Flashed TWRP but understood that with stock rom, every time I reboot to system, stock recovery replaces my TWRP.
So... Today I've flashed MAGISK 19.1 and yeah, TWRP remains every time... But...
EVERY TIME I REBOOT INTO SYSTEM, PHONE REQUIRES 4 MINUTES !!!! It stays on Redmi logo, with sign "Unlocked" in the bottom of the screen for more than 3 minutes... Damn And now? What to do?
Download a fastboot flash file for redmi note 7 and flash it via miflash your problem should be fixed
but your bootloader will be locked again
and twrp will be gone
@engloa wrong category
anikbarai123 said:
Download a fastboot flash file for redmi note 7 and flash it via miflash your problem should be fixed
but your bootloader will be locked again
and twrp will be gone
Click to expand...
Click to collapse
R u joking man ?! For what? For waiting other 15 or 30 days in order to unlock again the bootloader? And try again to root this damned phone obtaining this same result? Rather I'll put it in the trash and buy another one, maybe a decent phone this time.
zhad0ws said:
@engloa wrong category
Click to expand...
Click to collapse
Sorry, u've right. I've reported my tread in order to let moderators move it. :good:
PYCON said:
Stock rom, bought Note 7 4/128 Gb 2 weeks ago and waited till yesterday to unlock bootloader. Without using the phone.
Finally... Flashed TWRP but understood that with stock rom, every time I reboot to system, stock recovery replaces my TWRP.
So... Today I've flashed MAGISK 19.1 and yeah, TWRP remains every time... But...
EVERY TIME I REBOOT INTO SYSTEM, PHONE REQUIRES 4 MINUTES !!!! It stays on Redmi logo, with sign "Unlocked" in the bottom of the screen for more than 3 minutes... Damn And now? What to do?
Click to expand...
Click to collapse
Question: do you have a bootloop? Or does your phone simply need 4 minutes to boot up? If so where is the problem?
EZ solution: flash xiaomi.eu rom (which is way better) or flash another AOSP project.
If you really want to stay on stockrom: take the stockrom.zip -> remove the "verification.zip (or whatever it is called)" within the stockrom.zip and flash it via twrp.
Also: you should be able to flash the stockrom fastboot file without locking your bootloader again (since this only happens if you execute respective batch file).
I have magisk 19.1 installed and nothing is bricked, your thread is very misleading. Modding your device to hell and back isn't that difficult! ^^
Edit: when I flashed twrp first my device got encrypted (with no password setup). Everything can be fixed after a while.
MarvinMe said:
Question: do you have a bootloop? Or does your phone simply need 4 minutes to boot up? If so where is the problem?
EZ solution: flash xiaomi.eu rom (which is way better) or flash another AOSP project.
If you really want to stay on stockrom: take the stockrom.zip -> remove the "verification.zip (or whatever it is called)" within the stockrom.zip and flash it via twrp.
Also: you should be able to flash the stockrom fastboot file without locking your bootloader again (since this only happens if you execute respective batch file).
I have magisk 19.1 installed and nothing is bricked, your thread is very misleading. Modding your device to hell and back isn't that difficult! ^^
Edit: when I flashed twrp first my device got encrypted (with no password setup). Everything can be fixed after a while.
Click to expand...
Click to collapse
Question: do you have a bootloop? => NO
Or does your phone simply need 4 minutes to boot up? => YES
If so where is the problem? => these 4 minutes to boot up this phone... that's the problem, I think it's sufficient no?
It doesn't matter what rom I'm using but I need 48 MPixel working so, I suppose, or Global or EU. Not AOSP based. It's correct?
EDIT : just to be more specific... Stock camera app doesn't open anymore after flashing Magisk I get simply a black screen.
PYCON said:
Question: do you have a bootloop? => NO
Or does your phone simply need 4 minutes to boot up? => YES
If so where is the problem? => these 4 minutes to boot up this phone... that's the problem, I think it's sufficient no?
It doesn't matter what rom I'm using but I need 48 MPixel working so, I suppose, or Global or EU. Not AOSP based. It's correct?
EDIT : just to be more specific... Stock camera app doesn't open anymore after flashing Magisk I get simply a black screen.
Click to expand...
Click to collapse
Hi, thanks for the quick reply.
I have a very special tincture for you (except your really like it between scylla and charybdis):
Rom
Debloating - you can delete pretty much everything
#Feel free to flash magisk afterwards
#In case you get and error while completing the setup wizzard: just restart it without having wifi enabled and you are good.
#Best Google camera mod (everything works + focus tracking n'stuff)
It's worth it: I've been on the Stock rom side for years but I think MIUI is superior (GCAM > MIUI cam but doesn't matter) "and all of it just works :fingers-crossed:"
Edit: all of your data will be lost & you have to do the setup of your device again but trust me: it'll be so worth it ^^ just amazing
Follow the instructions on xiaomi.eu (<ROM> link) carefully and you are good.
MarvinMe said:
Hi, thanks for the quick reply.
I have a very special tincture for you (except your really like it between scylla and charybdis):
Rom
Debloating - you can delete pretty much everything
#Feel free to flash magisk afterwards
#In case you get and error while completing the setup wizzard: just restart it without having wifi enabled and you are good.
#Best Google camera mod (everything works + focus tracking n'stuff)
It's worth it: I've been on the Stock rom side for years but I think MIUI is superior (GCAM > MIUI cam but doesn't matter) "and all of it just works :fingers-crossed:"
Edit: all of your data will be lost & you have to do the setup of your device again but trust me: it'll be so worth it ^^ just amazing
Follow the instructions on xiaomi.eu (<ROM> link) carefully and you are good.
Click to expand...
Click to collapse
I'll try this EU rom, hope it'll work fine again Thx for the moment man.
PYCON said:
I'll try this EU rom, hope it'll work fine again Thx for the moment man.
Click to expand...
Click to collapse
In case you need help feel free contact me (DM) ^^ always glad to help :highfive:
Cheers!
https://forum.xda-developers.com/re...oot-redmi-note-7-one-click-root-tool-t3925785
or you can try this. installed twrp and magisk v19 without hassle.
note that everything gets wiped after, but you are ok since you said you didn't use your phone yet.
Did you disable verified boot by flashing dmverity zip? I think that could be causing the problem.
mtencarguez said:
https://forum.xda-developers.com/re...oot-redmi-note-7-one-click-root-tool-t3925785
or you can try this. installed twrp and magisk v19 without hassle.
note that everything gets wiped after, but you are ok since you said you didn't use your phone yet.
Click to expand...
Click to collapse
Thx but why use Rooter? Magisk should do this job...
agenius5 said:
Did you disable verified boot by flashing dmverity zip? I think that could be causing the problem.
Click to expand...
Click to collapse
No! Really? Where's written this step?! Did u try this? In the tread of unlocking bootloader, TWRP and so on, this step is not shown or I haven't seen
PYCON said:
Thx but why use Rooter? Magisk should do this job...
it's a 1-click rooter. if you want root use this. you don't have to do anything but plug your phone to your computer, go to bootloader and click. it installs twrp 3.3 and magisk v19. hassle free, that's what it is.
Click to expand...
Click to collapse
mtencarguez said:
it's a 1-click rooter. if you want root use this. you don't have to do anything but plug your phone to your computer, go to bootloader and click. it installs twrp 3.3 and magisk v19. hassle free, that's what it is.
Click to expand...
Click to collapse
Ok, first I'll try with Xiaomi EU rom but then I'll try this too.
I hope that there's a way to unbrick the phone if something goes wrong
No, I have to wait 2 more days. I used to flash it with redmi 5a. I don't know why this step is not there with rn7.
Just some little info, before flashing EU.
1) EU tutorial reports to wipe Dalvik / Cache / Data but NOT System before flashing rom... Really?! So strange
2) If Magisk involves issues, maybe it's possible to use SuperSU instead. Or not? It's too old?
3) If after flashing EU rom something goes wrong, my Bootloader remains unlocked? Or not? Just to be sure.
4) If after flashing EU rom something goes wrong, my TWRP will remain? In order to try other ways.
5) If after flashing EU rom something goes wrong, it's possible to restore a Nandroid backup with TWRP? All partitions? Or I've to skip some partition?
PYCON said:
Just some little info, before flashing EU.
1) EU tutorial reports to wipe Dalvik / Cache / Data but NOT System before flashing rom... Really?! So strange
2) If Magisk involves issues, maybe it's possible to use SuperSU instead. Or not? It's too old?
3) If after flashing EU rom something goes wrong, my Bootloader remains unlocked? Or not? Just to be sure.
4) If after flashing EU rom something goes wrong, my TWRP will remain? In order to try other ways.
5) If after flashing EU rom something goes wrong, it's possible to restore a Nandroid backup with TWRP? All partitions? Or I've to skip some partition?
Click to expand...
Click to collapse
1) it's not strange at all, as xiaomi.eu ROM is a system partition image. So no need to wipe a partition that will be overwritten seconds later.
2) no doubt your issue happened after you flashed magisk, as you stated it, but magisk is most probably not the main cause of the issue. It's the safest way to get root, SuperSU should not be used/trusted anymore as it is not maitained by chainfire anymore (iirc he sold his app long ago to some company)
I'm currently using my rn7 4/64 xiaomi.eu + magisk 19.1 with no issue nor boot delay.
Before that I had global eeu stock rom.
Xiaomi.eu is based on Xiaomi stock, but is not provided by Xiaomi, so it's actually more a custom rom than stock, so...
3) bootloader will stay unlocked
4) TWRP will stay there
5) I don't know, I did not do it yet. I would not overwrite any partition other than system, data and cache without knowing exactly what I'm doing
Well, firstly... Thank u all :good:
It seems I solved. I've followed these steps:
* boot into TWRP
* from TWRP, Format Data
* reboot into TWRP
* from TWRP, Full Wipe ( Dalvik / Cache / Data / System )
* copy Xiaomi EU ZIP into Internal Memory ( TWRP MTP ) => Release 9.4.25
* copy Magisk into Internal Memory ( TWRP MTP ) => Release 19.1
* from TWRP, flash Xiaomi EU ZIP
* reboot System
* configure initial setup wizard ( language, country, etc )
* reboot into TWRP
* from TWRP, flash Magisk ZIP
* from TWRP, Wipe ( Dalvik / Cache )
That's all. System boots in few seconds, as normal :highfive:
* ROOT => OK
* TWRP => remains (OK)
* BOOTLOADER => remains unlocked (OK)
PYCON said:
Well, firstly... Thank u all :good:
It seems I solved. I've followed these steps:
* boot into TWRP
* from TWRP, Format Data
* reboot into TWRP
* from TWRP, Full Wipe ( Dalvik / Cache / Data / System )
* copy Xiaomi EU ZIP into Internal Memory ( TWRP MTP ) => Release 9.4.25
* copy Magisk into Internal Memory ( TWRP MTP ) => Release 19.1
* from TWRP, flash Xiaomi EU ZIP
* reboot System
* configure initial setup wizard ( language, country, etc )
* reboot into TWRP
* from TWRP, flash Magisk ZIP
* from TWRP, Wipe ( Dalvik / Cache )
That's all. System boots in few seconds, as normal :highfive:
* ROOT => OK
* TWRP => remains (OK)
* BOOTLOADER => remains unlocked (OK)
Click to expand...
Click to collapse
can you give me the link of "Xiaomi EU ZIP " file you used, i can't find that !?
aka70 said:
can you give me the link of "Xiaomi EU ZIP " file you used, i can't find that !?
Click to expand...
Click to collapse
Yes, I think it's possible to post links of Xiaomi EU here.
10.4 Release is 9.4.25 => https://xiaomi.eu/community/threads/9-4-25-26.50275/
Older releases, like 10.3 => https://xiaomi.eu/community/threads/miui-10-0-10-1-10-2-10-3-stable-release.47170/

Complete setup of Lineage OS

Since in my last post I made a complete mess out of my first time trying to root my K20 and install lineage I wanted to my make a separate post so that I can list all the steps I need to take to correctly setup my phone how I want it.
What I actually want
A rooted device
Lineage OS
Minimal excess files (A clean Install)
Current Steps
Unlock and flash recovery
Backup
Format Data! (It's important if you come from Miui)
Install Q Firmware + vendor
Install LineageOS followed by gapps
Reboot into system and setup device.
Reboot into recovery and flash magisk
Profit???
Feel free to tell me how stupid I am and what I need to add to the list or steps I should take to make this process better.
I also dont know if its possible to get recovery and rom on android 10 versions.
Thanks
Did these steps not work?
Sent from my Redmi K20 Pro using Tapatalk
BJack0 said:
Since in my last post I made a complete mess out of my first time trying to root my K20 and install lineage I wanted to my make a separate post so that I can list all the steps I need to take to correctly setup my phone how I want it.
What I actually want
A rooted device
Lineage OS
Minimal excess files (A clean Install)
Current Steps
Flash a custom recovery
Create a backup
Root???
Install LineageOS
Profit???
Feel free to tell me how stupid I am and what I need to add to the list or steps I should take to make this process better.
Thanks
Click to expand...
Click to collapse
1. Unlock and flash recovery
2. Backup
3. Format Data! (It's important if you come from Miui)
4. Install Q Firmware + vendor
5. Install LineageOS followed by gapps
6. Reboot into system and setup device.
7. Reboot into recovery and flash magisk
You could also check LOS thread: Here and here
Remember:
Chinese firmware: Widevine L3 and NFC support
Indian firmware: Widevine L1 but no NFC support
ishaqtkr said:
Did these steps not work?
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
They may work as it but I was just wondering if anyone could go into more detail or if there was a better approach and from what Kollachi said there clearly is a better way that what I said.
Since I'm in stock ROM and haven't ever flashed AOSP ROM in this phone I'll just back off lol
Sent from my Redmi K20 Pro using Tapatalk
Kollachi said:
1. Unlock and flash recovery
2. Backup
3. Format Data! (It's important if you come from Miui)
4. Install Q Firmware + vendor
5. Install LineageOS followed by gapps
6. Reboot into system and setup device.
7. Reboot into recovery and flash magisk
Click to expand...
Click to collapse
I like the details steps but I have a few questions.
(Unlock and flash recovery) From what I can tell there are two recovery's Orange fox and TWRP
(Format data) Just format data or are there other sections I should format/wipe
(Install Q Firmware + Vendor) I have no idea what Q firmware is or what vendor you are referring to
(Install Lineage + gapps) Is there a specific version from the Mi 9T pro since the official site doesn't list it
Any of the two recoveries will work. Q firmware means Android Q. Wile data/cache dalvik that's it. Regarding firmware, there's a clear topic of Lineage OS in K20 Pro forum which is still in unofficially state
Sent from my Redmi K20 Pro using Tapatalk
BJack0 said:
I like the details steps but I have a few questions.
(Unlock and flash recovery) From what I can tell there are two recovery's Orange fox and TWRP
(Format data) Just format data or are there other sections I should format/wipe
(Install Q Firmware + Vendor) I have no idea what Q firmware is or what vendor you are referring to
(Install Lineage + gapps) Is there a specific version from the Mi 9T pro since the official site doesn't list it
Click to expand...
Click to collapse
1. You can take what you want. Orangefox is based on TWRP.
2. Format data is needed if you come from miui. If you did it you are good to go. But it wouldn't be false to wipe system, dalvic, cache
3.https://downloads.akhilnarang.me/MIUI/raphael/ --> Take 10.4.6.0 or 10.4.8.0 (Android 10 = Q)
4. No there is no specific version.
BJack0 said:
I like the details steps but I have a few questions.
(Unlock and flash recovery) From what I can tell there are two recovery's Orange fox and TWRP
(Format data) Just format data or are there other sections I should format/wipe
(Install Q Firmware + Vendor) I have no idea what Q firmware is or what vendor you are referring to
(Install Lineage + gapps) Is there a specific version from the Mi 9T pro since the official site doesn't list it
Click to expand...
Click to collapse
I would recommend the latest TWRP from here
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
The dev is an official TWRP dev, so this version, or something very close to this, is likely to become official in the future.
OrangeFox is a heavily modified TWRP and has a lot of added functionality specific to MIUI. If you wanted to stay on stock MIUI, but debloat and have root, etc. then OF would be the better choice, as it has functionality that lets it play nicely with MIUI (it can remain installed when OTA updates are installed)
As someone new to flashing on Android, I would suggest downloading a 10.4.x fastboot ROM from the site I pointed to in your other post, then follow the same procedure to flash the ROM.
Make your choice based on Kollachi's info and what's important to you (HD Netflix - choose Indian, or a working NFC - choose Chinese)
However you MUST change the flash option to 'clean all'.
At this point you've got a nice squeaky clean starting point.
Boot into the ROM at least once, though it's not necessary to go through all the setup.
After that follow Kollachi's steps but you can now ignore the step to flash vendor and firmware as it's all part of the fastboot ROM already flashed.
Wipe cache and dalvik, format data.
There is no official LOS for this phone yet. Hopefully it will go official in the future.
For now just get the current Android 10 based LOS from here.
https://forum.xda-developers.com/k20-pro/development/rom-lineageos-17-0-t3976469/post80406191
Robbo.5000 said:
I would recommend the latest TWRP from here
The dev is an official TWRP dev, so this version, or something very close to this, is likely to become official in the future.
OrangeFox is a heavily modified TWRP and has a lot of added functionality specific to MIUI. If you wanted to stay on stock MIUI, but debloat and have root, etc. then OF would be the better choice, as it has functionality that lets it play nicely with MIUI (it can remain installed when OTA updates are installed)
As someone new to flashing on Android, I would suggest downloading a 10.4.x fastboot ROM from the site I pointed to in your other post, then follow the same procedure to flash the ROM.
Make your choice based on Kollachi's info and what's important to you (HD Netflix - choose Indian, or a working NFC - choose Chinese)
However you MUST change the flash option to 'clean all'.
At this point you've got a nice squeaky clean starting point.
Boot into the ROM at least once, though it's not necessary to go through all the setup.
After that follow Kollachi's steps but you can now ignore the step to flash vendor and firmware as it's all part of the fastboot ROM already flashed.
Wipe cache and dalvik, format data.
There is no official LOS for this phone yet. Hopefully it will go official in the future.
For now just get the current Android 10 based LOS from here.
Click to expand...
Click to collapse
When ever I think I have the process memories and I follow the steps on my screen I still somehow **** this up and I cant understand how.
My current steps include
Flash the fastboot with the ROM that you linked me in my first post
Flash the recovery with TWRP (Every time I have then tried going back into TWRP is failed to work and prompted the original MIUI recovery)
Install the TWRP zip from custom recovery to try and fix the issue above (Only had this work once on orangefox and then never had success again)
So now I try to just flash the recovery and boot to it using CMD and it works fine
Move the lineageOS files from my PC to the phone SDCard
If I wipe data and the caches as suggested then the lineageOS zip is now go and I am back to flashing the fastboot ROM to restart the process
I know this might seem like im either stupid or just not getting it but could you or anyone else please make a bullet pointed list with links to what I have to download in order to actually achieve this since I cant do anything correctly even when trying to follow the steps.
(Im going to sleep since I have been trying to do this for hours now and I will check reply's in the morning.
Thanks for the help so far EVERYONE
BJack0 said:
When ever I think I have the process memories and I follow the steps on my screen I still somehow **** this up and I cant understand how.
My current steps include
Flash the fastboot with the ROM that you linked me in my first post
Flash the recovery with TWRP (Every time I have then tried going back into TWRP is failed to work and prompted the original MIUI recovery)
Install the TWRP zip from custom recovery to try and fix the issue above (Only had this work once on orangefox and then never had success again)
So now I try to just flash the recovery and boot to it using CMD and it works fine
Move the lineageOS files from my PC to the phone SDCard
If I wipe data and the caches as suggested then the lineageOS zip is now go and I am back to flashing the fastboot ROM to restart the process
I know this might seem like im either stupid or just not getting it but could you or anyone else please make a bullet pointed list with links to what I have to download in order to actually achieve this since I cant do anything correctly even when trying to follow the steps.
(Im going to sleep since I have been trying to do this for hours now and I will check reply's in the morning.
Thanks for the help so far EVERYONE
Click to expand...
Click to collapse
I just told you what I have done and I'm running it so far without issues.
Robbo just said you should flash the whole Chinese or indian rom but I don't like his steps because:
1. File is much bigger
2. MiFlash is just meh
3. If you forgot to change the flash process you are bricked if you don't take the correct firmware for your phone.
Default option in Miflash is set to "Clean all and lock". Every time you use it, you will need to change it into "clean all" or something other.
Kollachi said:
I just told you what I have done and I'm running it so far without issues.
Robbo just said you should flash the whole Chinese or indian rom but I don't like his steps because:
1. File is much bigger
2. MiFlash is just meh
3. If you forgot to change the flash process you are bricked if you don't take the correct firmware for your phone.
Default option in Miflash is set to "Clean all and lock". Every time you use it, you will need to change it into "clean all" or something other.
Click to expand...
Click to collapse
Yes flashing the whole fastboot ROM does add the risk, if you forget to change the flash option, but you are guaranteed a clean slate and so less likely to have any niggling issues that nobody else has. I would bet large sums of money that many of the issues you see on here, where only one person has some problem and everyone else is fine, would be solved by fastboot flashing MIUI before installing the ROM of choice.
If you know what you're doing and know when you'll be OK with what you've got and know when it's best to start clean, then going with the vendor and firmware is easier.
But if your unsure and new to flashing on Android phones, I will always suggest go with the overkill and know you've got the clean slate to start with.
---------- Post added at 10:56 AM ---------- Previous post was at 10:36 AM ----------
BJack0 said:
When ever I think I have the process memories and I follow the steps on my screen I still somehow **** this up and I cant understand how.
My current steps include
Flash the fastboot with the ROM that you linked me in my first post
Flash the recovery with TWRP (Every time I have then tried going back into TWRP is failed to work and prompted the original MIUI recovery)
Install the TWRP zip from custom recovery to try and fix the issue above (Only had this work once on orangefox and then never had success again)
So now I try to just flash the recovery and boot to it using CMD and it works fine
Move the lineageOS files from my PC to the phone SDCard
If I wipe data and the caches as suggested then the lineageOS zip is now go and I am back to flashing the fastboot ROM to restart the process
I know this might seem like im either stupid or just not getting it but could you or anyone else please make a bullet pointed list with links to what I have to download in order to actually achieve this since I cant do anything correctly even when trying to follow the steps.
(Im going to sleep since I have been trying to do this for hours now and I will check reply's in the morning.
Thanks for the help so far EVERYONE
Click to expand...
Click to collapse
It's sounds like the main issue is stock recovery is being restored. This is something that MIUI will do when it boots up.
When you first install TWRP you cannot boot into MIUI before booting to TWRP as you instantly lose TWRP. So you need to boot into TWRP first in order to do something to prevent it being overwritten.
Options are
1
Code:
fastboot boot TWRP.img
2 Use the button combo whilst still in fastboot - power and vol+, hold both until the phone vibrates and the initial logo appears.
Now to keep TWRP you need to either flash a custom ROM, flash Magisk or flash the dm-verity script.
In your case you want to flash LOS, so now you've booted into TWRP go ahead and continue with the steps given.
Also, wait until after you've formatted data before copying everything over. You can access the phone as an MTP device when in TWRP, so you'll be able to connect it to a PC and drag everything across, or you can stick everything on a USB OTG pen, if you have one, TWRP can read data from them too.
It's sounds like the main issue is stock recovery is being restored. This is something that MIUI will do when it boots up.
When you first install TWRP you cannot boot into MIUI before booting to TWRP as you instantly lose TWRP. So you need to boot into TWRP first in order to do something to prevent it being overwritten.
Options are
1
Code:
fastboot boot TWRP.img
2 Use the button combo whilst still in fastboot - power and vol+, hold both until the phone vibrates and the initial logo appears.
Now to keep TWRP you need to either flash a custom ROM, flash Magisk or flash the dm-verity script.
In your case you want to flash LOS, so now you've booted into TWRP go ahead and continue with the steps given.
Also, wait until after you've formatted data before copying everything over. You can access the phone as an MTP device when in TWRP, so you'll be able to connect it to a PC and drag everything across, or you can stick everything on a USB OTG pen, if you have one, TWRP can read data from them too.
Click to expand...
Click to collapse
The exact problem I have is that I cant transfer any files to the device after formatting the data. I follow the steps correctly and I get into TWRP successfully and then everyone has told me to format the data then install lineage but I cant install the OS if formatting the data removes it.
Get device into fastboot
Flash revocery with TWRP
power the device off
hold volume up and power
boot into custom recovery
format data
move lineageOS onto my device
install lineageOS
reboot
done.
This is the list of exact actions I am doing with no results is there something I am missing or something that is in the wrong order.
BJack0 said:
The exact problem I have is that I cant transfer any files to the device after formatting the data. I follow the steps correctly and I get into TWRP successfully and then everyone has told me to format the data then install lineage but I cant install the OS if formatting the data removes it.
Get device into fastboot
Flash revocery with TWRP
power the device off
hold volume up and power
boot into custom recovery
format data
move lineageOS onto my device
install lineageOS
reboot
done.
This is the list of exact actions I am doing with no results is there something I am missing or something that is in the wrong order.
Click to expand...
Click to collapse
You connect your phone to computer while in recovery to transfer the OS zip
Sent from my Redmi K20 Pro using Tapatalk
BJack0 said:
The exact problem I have is that I cant transfer any files to the device after formatting the data. I follow the steps correctly and I get into TWRP successfully and then everyone has told me to format the data then install lineage but I cant install the OS if formatting the data removes it.
Get device into fastboot
Flash revocery with TWRP
power the device off
hold volume up and power
boot into custom recovery
format data
move lineageOS onto my device
install lineageOS
reboot
done.
This is the list of exact actions I am doing with no results is there something I am missing or something that is in the wrong order.
Click to expand...
Click to collapse
After format data, reboot your device into recovery again and transfer LOS, gapps and all files you need.
Format data kills the storage.
I always used to reboot from TWRP back in to TWRP after formatting data, but I've recently seen someone saying that they just unmount data then remount it again. I haven't tried it myself but it certainly makes sense and would be quicker too.
Robbo.5000 said:
I always used to reboot from TWRP back in to TWRP after formatting data, but I've recently seen someone saying that they just unmount data then remount it again. I haven't tried it myself but it certainly makes sense and would be quicker too.
Click to expand...
Click to collapse
Yes I did that and it worked, unmounting and remounting helps detect the storage in PC
Sent from my Redmi K20 Pro using Tapatalk
Robbo.5000 said:
I always used to reboot from TWRP back in to TWRP after formatting data, but I've recently seen someone saying that they just unmount data then remount it again. I haven't tried it myself but it certainly makes sense and would be quicker too.
Click to expand...
Click to collapse
Yes that works. Tried it myself but prefer to reboot into recovery again.:laugh:
Finally Successful
After a long post I have finally finished the process successfully. This was pretty educational for me since I didn't understand any of this at the start I would like to thank everyone who reply's and all the information that you have provided.
need help guys, i stuck in bootloop.
- fastboot rom global china V10.3.17.0 PFKCNXM
- fastboot twrp 3.3.1
- format data
- flash vendor image cn 10.4.6.0
- wipe cache/dalvik
- flash lineage os
- flash gapps nano
- reboot
- stuck bootloop

custom rom flash problem

Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks
Masoud.Ser said:
Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks
Click to expand...
Click to collapse
Format the data partition in TWRP. You need to do this when installing over MIUI.
Robbo.5000 said:
Format the data partition in TWRP. You need to do this when installing over MIUI.
Click to expand...
Click to collapse
thanks
but after Format the data partition and Wipe cache and dakvik and mount and unmount the data partition and reboot and flash rom
and reboot to system my phone gets rebooted to recovery again
Masoud.Ser said:
thanks
but after Format the data partition and Wipe cache and dakvik and mount and unmount the data partition and reboot and flash rom
and reboot to system my phone gets rebooted to recovery again
Click to expand...
Click to collapse
Are you booting into MIUI at least once after flashing it, before flashing anything else?
I've stopped doing the mount/unmount. I now always reboot back into TWRP after formatting data, seems more reliable.
In TWRP do a factory reset, then format data, then reboot back into TWRP.
After this install the ROM you want
Robbo.5000 said:
Are you booting into MIUI at least once after flashing it, before flashing anything else?
I've stopped doing the mount/unmount. I now always reboot back into TWRP after formatting data, seems more reliable.
In TWRP do a factory reset, then format data, then reboot back into TWRP.
After this install the ROM you want
Click to expand...
Click to collapse
yes booting into MIUI at least once after flashing it
after wipe and flash rom and reboot
phone into twrp again and also internal storage format auto and am cant use storage and must again flash miui rom with miflash for problem storage
Masoud.Ser said:
yes booting into MIUI at least once after flashing it
after wipe and flash rom and reboot
phone into twrp again and also internal storage format auto and am cant use storage and must again flash miui rom with miflash for problem storage
Click to expand...
Click to collapse
Can you provide all the steps you are doing. I can't see any reason why it's not working.
Robbo.5000 said:
Can you provide all the steps you are doing. I can't see any reason why it's not working.
Click to expand...
Click to collapse
1.flash miui 11.0.3 with miflash and boot...no set setup...
2. flash twrp 3 with fastboot and reboot to twrp
3.wipe cache and dakvik
4. wipe data
5.reboot to twrp
6.flash custom rom without error
but after reboot phone again into twrp and no load rom also cant use storage and write and copy file on storage ...
i have tried Pixel experience - Havoc -Evolution X....
Masoud.Ser said:
1.flash miui 11.0.3 with miflash and boot...no set setup...
2. flash twrp 3 with fastboot and reboot to twrp
3.wipe cache and dakvik
4. wipe data
5.reboot to twrp
6.flash custom rom without error
but after reboot phone again into twrp and no load rom also cant use storage and write and copy file on storage ...
i have tried Pixel experience - Havoc -Evolution X....
Click to expand...
Click to collapse
Step 4 needs to be format data, not wipe data, you have to type 'yes' to confirm when you do it.
Robbo.5000 said:
Step 4 needs to be format data, not wipe data, you have to type 'yes' to confirm when you do it.
Click to expand...
Click to collapse
thanks
work good.
I'm new entered the Xiaomi phone discussion
a few short questions
....................
1-Is it necessary to format data for flash in each time?
2-even need to flash miui with miflah and boot before flash custom rom in each time?
and do need to flash vendor global my phone before flash custom roms?
Masoud.Ser said:
thanks
work good.
I'm new entered the Xiaomi phone discussion
a few short questions
....................
1-Is it necessary to format data for flash in each time?
2-even need to flash miui with miflah and boot before flash custom rom in each time?
and do need to flash vendor global my phone before flash custom roms?
Click to expand...
Click to collapse
1 No
2 No
If you want to flash something else, remove lockscreen security first before flashing. This should allow you to dirty flash an update, or clean flash a new ROM, without problems. You only need to format data when flashing over MIUI.
If you get into problems and you cannot successfully get a custom ROM working, this is when you need to flash MIUI first.
You only need to flash vendor/firmware files when the custom ROM recommends/requires a version that is different to what you currently have.
Masoud.Ser said:
Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks[/QUOTE
Which model is yours indian version or Chinese ?
Click to expand...
Click to collapse
vicky#kick said:
Masoud.Ser said:
Am currently on MIUI 11.0.3 flashed with miflash
when i flash a custom rom, my phone gets rebooted to recovery
before flash wipe cache and dakvik and data and system...(the problem persists without and with wipes)
i have tried Pixel experience - Havoc -Evolution X....
also tried flashing global vendor before flash rom, but it also doesn't work.
Recovery is TWRP latest version, have also used orange fox recovery
Bootloader unlocking
Any solutions for this problem?
thanks[/QUOTE
Which model is yours indian version or Chinese ?
Click to expand...
Click to collapse
global
Click to expand...
Click to collapse
I am on k20 pro and trying to flash mortal os rc 14 but after flashing it properly it always stucks in bootloop...
1. Clean all the data partitions except internal storage
2. Flashing latest vendor for MIUI
3. Flashing mortal os rc 14 zip file
4. Flashing DFE
5. Rebooting and get stucks in bootloop
Help me what can i do..
aniketkumarak said:
I am on k20 pro and trying to flash mortal os rc 14 but after flashing it properly it always stucks in bootloop...
1. Clean all the data partitions except internal storage
2. Flashing latest vendor for MIUI
3. Flashing mortal os rc 14 zip file
4. Flashing DFE
5. Rebooting and get stucks in bootloop
Help me what can i do..
Click to expand...
Click to collapse
The emoji's screwed up my reply. Try again.
1. Next time create a new post, don't resurrect a vaguely similar old post.
2. Restore MIUI with a fastboot ROM and try again. Use my guide here to help you install the ROM of choice.
https://forum.xda-developers.com/k20-pro/how-to/simple-guide-flipkart-owners-t4151007/post83329343
If you're not sure what you're doing, follow the guide exactly, do not freestyle.
1.Install any rom
2. In recovery factory reset or change data partition to ext2 and then again back to ext4
Reboot
It will boot.
[email protected] said:
2. ...change data partition to ext2 and then again back to ext4...
Click to expand...
Click to collapse
WT........
Seriously?
Hi, I am new to K20 Pro, I have not unlocked my phone yet, I was just going through the forum, to understand all the things and how flashing is done in K20 Pro, I have a question about flashing the vendor, some ROM require it & some don’t, can anyone explain? And how do I choose the correct vendor for my device?? Where can I download the right vendor??
Thanks!
stanlin salu said:
Hi, I am new to K20 Pro, I have not unlocked my phone yet, I was just going through the forum, to understand all the things and how flashing is done in K20 Pro, I have a question about flashing the vendor, some ROM require it & some don’t, can anyone explain? And how do I choose the correct vendor for my device?? Where can I download the right vendor??
Thanks!
Click to expand...
Click to collapse
When flashing you will actually need vendor and firmware files together.
These are taken from the official MIUI fastboot ROMs. You can find them repackaged in a single flashable zip file from here.
https://downloads.akhilnarang.dev/MIUI/raphael/
Flashing one of these files in TWRP is the easiest way to go.
You can also find then repackaged as separate zip files from here
https://xiaomifirmwareupdater.com/
This site has a much greater archive, so is good if you need an older version that you can't find in the other site. You will need to make sure you download vendor and firmware files for the same version.
You should always stick to the version that is for the region of your phone. e.g. Indian vendor and firmware for an Indian K20 Pro, etc.
Some ROMs use an OSS vendor and so this is included as part of the ROM install. In which case there is no need to flash the MIUI vendor.
When a new version of MIUI is released, vendor and firmware files might get updated, to fix a bug or to add extra functionality. In this case some custom ROM devs will include them so that they get the bug fixes or extra functionality in their ROM too. When this happens they will update the minimum vendor and firmware version requirements for their custom ROM - the version will be the actual MIUI version in which the vendor and firmware files were updated.
Where a ROM doesn't specify vendor and firmware and doesn't have an OSS vendor, then it normally implies that any version will work that is from MIUI based on the same Android version. In this case use the most recent version, which you will already have if you've kept up to date with MIUI updates.
When installing a new ROM, you will only need to flash vendor and firmware files if your current version is less than the required version of the new ROM.
Robbo.5000 said:
When flashing you will actually need vendor and firmware files together.
These are taken from the official MIUI fastboot ROMs. You can find them repackaged in a single flashable zip file from here.
https://downloads.akhilnarang.dev/MIUI/raphael/
Flashing one of these files in TWRP is the easiest way to go.
You can also find then repackaged as separate zip files from here
https://xiaomifirmwareupdater.com/
This site has a much greater archive, so is good if you need an older version that you can't find in the other site. You will need to make sure you download vendor and firmware files for the same version.
You should always stick to the version that is for the region of your phone. e.g. Indian vendor and firmware for an Indian K20 Pro, etc.
Some ROMs use an OSS vendor and so this is included as part of the ROM install. In which case there is no need to flash the MIUI vendor.
When a new version of MIUI is released, vendor and firmware files might get updated, to fix a bug or to add extra functionality. In this case some custom ROM devs will include them so that they get the bug fixes or extra functionality in their ROM too. When this happens they will update the minimum vendor and firmware version requirements for their custom ROM - the version will be the actual MIUI version in which the vendor and firmware files were updated.
Where a ROM doesn't specify vendor and firmware and doesn't have an OSS vendor, then it normally implies that any version will work that is from MIUI based on the same Android version. In this case use the most recent version, which you will already have if you've kept up to date with MIUI updates.
When installing a new ROM, you will only need to flash vendor and firmware files if your current version is less than the required version of the new ROM.
Click to expand...
Click to collapse
Thanks a lot brother, for this detailed explanation.. [emoji56][emoji1]

Updating a rooted Redmi 8 with custom recovery

Hey guys I was wondering something I haven't installed the latest update yet and my phone is rooted and has TWRP on it soo not sure if i can just update with all that or like i should restore the phone to its original state then update
Last version of TWRP I tried (3.4.0-0) did not work properly with Android 10, don't know about the new 3.4.0-1 because I switched to OrangeFox which can decrypt Android 10 without issues.
As for the update process, you need to get the Recovery ROM update package, you can download it from the official xiaomi site, put it, Magisk and your kernel if you use a custom one either on the phone's internal storage or even better your SD card and flash from recovery in this order:
1. ROM
2. Kernel
3. Magisk
4. Wipe Dalvik\cache
5. Reboot to system
I did it exactly like this a few times now, granted it was with xiaomi.eu instead of stock but the process should be the same.
This should just update the phone without wiping anything and with maintaining root, just make sure to do it from a recovery that can decrypt the phone.
Maranex said:
Last version of TWRP I tried (3.4.0-0) did not work properly with Android 10, don't know about the new 3.4.0-1 because I switched to OrangeFox which can decrypt Android 10 without issues.
As for the update process, you need to get the Recovery ROM update package, you can download it from the official xiaomi site, put it, Magisk and your kernel if you use a custom one either on the phone's internal storage or even better your SD card and flash from recovery in this order:
1. ROM
2. Kernel
3. Magisk
4. Wipe Dalvik\cache
5. Reboot to system
I did it exactly like this a few times now, granted it was with xiaomi.eu instead of stock but the process should be the same.
This should just update the phone without wiping anything and with maintaining root, just make sure to do it from a recovery that can decrypt the phone.
Click to expand...
Click to collapse
Well I have a few questions
By recovery ROM you mean from here https://c.mi.com//miuidownload/detail?device=1900376 the full ROM? like I just flash the ROM file using TWRP well OrangeFox version right and it will keep all my apps and data
Yes, you flash the rom from mi.com.
Don't "just" flash it or you'll loose root and OrangeFox, flash in this order:
1. ROM
2. Kernel
3. OrangeFox (I added this step because you are on official MIUI and the update will replace your custom recovery unless you re-flash it after the rom.)
4. Magisk
5. Wipe Dalvik\cache
6. Reboot to system
Before flashing make sure you are flashing the right rom for your variant and region.
Other than that, you should be good, I updated like this three times and had no data loss.

Categories

Resources