Hi,
The Mi8 i've bought is a Chinese version which came with the bootloader unlocked and the global rom installed.
Now I want to install the MIUI eu rom on my phone, but since there are so many brick reports I try to get clear what the right procedure is. I figured out that this procedure is the right one and I assume it can be usefull for alot of users.
As far as I understand, most of the bricks are the continuation of installing another rom via MiFlash with accidently enabled the "lock bootloader" option or trying to lock the bootloader after succesfully installing another rom (other than Chinese rom), so DONT DO IT
Since I am more familiar with TRWP, I used this to install the rom.
I've used the procedure below and succesfully installed MIUI 10 EU 10.0.4.0 8.1 rom on my phone.
1. Install TWRP by following this:
Download TWRP image
Transfer TWRP image from pc to phone
Boot to TWRP via fastboot
This should result in the following screen:
NOTE: If you phone is still encrypted, a password prompt will show up. Enter your
pin to decrypt
Click "Install", select the recovery file and swipe to install the image. To make the .img file visible in TWRP, click on the button in the right corner below saying: "Install Img"
After TWRP is succesfully installed, head back to the the start page of TWRP:
Select "Wipe" and in the next screen press on "Format Data". The following screen will appear:
Type in "yes" to start formatting the data. Dont touch the phone now and patiently wait till this is finished.
Once the data formatting is done, press the back button a couple of times to return to the start page of TWRP.
Now select "Reboot" and click on "Recovery". The phone will now reboot and start TWRP again. You will now see that you dont have to decrypt your phone anymore, since the encryption is removed.
2. Install MIUI eu (or any) rom
Since the data is formatted, all the data on the phone is removed. Connect your phone to your pc and transfer the rom to the phone.
From the start page of TWRP click on "Install"
In my case I've installed the MIUI 10 EU rom (v10.0.4.0)
Click on the rom you want and swipe to install it.
Patiently wait untill the rom is installed. Now you can click on reboot and your phone will now boot to the freshly installed rom.
3. Enjoy
Note: Do not try to lock the bootloader when you are using a Chineese phone with a rom other than the Chineese rom. This will brick you phone
Note2: Always remember to check the "fastboot getvar anti" status before installing another rom. This should be implemented starting from the Android 9 based roms, but just check to be sure. If the "getvar anti" commands results in a FAILED you should be good to go.
@AL_IRAQI wrote a nice post with more information about this policy. https://forum.xda-developers.com/redmi-note-5-pro/how-to/index-everything-anti-roll-t3816219
Thanks in advance!
Correct steps u got it right, don't forget if u flash a android pie rom u cannot downgrade it to a previous miui version because of the anti roll back that Xiaomi implemented from Android 9.0 aka pie.
Wipe cache/dalvik is not needed after a clean flash.
bassbounce said:
Correct steps u got it right, don't forget if u flash a android pie rom u cannot downgrade it to a previous miui version because of the anti roll back that Xiaomi implemented from Android 9.0 aka pie.
Wipe cache/dalvik is not needed after a clean flash.
Click to expand...
Click to collapse
Thanks for your quick reply! Does this anti rollback policy even counts when formatting data before installing the new rom? And how about installing a rom like lineage os? Do you know if can (for example) install lineage os 15.1 after I've used an Android 9.0 based MIUI rom?
I will try to install the MIUI eu rom tomorrow.
@tharonny
https://forum.xda-developers.com/redmi-note-5-pro/how-to/index-everything-anti-roll-t3816219
He explains a bit about the anti roll back system.
It was first introduced to the Redmi note 5 pro they got lots of information about it.
bassbounce said:
@tharonny
https://forum.xda-developers.com/redmi-note-5-pro/how-to/index-everything-anti-roll-t3816219
He explains a bit about the anti roll back system.
It was first introduced to the Redmi note 5 pro they got lots of information about it.
Click to expand...
Click to collapse
Thanks, I'll look into it
I would like to ask: What if I installed eu rom, but I didn't flash "Disable Dm-Verity" is there a risk? If I am correct "Disable Dm-Verity" is required to disable encryption. Eu rom doesn't have encryption I think, but if the system is at some stage encrypted I should decrypt and format data I think...Am I right - at most not a brick, but a potential loss of data will occure?
s7eVe90 said:
I would like to ask: What if I installed eu rom, but I didn't flash "Disable Dm-Verity" is there a risk? If I am correct "Disable Dm-Verity" is required to disable encryption. Eu rom doesn't have encryption I think, but if the system is at some stage encrypted I should decrypt and format data I think...Am I right - at most not a brick, but a potential loss of data will occure?
Click to expand...
Click to collapse
You don't need it. Just flash twrp format and flash Xiaomi EU ROM. Done
SPOCK_VULKAN said:
You don't need it. Just flash twrp format and flash Xiaomi EU ROM. Done
Click to expand...
Click to collapse
Are you sure about this? I thought I've read some posts about people not be able to install the rom when the disable dm verity is not flashed?
tharonny said:
Are you sure about this? I thought I've read some posts about people not be able to install the rom when the disable dm verity is not flashed?
Click to expand...
Click to collapse
Yes I am sure. Dmverity is need to boot miui official ROM not xiaomi.eu
SPOCK_VULKAN said:
Yes I am sure. Dmverity is need to boot miui official ROM not xiaomi.eu
Click to expand...
Click to collapse
And what about roms like Lineage os? Does that rom require dm verity to be disabled?
tharonny said:
And what about roms like Lineage os? Does that rom require dm verity to be disabled?
Click to expand...
Click to collapse
Neither. Dmverity is only need for miui official ROM
SPOCK_VULKAN said:
Neither. Dmverity is only need for miui official ROM
Click to expand...
Click to collapse
Thanks, good to know!
Good news! Today I've successfully installed MIUI 10 eu rom. I did indeed not need to flash the disable dm-varity. I will update the FP so it matches the steps I've taken. Next week I will make a complete tutorial with images.
Thanks again!
What's the reason to flash the recovery from the recovery itself and not directly from fastboot? I mean :
fastboot devices
fastboot flash recovery xxx.img
TIA
descarao81 said:
What's the reason to flash the recovery from the recovery itself and not directly from fastboot? I mean :
fastboot devices
fastboot flash recovery xxx.img
TIA
Click to expand...
Click to collapse
To be honest, i dont know. I know about the fastboot flash recovery command, but since flashing via twrp worked good for me I've keeped it in the procedure
Little question:
Do I have to select "wipe data" under "Advanced wipe" or should I select "Format Data" in Wipe menu?
baddevil2 said:
Little question:
Do I have to select "wipe data" under "Advanced wipe" or should I select "Format Data" in Wipe menu?
Click to expand...
Click to collapse
"Format Data" is the one your looking for. If you follow the steps in the first post you should be fine.
Wipe data is a factory reset. You need to format your data which will entirely remove your current rom and remove the encryption
Can't boot to recovery (twrp) after unlocking:
C:\Users\Dominic\Downloads\platform-tools_r28.0.1-windows\platform-tools>fastboot boot recovery.img
Downloading 'boot.img' FAILED (Write to device failed in SendBuffer() (Unknown error))
Finished. Total time: 5.886s
Any ideas?
tharonny said:
Hi,
The Mi8 i've bought is a Chinese version which came with the bootloader unlocked and the global rom installed.
Now I want to install the MIUI eu rom on my phone, but since there are so many brick reports I try to get clear what the right procedure is. If this procedure is the right one, I assume it can be usefull for alot of users.
As far as I understand, most of the bricks are the continuation of installing another rom via MiFlash with accidently enabled the "lock bootloader" option or trying to lock the bootloader after succesfully installing another rom (other than Chinese rom).
Since I am more familiar with TRWP, I would like to use this to install the rom
Now I think I got the procedure clear to safely install the MIUI eu rom and I was hoping that someone can confirm this:
1. Install TWRP by following this:
Download TWRP image
Transfer TWRP image from pc to phone
Boot to TWRP via fastboot
*If encryped: Enter your
pin to decrypt
Select and install TWRP image
Format data
Reboot to recovery
2. Install MIUI eu (or any) rom
Transfer the rom from the pc to the phone
Install rom
Reboot
3. Enjoy
By following the steps above there should'nt be any chance of bricking the phone if I'm correct. If someone could confirm the above, i will update the procedure above with some images to make it more helpfull/usefull for other users who are in the same situation as me.
In another topic I've read something about flashing a region fix (since I'm using a Chinese phone), but I cannot find this elsewere. I reckon that this step is not needed?
EDIT: Topic updated. I've successfully installed MIUI 10 eu rom using the steps above!
Thanks in advance!
Click to expand...
Click to collapse
First, thank you very much for such informations. Flashing rom isn't hard for me but I'm so afraid to brick the device that costs me 450 euros....
Could you please put some screens as you mentioned ?
Could you please detail more in this first thread if you format or wipe which partition (data for example).
Thanks for your time man !
Can someone confirm antirollback bricks the phone from official miui to lower version miui but doesn't brick miui x.x.x to xiaomi.eu rom any versions ?
baddevil2 said:
Can't boot to recovery (twrp) after unlocking:
C:\Users\Dominic\Downloads\platform-tools_r28.0.1-windows\platform-tools>fastboot boot recovery.img
Downloading 'boot.img' FAILED (Write to device failed in SendBuffer() (Unknown error))
Finished. Total time: 5.886s
Any ideas?
Click to expand...
Click to collapse
Tonight Ill look into it
Related
I need to understand how to update to the new Stock merged partition. Have been reading general advice in various threads that we need to flash new China developer rom. Can someone elaborate regarding how to do this and where to get this rom? Do we need to re-root? Do we need to reflash recovery?
I see that many new MM roms are using this new Stock partition like Matoxxi's newest RR rom. So want to know. Detailed help is highly appreciated... Thanks...
+1
I too would like to see a proper procedure..
This is what I personally did. Was on extended partition. With TWRP as recovery.
1) Flash the cwm r11( or any working cwm) recovery. Needed to flash the repartition zip!! Don't use TWRP. Did this once and had a dead phone. Reboot to recovery. You'll be on CWM.
2) Flash the back to stock partition zip. Choose the one with "el pierro verde" in it.
3) Flash TWRP recovery. Boot to recovery.
4) Flash the 5/12/17 miui zip. This is the ROM which merges the partitions. At this point the partitions are not merged yet!
4.1) Boot the phone up. Reboot to recovery
5) Repeat step 4. Now the partitions are merged.
6) Flash any ROM that you desire.
Of you are on stock partition with TWRP skip steps 1-3.
Good luck.
If you are on MIUI ROM, install 5.12.17 first to merge partitions and then 6.2.4 via Updater app. Xiaomi.eu version is tuned for europe/outside china, Google Apps are included in rom.
https://www.androidfilehost.com/?fid=24369303960690691
https://www.androidfilehost.com/?fid=24415232478676696
Or you can just MiFlash 6.2.4 chinese developer rom factory image from en.miui.com.
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
The only quick way to setup the new partition for now is to fastboot flash the Chinese Dev ROM, as you yourself already stated. You can flash it by fastboot flashing it using Mi PCSuite and choosing the Beta ROM.
On my experience, after the flash I got my bootloader locked ("fastboot oem device-info" resulted in Device unlocked = false), but I can simply unlock it through fastboot without any problem.
From that point, you can easily flash any custom ROM.
Or even MIUI V6, with manual, per partition fastboot flash rather than using MiFlash/Mi PCSuite because of different partition layout; V6 and lower got two boot, modem and system partitions for TDB, while the new has only one.
anshude1 said:
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
Click to expand...
Click to collapse
Can you boot the phone after the first flashing? Than reboot to recovery and try step 4 again.
Have a look to
http://en.miui.com/thread-209941-1-1.html
there you can find a zip (cancro_merge_partition(2).zip) and the guideline how to use. For me it worked fine.
It does the repartitioning through fastboot by executing 1 shell script. Afterwards you might want to update your recovery rom to an English version.
anshude1 said:
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
Click to expand...
Click to collapse
Im using Pallmali method to flash, however 1st i try to repeat flash on step 4, it didnt work, then i download MIUI china dev 6.2.4 and flash, wait for a while and it is updated to MIUI 7 MM with merged partition.
anshude1 said:
Thanks for the details. I did try this out, am on original stock partition... Flashed 5.12.17, two times as per step 4. Rebooted but the partition remains resolute at old stock and does not merge. Am using twrp 2.8.7. Tried this twice, no success... Need advice... Thanks
Click to expand...
Click to collapse
I believe you have to use default Mi Recovery. One time flash of 5.12.17 was enough on my Mi4.
ksloh1 said:
Im using Pallmali method to flash, however 1st i try to repeat flash on step 4, it didnt work, then i download MIUI china dev 6.2.4 and flash, wait for a while and it is updated to MIUI 7 MM with merged partition.
Click to expand...
Click to collapse
It got auto updated? So did you flash stock recovery? Or used twrp
I downloaded 6.2.4 into my phone and then choose the file to update from miui itself, and it will reboot to twrp recovery and install. After fully install and reboot. Only then it will have merged partition and MM miui. And back to stock recovery automatically.
I just fastboot 6.2.4 rom successfully... Now will flash twrp...
And made my first big mistake going in for 6.2.4 beta... It has locked bootloader and a load of Chinese **** you can't make sense of and have to forcefully bear it. Please can anyone help me to unlock the bootloader without begging to the ****ty miui folks?
anshude1 said:
I just fastboot 6.2.4 rom successfully... Now will flash twrp...
And made my first big mistake going in for 6.2.4 beta... It has locked bootloader and a load of Chinese **** you can't make sense of and have to forcefully bear it. Please can anyone help me to unlock the bootloader without begging to the ****ty miui folks?
Click to expand...
Click to collapse
First of all, if you planned to stay on MIUI MM, you don't have any options than requesting an unlock permission to Xiaomi.
If you just want the merged partition and prepared to flash any custom ROM or MIUI V6, enter fastboot then send this command:
Code:
fastboot oem unlock
The reason is that when you unlocks the bootloader through fastboot, it automatically wipes out your phone. IDK why, but possibly inherent to Android's design for security reasons.
rxl.noir said:
First of all, if you planned to stay on MIUI MM, you don't have any options than requesting an unlock permission to Xiaomi.
If you just want the merged partition and prepared to flash any custom ROM or MIUI V6, enter fastboot then send this command:
Code:
fastboot oem unlock
The reason is that when you unlocks the bootloader through fastboot, it automatically wipes out your phone. IDK why, but possibly inherent to Android's design for security reasons.
Click to expand...
Click to collapse
I tried this out, the phone got all wiped but the OEM unlocking button does not work still. So how would I know if the bootloader is unlocked?
anshude1 said:
I tried this out, the phone got all wiped but the OEM unlocking button does not work still. So how would I know if the bootloader is unlocked?
Click to expand...
Click to collapse
OEM Unlocking button? You meant on the Developer Options? That button is currently useless with no function at all. If you want to ascertain if your bootloader is unlocked or not, try sending
Code:
fastboot oem device-info
via fastboot. If the "Device unlocked" comes out as true, then your bootloader is already unlocked.
Ooooor just try to flash any custom recovery/ROM. If it works, then your bootloader is already unlocked.
rxl.noir said:
OEM Unlocking button? You meant on the Developer Options? That button is currently useless with no function at all. If you want to ascertain if your bootloader is unlocked or not, try sending
Code:
fastboot oem device-info
via fastboot. If the "Device unlocked" comes out as true, then your bootloader is already unlocked.
Ooooor just try to flash any custom recovery/ROM. If it works, then your bootloader is already unlocked.
Click to expand...
Click to collapse
Great, big thanks to you... It worked. Device unlocked is True
Funnily it also quoted device tampered is True :laugh:
anshude1 said:
Great, big thanks to you... It worked. Device unlocked is True
Funnily it also quoted device tampered is True :laugh:
Click to expand...
Click to collapse
Yeah, it might be set to true once you had flashed another unsigned image to the eMMC (or when you disconnect the battery, IDK), probably for the warranty checks :q.
knoxwalles said:
Have a look to
http://en.miui.com/thread-209941-1-1.html
there you can find a zip (cancro_merge_partition(2).zip) and the guideline how to use. For me it worked fine.
It does the repartitioning through fastboot by executing 1 shell script. Afterwards you might want to update your recovery rom to an English version.
Click to expand...
Click to collapse
Worked for me
Thank you very much.
Hi,
I bought a new phone and thought I would get in to custom ROMs again. Mostly to get rid of bloatware. However, after following multiple guides I'm still no where closer to achieving my goals. The phone is a MI 9.
I found there's a lot of different steps depending on guide but most of the once I've tried does the following:
* Unlock bootloader, working
* Installing twrp via fastboot, working
* Deleting data in twrp, working
* Transfering a rom.zip file (depending on rom), working via usb cable
* Some guides recommends to install disable force Encryption via another zip file transferred from the computer, however, that seems to not be necessary, tried i few times
* Installing rom via twrp, seems to work
* In some guides you then need to remove cache, working
* Rebooting from twrp, working
After these steps I find myself in one of three different cases,
1. Phone is stuck in fastboot, have to reflash it with MIflash and global MIUI rom to get phone to work again
2. Phone in boot loop, logo shows up, phone waits for awhile, phone reboots, logo shows up
3. Phone boots up, logo is shown, phone reboots into twrp
I've also tried both XiaoMiTool and XiaoMiTool V2,
XiaoMiTool seems to write the global ROM to the phone whatever I choose (Have tried Xiaomi.eu and LineageOS 17)
XiaoMiTool V2, fails in second to last step, it wants to remove some cache before the installation in twrp is done.
Things I've not tried:
* Moving file to twrp with adb instead, should not make a difference
* Installing magisk
Now, I'm a bit afraid my phone will get hard bricked, have reinstalled the OS 20 times the last day to test different approaches and steps. Nothing seem to work. Does anyone have a proven method working in 2020?
Another way to go might be to just get rid of the commercials, run a different launcher to get app list and get rid of the bloatware. This is not really what I want but I can live with it.
As you can hear I'm about to just throw in the towel and give up. But I've heard a lot good about the xda forums so I thought it might be worth a try even though I do understand if no one has time or energy to help out a newbie.
Help please!
Edit: I do realize I've accidentally put this under Guides and not Q&A. I find no way of moving it nor deleting the thread so I guess some moderator will have to come help. Sorry for this.
Do you use latest TWRP for Mi9? TWRP from Mauronofrio works fine for me.
When you say "Deleting data in twrp", does this mean you did Format Data (confirm by typing "yes")? Or just wipe?
Poslano z mojega MI 9 z uporabo Tapatalk
mxxt01 is right. You have to format the data partition or else you will run into a bootloop.
I followed the guide here but I did not flash magisk since I don't need root.
Basically what I did was;
1. Unlock bootloader
2. Reboot to load the OS but skip the initial setup
3. Reboot to fastboot/bootloader
4. Flash TWRP (use the latest beta from Mauronofrio)
5. Immediatly press Vol Up + Power button to boot TWRP
6. Sideload the firmware to /tmp/
7. Format the data partition and type yes to continue
8. Factory reset
9. Flash firmware from within TWRP
10. Factory reset again (you can skip this if you don't want to)
11. Reboot
And that is how I did it.
mxxt01 said:
Do you use latest TWRP for Mi9? TWRP from Mauronofrio works fine for me.
When you say "Deleting data in twrp", does this mean you did Format Data (confirm by typing "yes")? Or just wipe?
Poslano z mojega MI 9 z uporabo Tapatalk
Click to expand...
Click to collapse
I have tried both Formatting data, this generally makes all folders have gibberish names and by going to advanced wipe, choosing data, some guides also wants you to delete Dalvik, Cache and System. I have tried both in the same go and one or the other. Does not seem to make a difference. But from the response below I get that it's formatting the data and typing yes that is the way to go(?)
TWRP version 3.3.1-0
sangbuana said:
mxxt01 is right. You have to format the data partition or else you will run into a bootloop.
I followed the guide here but I did not flash magisk since I don't need root.
Basically what I did was;
1. Unlock bootloader
2. Reboot to load the OS but skip the initial setup
3. Reboot to fastboot/bootloader
4. Flash TWRP (use the latest beta from Mauronofrio)
5. Immediatly press Vol Up + Power button to boot TWRP
6. Sideload the firmware to /tmp/
7. Format the data partition and type yes to continue
8. Factory reset
9. Flash firmware from within TWRP
10. Factory reset again (you can skip this if you don't want to)
11. Reboot
And that is how I did it.
Click to expand...
Click to collapse
Could you describe step 6 in more detail please?
This is what I get if I try sideloading my phone:
adb push xiaomi.eu_multi_MI9_V11.0.5.0.QFACNXM_v11-10.zip /tmp/
adb server is out of date. killing...
* daemon started successfully *
I guess it's important to not get the firmware in the SD-card folder since that will be wiped if I format the data, this might be where I fail.
Step 6 is to type adb push rom.zip /tmp/
I renamed the zip file to rom.zip so that I don't typo when typing.
Sent from my MI 9 using Tapatalk
In any case you should flash a current (11.0.6.0 or younger) fastboot ROM (.tgz extention). Recovery ROMs (.zip extention) don't reset the phone as deep as fastboot ROMs do.
After that you'd best flash vbmeta.img before TWRP, see #1 for more details.
Cheers
Toscha
From personal experience of using xiaomi.eu's ROM, I never did install vbmeta.img or dmverity, since that particular rom is based on the official beta Chinese MIUI ROMs, and the latest TWRP from Mauronofrio supports decryption. Not sure about other ROMs though.
Just to be safe, just download the stock fastboot ROM as a backup just in case anything goes wrong. Always remember to NOT lock your bootloader when flashing back to stock, in case your persist partition gets corrupted, you can flash it to recover.
ZevSwe said:
I have tried both Formatting data, this generally makes all folders have gibberish names and by going to advanced wipe, choosing data, some guides also wants you to delete Dalvik, Cache and System. I have tried both in the same go and one or the other. Does not seem to make a difference. But from the response below I get that it's formatting the data and typing yes that is the way to go(?)
TWRP version 3.3.1-0
Could you describe step 6 in more detail please?
This is what I get if I try sideloading my phone:
adb push xiaomi.eu_multi_MI9_V11.0.5.0.QFACNXM_v11-10.zip /tmp/
adb server is out of date. killing...
* daemon started successfully *
I guess it's important to not get the firmware in the SD-card folder since that will be wiped if I format the data, this might be where I fail.
Click to expand...
Click to collapse
Like written by toscha42 you should flash the latest fastboot stock rom (tgz) for your phone first, as after all the attempts you have made your phone is probably kind of ****ed up... Do not lock bootloader.
What I do and it works for me, starting from stock ROM.
1. Unlock bootloader (you already done that)
2. Flash in fastboot latest TWRP for your device (I use Mauronofrio)
3. After flashing disconnect the phone and push VOLUME UP + POWER to enter from fastboot directly to TWRP recovery
4. Format data with yes
5. Reboot to recovery
6. Flash xiaomi.eu custom rom for your device with USB OTG (usb otg is the easiest way I guess as you don't need to move the rom to internal storage)
7. Reboot to recovery
8. Wipe cache and dalvik cache
8. Reboot to system
And that's all.
Poslano z mojega MI 9 z uporabo Tapatalk
toscha42 said:
In any case you should flash a current (11.0.6.0 or younger) fastboot ROM (.tgz extention). Recovery ROMs (.zip extention) don't reset the phone as deep as fastboot ROMs do.
After that you'd best flash vbmeta.img before TWRP, see #1 for more details.
Cheers
Toscha
Click to expand...
Click to collapse
Can't seem to find any fastboot ROMS, neither of xiaomi.eu or LineageOs 17. Where can I find this? https://xiaomi.eu/community/threads/20-1-16.54300/
If I understood correctly vbmeta.img unlockes secure boot. Not sure why that is needed or what problems it might create. Did some googling but found nothing. What is this used for? If it's important, why is it not in any guides I found?
ZevSwe said:
Can't seem to find any fastboot ROMS, neither of xiaomi.eu or LineageOs 17. Where can I find this? https://xiaomi.eu/community/threads/20-1-16.54300/
If I understood correctly vbmeta.img unlockes secure boot. Not sure why that is needed or what problems it might create. Did some googling but found nothing. What is this used for? If it's important, why is it not in any guides I found?
Click to expand...
Click to collapse
Fastboot STOCK Xiaomi ROM.
To be flashed with MiFlash. Do not lock bootloader.
http://c.mi.com/oc/miuidownload/detail?device=1700361
Poslano z mojega MI 9 z uporabo Tapatalk
Fastoot ROMs are only available for official MIUI ROMs and has tgz as their filename extensions. They are flashable only using Mi Flash tools or equivalent. Custom ROMs has zip and they are flashable using recovery.
Correct me if I'm wrong, vbmeta.img is for verified boot. I was running on official MIUI ROM and I wanted to have TWRP recovery, but stock recovery would come back after every reboot. So I flashed a modified version of vbmeta.img available on the web, to disable verified boot, and TWRP would persist in the recovery partition. Have a read on Verified Boot here.
mxxt01 said:
Fastboot STOCK Xiaomi ROM.
To be flashed with MiFlash. Do not lock bootloader.
http://c.mi.com/oc/miuidownload/detail?device=1700361
Poslano z mojega MI 9 z uporabo Tapatalk
Click to expand...
Click to collapse
Hmm okay, but the phone is already working with the stock ROM, my whole idea is to switch to something else. What do you mean with do not lock bootloader?
sangbuana said:
Fastoot ROMs are only available for official MIUI ROMs and has tgz as their filename extensions. They are flashable only using Mi Flash tools or equivalent. Custom ROMs has zip and they are flashable using recovery.
Correct me if I'm wrong, vbmeta.img is for verified boot. I was running on official MIUI ROM and I wanted to have TWRP recovery, but stock recovery would come back after every reboot. So I flashed a modified version of vbmeta.img available on the web, to disable verified boot, and TWRP would persist in the recovery partition. Have a read on Verified Boot here.
Click to expand...
Click to collapse
Right, well I wish to switch to another ROM so installing MIUI Global ROm will not help.
I'm able to install TWRP without touching verfiedboot at all and get it to work even after reboot so that is not a problem. If that is what verifiedboot does I believe I can skip that?
ZevSwe said:
Hmm okay, but the phone is already working with the stock ROM, my whole idea is to switch to something else. What do you mean with do not lock bootloader?
Click to expand...
Click to collapse
than try once again by following my steps in post #8
You can skip flashing vbmeta and just follow mxxt01's steps.
Sent from my MI 9 using Tapatalk
sangbuana said:
You can skip flashing vbmeta and just follow mxxt01's steps.
Sent from my MI 9 using Tapatalk
Click to expand...
Click to collapse
That seems to have made the trick! Thanks so much!
I've been following this thread because I was having the same problems as ZevSwe, multiple attempts at installing roms with no success. I've been using phones/tablets with custom roms for years so I have some experience but not with this device.
I'll be trying the steps in post #8 later today but I have a question about twrp that's buggin me. I have been taking full twrp backups to a usb stick before installing and just reinstalling when the custom rom didn't work but the last few times the reinstall failed at about 98% complete and I've had to reinstall stock from scratch.
Any idea why a twrp backup would fail on reinstall? Is there something I could have inadvertantly done to cause this issue? Playing with roms is fun and easy when you've got a twrp backup to fall back on but a pain in the $#^ when it doesn't restore. Any thoughts would be appreciated before I give it another go.
thecdn said:
I've been following this thread because I was having the same problems as ZevSwe, multiple attempts at installing roms with no success. I've been using phones/tablets with custom roms for years so I have some experience but not with this device.
I'll be trying the steps in post #8 later today but I have a question about twrp that's buggin me. I have been taking full twrp backups to a usb stick before installing and just reinstalling when the custom rom didn't work but the last few times the reinstall failed at about 98% complete and I've had to reinstall stock from scratch.
Any idea why a twrp backup would fail on reinstall? Is there something I could have inadvertantly done to cause this issue? Playing with roms is fun and easy when you've got a twrp backup to fall back on but a pain in the $#^ when it doesn't restore. Any thoughts would be appreciated before I give it another go.
Click to expand...
Click to collapse
Since you noted that you have been doing a backup to a USB stick, it could be the USB stick is failing.
Honestly, all the installation guides for custom Roms i came across on XDA in the recent years are complete garbage. It fills like copy pasted from a guide that has been copypasted from a copypasted thread which has been copypasted and never worked.
For me, this guide works just fine. I just had to find the files for my Mi 9 instead of the k20 Pro. I would upload them for you but my upload speed is garbage.
https://www.youtube.com/watch?v=w_u_w6SrTDY&t=249s
I have flashed a lot of ROMs custom and official, fastboot and recovery. Never had any problems, the steps is here in thread.
Just remember 2 thing:
1. If you have ROM which using encryption, you must format data, because wipe will not remove encryption and you will see gibberish names
2. If you wipe system (which is mean less, because every ROM flash will do that, when you flash it, but many people insist in wiping it) then you must flash a ROM without reboot or you will stuck in fastboot and only option to repair is to flash official fastboot ROM (Non official fastboot ROMs, don't exist).
I bought this device for custom ROM use only (LineageOS, Evolution X, Pixel Experience etc). Don't ever intend on using stock MIUI.
I'm not sure if the Mi account used to unlock the bootloader of this phone is still attached to it. But as long as I don't try to go back to stock MIUI, it won't be an issue right? I'm free to flash TWRP and LineageOS without running into a "Login to Mi Account to continue" prompt right?
Kkslider123 said:
I bought this device for custom ROM use only (LineageOS, Evolution X, Pixel Experience etc). Don't ever intend on using stock MIUI.
I'm not sure if the Mi account used to unlock the bootloader of this phone is still attached to it. But as long as I don't try to go back to stock MIUI, it won't be an issue right? I'm free to flash TWRP and LineageOS without running into a "Login to Mi Account to continue" prompt right?
Click to expand...
Click to collapse
Correct. You will only have problems if you flash MIUI with the Mi Flash Tool and accidentally lock the bootloader.
However, if you stuff up the phone somehow while flashing something, fastboot flashing MIUI could be your only way to recover the phone, so there is a slight risk still. If you ever get in this situation you just need to the care that you don't lock the phone.
Robbo.5000 said:
fastboot flashing MIUI could be your only way to recover the phone, so there is a slight risk still. If you ever get in this situation you just need to the care that you don't lock the phone.
Click to expand...
Click to collapse
Thanks, much appreciated! After some research about flashing MIUI using MiFlash, it looks like there is a button in the bottom right corner of MiFlash that says "clean all and lock". When you advise to "not lock the phone", you're referring to making sure that button is not ticked, right?
Kkslider123 said:
Thanks, much appreciated! After some research about flashing MIUI using MiFlash, it looks like there is a button in the bottom right corner of MiFlash that says "clean all and lock". When you advise to "not lock the phone", you're referring to making sure that button is not ticked, right?
Click to expand...
Click to collapse
Yes, though you can also delete the flash all and lock batch file from ROM folder before flashing, that way nothing happens if you forget to change it I the flash tool.
Robbo.5000 said:
Yes, though you can also delete the flash all and lock batch file from ROM folder before flashing, that way nothing happens if you forget to change it I the flash tool.
Click to expand...
Click to collapse
Thank you so much! Okay, so here's my process to ensure this phone is wiped clean before I start using it:
1. Use MiFlash to reinstall/flash MIUI, making sure the "clean all" button is selected instead of the "clean all and lock" button (I also deleted the clean & lock batch file just in case).
2. Boot phone into fastboot, then use ADB to flash TWRP.
3. In TWRP, Wipe>Format Data>yes to confirm.
4. Flash ROM. Reboot into ROM. Done!
This will ensure a completely clean wipe of all partitions prior to installing a custom recovery and rom, all without running into any "Mi Account Login" issues, correct?
Kkslider123 said:
1. Use MiFlash to reinstall/flash MIUI, making sure the "clean all" button is selected instead of the "clean all and lock" button (I also deleted the clean & lock batch file just in case).
Click to expand...
Click to collapse
Make sure you install the same version as the phone, so it will be either global or European.
Let the phone boot into MIUI once to finalise the install before flashing anything else - you don't need to go through the initial setup
Kkslider123 said:
2. Boot phone into fastboot, then use ADB to flash TWRP.
Click to expand...
Click to collapse
You'll flash TWRP with the fastboot command not adb
After installing you'll need to boot the phone immediately into TWRP - if the phone boots into system, then stock recovery will get restored.
Kkslider123 said:
3. In TWRP, Wipe>Format Data>yes to confirm.
Click to expand...
Click to collapse
After formatting data TWRP will probably have a problem accessing the data partition. Go to the reboot menu and select reboot to recovery to reload TWRP.
Also wipe Cache (which should also wipe Dalvik. I actually just do the factory reset as it's easier in the GUI) - either before or after flashing the custom ROM
Kkslider123 said:
4. Flash ROM. Reboot into ROM. Done!
Click to expand...
Click to collapse
Though you may also want GApps (if the ROM doesn't have any google stuff) and Magisk
Kkslider123 said:
This will ensure a completely clean wipe of all partitions prior to installing a custom recovery and rom, all without running into any "Mi Account Login" issues, correct?
Click to expand...
Click to collapse
Correct
Robbo.5000 said:
Long Reply
Click to expand...
Click to collapse
Awesome, sounds good! I'll go through the whole process once I get back home in about a week, but I'll be sure to ping you if I have any trouble!
[TWRP] MI 11 (Pro/Ultra) (mars/star)
WARNING : I do not know who made this TWRP and I am NOT taking credit for it. It was posted on eu site and I'm just sharing since there was no thread for twrp here on xda.
INSTRUCTIONS
1. Before starting the process, the bootloader must be unlocked.
2. Install Xiaomi USB drivers.
3. Enable Usb debugging from Settings - Additional settings - developer options.
4. Download TWRP for Mi 11 (Pro/Ultra) , and put it in your fastboot folder.
5. Put your phone into fastboot mode.
6. Rename downloaded file to "twrp.img".
7. Do the following command. It will automatically boot into TWRP.
Code:
fastboot boot twrp.img
8. If you get a screen asking for a pin, press 2nd option
and change language to English then enter phone pin.
9. Change language to English (press the 6th option).
10. Go to "Advanced" and select "Onekey inject TWRP".
11. Swipe to inject the TWRP. It might take a few minutes, so don't worry.
Note
1) Don't change the boot slot, currently (Slot A) for most or your device will not boot at all.
2) For user experiencing decrypt issue, you can try one of the methods below to enable decryption:
a. Remove all your security eg. fingerprint, face unlock, pattern and leave ONLY pin. Reboot to twrp and try again.
b. Reflash twrp.
c. LAST RESORT! Format data and factory reset your device then reflash twrp.
3. For user experiencing decrypt issue but just want to flash latest build:
a. Boot to twrp > mount > mount usb storage then transfer your rom.zip to data/media/0
b. Now go to install and look for rom.zip under data/media/0. Profit!
4. The decrypt issue was a bug on the Chinese twrp, no update since may so don't ask for an ETA.
CHANGELOGS
07/18/21
1) Additional instruction from scratch.
2) Additional note for people having decrypt issue.
CTTO: xiaomi.eu, hoangsang
Is the legit TWRP ?? Xiaomi.EU getting ready to push updates via TWRP? :'D
skylerfly16 said:
Is the legit TWRP ?? Xiaomi.EU getting ready to push updates via TWRP? :'D
Click to expand...
Click to collapse
Yes, They just did the new stable in TWRP Format.
The Chinese exe worked for me this morning but after I installed it the phone didn't want to boot and I got stuck in twrp for awhile
speedtripler said:
The Chinese exe worked for me this morning but after I installed it the phone didn't want to boot and I got stuck in twrp for awhile
Click to expand...
Click to collapse
Why did you install the Chinese exe?
skylerfly16 said:
Why did you install the Chinese exe?
Click to expand...
Click to collapse
The official one hadn't been released yet and I like a challenge sometimes
Hey, thx for bringing this to my attention, but i checked... root-access is gone... :/
deleted post
I keep getting a " no such partician " fail msg , what am I doing wrong here?
speedtripler said:
I keep getting a " no such partician " fail msg , what am I doing wrong here?
Click to expand...
Click to collapse
Your device is not connected, hence the empty list after adb devices.
Did you enable USB debugging in Developer options?
heinhuiz said:
Your device is not connected, hence the empty list after adb devices.
Did you enable USB debugging in Developer options?
Click to expand...
Click to collapse
Thx It's ok,I got it after a few attempts
The language on twrp still opens on Chinese and it needs changed to English each time but apart from that it seems to work fine!
SanHelios said:
Hey, thx for bringing this to my attention, but i checked... root-access is gone... :/
Click to expand...
Click to collapse
mine was revoked after i flash the latest stable, just download magisk23.apk then rename it to magisk23.zip and flash thru twrp, got my root back that way, cheers
innocence07 said:
mine was revoked after i flash the latest stable, just download magisk23.apk then rename it to magisk23.zip and flash thru twrp, got my root back that way, cheers
Click to expand...
Click to collapse
Is banking and payment apps still working?
Can you still pass safetynet check?
speedtripler said:
Is banking and payment apps still working?
Can you still pass safetynet check?
Click to expand...
Click to collapse
Yes and yes
Thanks, it works for me.
But each time i boot on TWRP, go back to chinesse language.
Can we do backup ? (and what can we backup) in case of something wrong in the future
sabrewulf said:
Thanks, it works for me.
But each time i boot on TWRP, go back to chinesse language.
Can we do backup ? (and what can we backup) in case of something wrong in the future
Click to expand...
Click to collapse
The recovery is fully functional as far as I can tell...
I did a complete backup successfully but I haven't tried to restore it yet
You click on everything ?
Hi,
after a long day of learning the hard way (got stuck in Fastboot Loop) I am now on stable EU 12.5.7 (MI11 Ultra, EU phone). So far so good, but I was wondering, how can I make TWRP stuck to the phone, meaning, when I push the power button to have an option like: Boot into TWRP. Is that possible or is there a "click this button with this... trick"?
ATM, I can only get TWRP to work, when I enable it via PC, which is not good.
I am asking, because I have an old Oneplus 6, which has this option. TWRP is installed and I can boot directly to it, if I want to.
Can you please help me out? Is there a trick or am I doing something wrong?
Greetings from Germany
Placebo
I believe you are on custom EU rom right? Just reboot into recovery, custom eu rom injects twrp as standard recovery
Hi, yes I am and I did that also. But still can't boot into TWRP from within the phone. Is there a trick after the injection?
Got the bootloader unlocked..should've read more & implemented over a proper guide.
long story short:
stared with magisk apk..when phone was fine.. then got into bootloop;
quickly downloaded & flashed the global (lime) MIUI V12.0.5.0.QJQMIXM;
installed twrp; should've done this before.
wasn't able to copy anything into internal storage.
Used Twrp to wipe phone.. & flashed the stock_global_miui_(lime)12.0.5 boot.img in fastboot
because twrp was saying "unable to decrypt fbe device" on internal storage
formatted using twrp.
booted properly but setup says device is locked because associated with existing mi account can't open wifi but was able to activate device upon entering password on mobile data setup completes but device restarts frequently & still unable to access wifi
I think it has something to do with "unable to decrypt fbe device"..
should I try flashing custom rom boot img?
please don't ban me..tell if I did something wrong, I'll correct that..
..
Edit:
MiFlash-tool Worked
Flashing other compaitable custom Rom also worked
..
Had twrp wipe the whole phone and the format the partions
& then flashed in fastboot & everything was normal.
..
FBE device encryption is basically storage encryption that prevents dirty flashing miui rom via fastboot.
this can be avoided by implementing proper procedure of magisk & use of lazypatcher.
Thank you so much.. @Cursader & @zoel.fahmi for pointing me in the right direction.. godbless
[solved]
Currently I'm running Miui just like a new device.
I will make another guide thread on rooting systemlessly & flashing other custom rooms... if I succeed I will link it here..
Try to reboot bootloader
then flash twrp
wipe everything and format the data partition
reboot to twrp again
then flash custom rom
If you're flashing miui again, your phone bootloader will be lock again and you need something like lazy2flasher if you wanna keep miui with twrp and magisk etc.
zoel.fahmi said:
Try to reboot bootloader
then flash twrp
wipe everything and format the data partition
reboot to twrp again
then flash custom rom
If you're flashing miui again, your phone bootloader will be lock again and you need something like lazy2flasher if you wanna keep miui with twrp and magisk etc.
Click to expand...
Click to collapse
first of all thank you for taking out the time to read & respond..
I found an article with lazy 2 flasher earlier, I'll look into it..
is there any where I should look to find a suited custom rom for my phone..
xhykari said:
first of all thank you for taking out the time to read & respond..
I found an article with lazy 2 flasher earlier, I'll look into it..
is there any where I should look to find a suited custom rom for my phone..
Click to expand...
Click to collapse
you can use custom rom from Poco M3 since it's used the same SoC (662)
here : https://forum.xda-developers.com/f/poco-m3-roms-kernels-recoveries-other-develop.11969/
check the thread name Poco M3 / Redmi 9T or unified or codename like citrus and lime
whats the difference between Lime, Citrus, & Juice..
Mine is Lime
Juice is Lime & Citrus I think..
So will Juice work on a device which previously ran Lime?
..
basically can I install PixelPlusUi_Juice
or should I first try the lazy2flasher.. & @zoel.fahmi
where do I get lazy2flasher
If anything goes for me (RedmiNote9Pro) i just use miflash to flash original miui and start all over from there, might not be the quickest method but is easy and reliable
Cursader said:
If anything goes for me (RedmiNote9Pro) i just use miflash to flash original miui and start all over from there, might not be the quickest method but is easy and reliable
Click to expand...
Click to collapse
THERE IS AN MI FLASH TOOL too.. :O
whydoinotknowofthis.. What the heck..
can it bypass dm verity as well? like does it apply flash without lazypatcher?
do we need to provide it rom or can it fetch itself?
would you be please share some links for me?
..
xhykari said:
THERE IS AN MI FLASH TOOL too.. :O
whydoinotknowofthis.. What the heck..
can it bypass dm verity as well? like does it apply flash without lazypatcher?
do we need to provide it rom or can it fetch itself?
would you be please share some links for me?
Click to expand...
Click to collapse
If the bootloader unlocked and you can go into fastboot you can flash stock rom and It's just like it came from the store! Here you have link for your convinience: https://c.mi.com/oc/miuidownload/detail?guide=2
MiFlash-tool Worked..
(its the best tool for bringing mi devices from rom mess back to scratch new)
Flashing other Rom also worked..(pixelui)
juice = lime + citrus (works for both)
Thank you so much.. @Cursader & @zoel.fahmi for pointing me in the right direction..