Related
# I assume you are confident with ADB and Fastboot commands and you know what you are doing. #
# If you don't, search on Google before messing with your device. #
# I am not responsible for...you know what I mean. On the other hand, please feel free to point out any error in this guide. #
# Lots of useful information can be found on Telegram Group for Mi 9 SE #
# If you already unlocked your bootloader and flashed TWRP, go directly to part 2 of this guide #
PART 1 - UNLOCK DEVICE AND FLASH TWRP
# Before starting, be sure that you can unlock your bootloader and you have these files: #
- Mi Unlock tool (http://en.miui.com/unlock/)
- Minimal ADB & Fastboot 1.4.3 (https://forum.xda-developers.com/showthread.php?t=2317790)
- TWRP recovery for your device (please check the development section).
Install ADB and Fastboot drivers on your PC, if you don't have them already.
- enable developer options on device, allow OEM unlock and ADB debug.
- install Minimal ADB & Fastboot tool and run a command window. PLEASE DON'T USE WINDOWS 10 POWER SHELL. Double click on "cmdhere.dll" in root folder instead.
- move twrp image in the same folder where Minimal ADB & Fastboot is installed.
- for your convenience, rename twrp file as "twrp" only.
- connect your device to your PC USB port, pair it with PC then reboot it to bootloader (power + volume down combo).
Unlock bootloader using Mi Unlock tool (full unlocking guide at https://c.mi.com/thread-1635834-1-1.html)
Unlocking bootloader will erase all of your data, including storage.
Once you unlocked:
- reboot and setup device
- enable developer options again
- double check bootloader status and allow ADB debug
- connect to USB port and pair device with PC for ADB debug bridge then type in command window:
Code:
adb devices
Code:
adb reboot bootloader
once in bootloader screen code:
Code:
fastboot devices
Code:
fastboot flash recovery twrp.img
- don't give fastboot command "fastboot boot recovery twrp" or "fastboot reboot recovery twrp". Just press and hold power+volume up for about 10 seconds to reboot to recovery.
- swipe to allow twrp modifications.
- I would suggest to NOT format data to get rid of encryption unless you actually need it. Encryption does not slow down your device or harm your battery life.
- I would also suggest to NOT wipe system and reboot to recovery because it could lead to a fastboot bootloop.
PART 2 - HOW TO FLASH A GSI ROM
# IMPORTANT #
When flashing a GSI ROM, it is recommended to use a Stable firmware as base.
If device is running different builds, flash latest Global or China Stable before starting using MiFlash tool.
Beware that device could have the anti-rollback enabled, so be careful when flashing another firmware.
Mi 9 SE is a system-as-root device, so you must flash A/B type GSI ROMs.
You will need these files:
- GSI A/B ROM (FlokoROM at https://treble.andro.plus/ or choose one at https://forum.xda-developers.com/project-treble/trebleenabled-device-development)
- vbmeta.img (https://androidfilehost.com/?fid=818070582850505317)
- gapps for Google services (https://opengapps.org/) - select ARM64 - 9.0 - I would suggest nano or pico package.
- magisk for root and modules (https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445)
- MiFlash flashable STABLE stock firmware (http://en.miui.com/download or https://mirom.ezbox.idv.tw/en/phone/grus/)
- MiFlash tool (https://www.xiaomiflash.com/)
If you are already running a Stable firmware start from here, if you don't, flash a Stable firmware.
- move GSI and vbmeta images in the same folder where Minimal ADB & Fastboot is installed.
- for your convenience, rename GSI file as "system" only.
- reboot device to bootloader, ensure you are connected with your PC properly
- to double check it, run a command window and type:
Code:
fastboot devices
once you get the device recognized type:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
this command will disable dm-verity and AVB on device. PLEASE DON'T USE WINDOWS 10 POWER SHELL to disable vbmeta or you will get an error feedback. Double click on "cmdhere.dll" in root folder instead.
then:
Code:
fastboot flash system system.img
this command will flash system.img
Code:
fastboot -w
this command will wipe data on device
Reboot your device in recovery using button combo and resize system partition to install Gapps.
From TWRP Wipe menu > advanced wipe > system > repair or change file system > resize system > swipe to resize
- move magisk and gapps from PC to device
- go to mount menu and tick mount system
- go back to install menu and flash gapps
- once you flashed gapps unmount system
- go to install and flash magisk
- go to wipe menu and swipe for factory reset
- reboot
once rebooted, complete the device setup.
be aware that some GSI could bootloop or not boot at all even if you followed the guide properly.
in case rely on GSI devs for assistance or fixes.
Of course you can flash a GSI ROM using TWRP.
The only fastboot command you need to perform is to disable dm-verity and AVB.
If you already disabled it while flashing TWRP for the first time, you can follow these steps to flash a GSI using TWRP:
- Tap on advanced Wipe menu and wipe cache, dalvik, data and system
- Tap on Install > Install Image > select image and flash it to system
- Install Gapps with the same process shown above.
- Swipe for factory reset and reboot.
-----------------------------------------------------------------------------------------------------------------------------------------------
If updating GSIs builds from the same branch (e.g. Floko 060219 to Floko 060919) you are not required to wipe data. You can update flashing system.img on TWRP and Gapps time by time.
If you are moving from unofficial builds to official, or if you are moving between branches (e.g. Floko to Havoc), you need to wipe data as well.
@pengus77 provided for a very useful Magisk Module that will fix adaptive brightness, battery stats and in-call BT. You will find it here: https://forum.xda-developers.com/showpost.php?p=79762257&postcount=242
If you flashed a GSI ROM, you are basically using a system.img flashed on top of your stock firmware so, unless you performed modifications to vendor or boot partition, you can revert to stock using fastboot or TWRP.
You need to extract system.img (and boot and vendor, if needed) from the stock firmware.
You will need the vbmeta file as well to re-enable AVB and dm-verity otherwise the device will reboot in fastboot mode only.
Beware: you must flash EXACTLY the same system.img of the firmware you were running before flashing a GSI
Once you have both files, you can follow these steps to go back to stock using fastboot:
- place the files on Minimal ADB & Fastboot root folder
- reboot bootloader
- start a command window from Minimal ADB and type: fastboot devices
once your device has been recognized type the following commands:
- fastboot -w
- fastboot flash system system.img
- (optional) fastboot flash vendor vendor.img
- (optional) fastboot flash boot boot.img
- fastboot flash vbmeta vbmeta.img
- fastboot reboot
You can also revert to stock using TWRP, by the way you will still need fastboot to flash vbmeta partition.
These are the steps to follow if you are using TWRP:
- place system.img on your device and vbmeta.img in Minimal ADB & Fastboot root folder.
- reboot to twrp and wipe dalvik, cache and data
- flash system.img to system partition
- (optional) flash vendor.img to vendor partition
- (optional) flash boot.img to boot partition
- reboot to bootloader
Start a command window in Minimal ADB & Fastboot, then type:
- fastboot devices
- fastboot flash vbmeta vbmeta.img
- fastboot reboot
Thansk for your work.
Does TWRP backup work?For getting back to stock?
Moh3n.B said:
Thansk for your work.
Does TWRP backup work?For getting back to stock?
Click to expand...
Click to collapse
I hope it is helpful
Backup worked for me on the TWRP I mentioned above.
If you want revert to stock you can flash again stock firmware using MiTool (fastboot ROM) or twrp (Recovery ROM).
Good thread! Might be confusing if there's no guide to install TWRP and GSI ?
Great guide. It will help a lot of people to flash and test roms. And us by extension to find the best rom for our device !
Today I had some time and I tried to install the latest Havoc Gsi, unfortunately the result was negative, I ran the guide both from xda and from here, my basic rom was 10.2.3.0, arrived at the command fastboot -w performs the various wipes, but then it does not allow me to go into recovery, it always and only goes in fastboot, and the only way to make the smartphone work is to use miflash and put the official version back.
scorpionredblack said:
Today I had some time and I tried to install the latest Havoc Gsi, unfortunately the result was negative, I ran the guide both from xda and from here, my basic rom was 10.2.3.0, arrived at the command fastboot -w performs the various wipes, but then it does not allow me to go into recovery, it always and only goes in fastboot, and the only way to make the smartphone work is to use miflash and put the official version back.
Click to expand...
Click to collapse
Try to flash vbmeta.
For me is not necesary.
Try like this from twrp:
- Wipe cache, dalvik cache, system, data
- Flash latest weekly eu firmware as base xiaomi.eu_multi_MI9SE_9.6.5_v10-9.zip
- Than flash havoc as system
Optional: flash magisk and custom kernel
Just stuck on bootloader unlocking.
Got this error "current account is not bound to this device"
I added device from mi unlock status too.
Moh3n.B said:
Just stuck on bootloader unlocking.
Click to expand...
Click to collapse
Search on Google. It looks like to be a common issue. If needed, follow the unlocking guide I linked on OP.
successfully flash Foloko ROM to Mi9 se, run very well!
just a small queastion, is DT2W is not working in all GSI rom?
Anyone try it yet?
Is there way to enable DC dimming (anti-pwm)?
I am using Havoc OS and my eyes are hurting..
sky104hk said:
successfully flash Foloko ROM to Mi9 se, run very well!
just a small queastion, is DT2W is not working in all GSI rom?
Anyone try it yet?
Click to expand...
Click to collapse
For now all gsi have same problem.
how to flash gapps ... i got error 70
raber111 said:
how to flash gapps ... i got error 70
Click to expand...
Click to collapse
Read carefully post n.2
Before I flash this, I world like to know from those already using this rom: How is the camera quality and finger print unlock response /speed?
I'm pissed at the frequent snow down of the miui system because I run vpn all day on my phone.
Sent from my Mi 9 SE using Tapatalk
krispuniq said:
Before I flash this...
Click to expand...
Click to collapse
Generally speaking, all the GSIs ROMs are based on Phhusson AOSP GSI ROM, so they have more or less the same performance and bugs.
At he moment FOD is not working well. You cannot unblock the device while on screen off or while on AOD.
For camera, you can install BSG Google Camera mod, that is working quite good.
Hello,
My Redmi 5 plus is stuck in MI Logo, i tried TESTPOINT and flash MIUI 10 - MIUI 11, Global, Beta, Chinese, all sucessful but the phone still stuck in Mi Logo. I can acess fastboot but the phone is locked, so i dont know what i can do to restore the phone.
Someone can help me? I searched the forum, found people with the same problem as me but no solution.
Thx
There is solution.
1. Enter fastboot and Unlock bootloader (using the same process mi unlock tool)
2. Flash OrangeFox recovery using Minimal ADB and fastboot
3. Format data Clean flash any aosp based custom rom (wipe cache, dalvik, system, data)
4. Let the room finish Boot and then reboot to recovery again
5. Then clean flash MIUI using Orangefox (if you wanted to flash it in the first place)
It should Boot now.
Is there any way for an official bootloader unlock except for boxes?
AD FOX said:
Is there any way for an official bootloader unlock except for boxes?
Click to expand...
Click to collapse
You have to use official mi unlock tool for unlocking bootloader. I don't understand what you mean by "boxes".
madhurajkumar said:
There is solution.
1. Enter fastboot and Unlock bootloader (using the same process mi unlock tool)
2. Flash OrangeFox recovery using Minimal ADB and fastboot
3. Format data Clean flash any aosp based custom rom (wipe cache, dalvik, system, data)
4. Let the room finish Boot and then reboot to recovery again
5. Then clean flash MIUI using Orangefox (if you wanted to flash it in the first place)
It should Boot now.
Click to expand...
Click to collapse
I'm trying exactly these steps but seems it goes bootloop aswell, doesnt boot both custom rom and MIUI.
I'm flashing with orangefox the MIUI.zip, not the fastboot, if i'm wrong let me know.
did you format data? it's not the same as wiping. it's under manage partitions in orangefox. it'll delete your internal storage
madhurajkumar said:
did you format data? it's not the same as wiping. it's under manage partitions in orangefox. it'll delete your internal storage
Click to expand...
Click to collapse
Yes, i formatted data and reboot to recovery to make partitions set-up before rebooting to system.
I'm trying again today something i missed. I'll keep checking this post.
Detailed process:
1) Wipe cache, system, data, dalvik
2) Format Data
3) Reboot to recovery (to make partitions set-up)
4) Flash my aosp rom
5) Reboot to recovery
6) Reboot system (and getting bootloop)
And i repeat the process for MIUI rom.
Update: I managed to solve this, as you can read here: forum.xda-developers.com/redmi-note-5/help/redmi-note-5-plus-vince-bootloop-stuck-t4044219
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
when
madhurajkumar said:
There is solution.
1. Enter fastboot and Unlock bootloader (using the same process mi unlock tool)
2. Flash OrangeFox recovery using Minimal ADB and fastboot
3. Format data Clean flash any aosp based custom rom (wipe cache, dalvik, system, data)
4. Let the room finish Boot and then reboot to recovery again
5. Then clean flash MIUI using Orangefox (if you wanted to flash it in the first place)
It should Boot now.
Click to expand...
Click to collapse
when i enter fastboot and click on unlock bootloader in miunlock tool the phone shuts off from fastboot mode
I was running the latest MIUI Global 11.0.2 and wanted to go back to custom ROMs since its really slow
I unlocked my bootloader and flashed LOS 17.1 with NikGapps
It didn't boot, I tried flashing it a few other times and flashing the latest firmware, etc
now even OrangeFox recovery can NOT mount almost any of the partitions and even after flashing MIUI using mi flash I am stuck in a boot loop
I am really unsure about what I should do, Fastboot MIUI would always fix such problems
Any help would be great
"Format Data" using OrangeFox recovery
then clean install any rom you wish
Same here, i was on MIUI11, decided to install Aosp extended but when i tried to flash again MIUI from fastboot i get bootloop. Now not only on miui, but also bootloop on custom roms. Tried everything with both twrp and orangefox.
I'm following this post
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
Click to expand...
Click to collapse
That WORKS for me! Thanks!
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
Click to expand...
Click to collapse
Hi bro,
I tried every method, fastboot rom, fastboot boot twrp, flash recovery , but it still stuck at fastboot rom. What hapoened to my phone. Even i took my phone to mobile repairing market. They couldn't boot the MIUI. Still stucked on fastboot mode
sohaiburrasool said:
Hi bro,
I tried every method, fastboot rom, fastboot boot twrp, flash recovery , but it still stuck at fastboot rom. What hapoened to my phone. Even i took my phone to mobile repairing market. They couldn't boot the MIUI. Still stucked on fastboot mode
Click to expand...
Click to collapse
fastboot boot image.img (name of the recovery image)
adb reboot recovery
fastboot reboot recovery
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
Click to expand...
Click to collapse
Hey there is no option of "persist partition" in my twrp, what should I do?
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
Click to expand...
Click to collapse
Hello !
I solved this in different way because that solution was not working for me. It seems that MI account was still on the phone and making the flash stock roms attemps fail miserably, I didn´t know about that until i install this rom:
"MIUI 12.5 Android 10 Xiaomi.EU by PaintYourAndroid for Vince"The thing was that custom rom and twrp fastboot via work fine, so i tried different roms and finally came to this when i installed that rom above: THIS PHONE IS LOCKED, ACTIVATE THIS PHONE (MI ACCOUNT). So i activate the phone and went to the initial setup and go for the mi account and closed the session on the phone.
Next step, flash with miflash and stock rom V11.0.2.0.OEGMIXM and lock bootloader (its my wifes phone) and finally works!!
Maybe the MI account is locking down the flash because security reasons and blockin the flashing process.
I hope this another solution works for anyone. And before mess with custom roms closed the session of mi account if you are using it. I factory reset the phone before unlock bootloader (via miunlock) but that was not enough.
Cheers
kunalsbdr said:
Hey there is no option of "persist partition" in my twrp, what should I do?
Click to expand...
Click to collapse
For flashing, i've used "miui_HM5PlusGlobal_V11.0.2.0.OEGMIXM_f74369de0c_8.1.zip" and i've taken persist.img from "Xiaomi_Redmi_5_Plus_V11.0.2.0.OEGMIXM_20191108.0000.00_Global_8.1_XFT_(by_xiaomistockrom.com).zip"
and it worked for me too
I encounter the similar behaviour on my Redmi Note 9 Pro Global (joyeuse) : after flashing stock fastboot image using flash_all.bat or flash_all_except_data_storage.bat, the phone cannot get past the initial Redmi logo.
I fixed it by using the official MiFlash tool https://cdn.alsgp0.fds.api.mi-img.com/micomm/MiFlash2020-3-14-0.rar
I have no idea why running the bat files doesn't work.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
Click to expand...
Click to collapse
After fighting a few days with repair my POCO x3 NFC and looking for solution online which I didn't find, I can say that partially because of this post, I was able to install finally stock MIUI ROM. I was able to install only Elite Rom and it worked (strange).
I manually made a flash_all.bat file that it installs all stock MIUI images via fastboot, then (I don't really remember everything sorry ;( too many operations) then installed TWRP 3.5.2_10-5 surya, then wipe as GuestD2468 says on point 4, then fastboot flash (or TWRP flash?) persist.img also from MIUI stock firmware\images folder, still bootloop so the I flashed (update?) miui_SURYAEEAGlobal_V12.0.8.0.RJGEUXM_11.0.zip and then Stock MIUI finally runs Hurraaa . Sorry for not remember of exact queue of operations ;(.
What I still observed is that I can't still see SUPER or SYSTEM partitions in TWRP or OrangeFox. Im really sure that I saw SUPER partition for example to wipe in TWRP before I start playing with custom roms. It looks like Super partition disappears forever (or current versions of TWRP and OF didn't see that partitions?) Maybe its a problem to install roms because there is "no such partition"? Super partition is not active and making troubles with installing roms? Im amateur in new android 10 or 11 partitions (I had HTC m8 before). So I decided to flash that original stock ROM and just wait for better official TWRP's.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup o
Click to expand...
Click to collapse
where do you flash the persist.img? on adb like fastboot flash persist persist.img?
Hi guys please help me.. Today when i woke up my phone stuck on Mi logo and restart and restart.... my Fastboot is locked, so i try to flash the stock firmware with EDL mode... firmware flash was successfuly, but the problem with Mi logo and restarting is still here ( only restart and nothing happen) . I tried different stock firmwares ( old and new ). Please help me
danielristov said:
Hi guys please help me.. Today when i woke up my phone stuck on Mi logo and restart and restart.... my Fastboot is locked, so i try to flash the stock firmware with EDL mode... firmware flash was successfuly, but the problem with Mi logo and restarting is still here ( only restart and nothing happen) . I tried different stock firmwares ( old and new ). Please help me
Click to expand...
Click to collapse
hi, you still need help?
samuelpired said:
hi, you still need help?
Click to expand...
Click to collapse
i tried Above Method ,
I tried to flash rom , flashing got successfull , but my device(mi max 2) got stuck in mi logo .
Even Twrp is tuck in logo page . I even tried to flash orangeFox that also got stuck in logo page.
GuestD2468 said:
Update
Solved
1) Flash TWRP or OrangeFox (i did it with OF)
2) Clean Flash any custom rom, probably still bootloop
3) Reboot recovery
4) Wipe everything (dalvik, data, system, cache), also format data (format ≠ wipe)
5) Reboot recovery
6) Flash your MIUI rom
7) Reboot recovery
8) Repeat step #4
9) Reboot recovery
10) Flash again your MIUI rom
11) Reboot recovery
12) Flash persist.img file in persist partition, you can find this file in your fastboot MIUI rom downloaded at https://c.mi.com/miuidownload/index
13) Reboot system
14) Wait a lot, take a cup of tea.
Click to expand...
Click to collapse
How can you reboot recovery in step 5 after wiping the system in step 4. Recovery gives the waring "No OS is installed, do you still wish to reboot" before rebooting and if we reboot phone shows "System is Destroyed" and the recovery is automatically removed , only fastboot remains.
After a whole day of trials and errors I managed to get walkaround of bootlooping into TWRP. Here's the steps:
- Download 64bit TWRP
- Download patched vbmeta.img
- Download stock image, tgz file, in my case it was olivelite_global_images_V11.0.2.0.QCPMIXM_20200925.0000.00_10.0_global_886496ba27.tgz
This one should be good too.
- Unpack stock image and get vbmeta.img from 'images' folder
- Download custom ROM you want to flash (crDroid in my case)
Now we have TWRP image, ROM image and two versions of vbmeta image - patched and stock.
Next:
- Reboot to fastboot (poweroff, push power button + volume down)
- Flash patched vbmeta:
fastboot flash vbmeta vbmeta.img
- Flash TWRP:
fastboot flash recovery twrp-3.5.1_9-20210318-olivelite-arm64.img
- Reboot to recovery:
fastboot boot twrp-3.5.1_9-20210318-olivelite-arm64.img
or:
fastboot reboot <--- pushing volume up button
- Insert sdcard with custom ROM, wipe all you need, flash the ROM
- After flashing reboot again to fastboot
- Remove sdcard (not sure if that is needed but I had some issues when I have booted with sdcard)
- Now, in fastboot mode, get stock vbmeta.img file and flash it:
fastboot flash vbmeta vbmeta.img
fastboot reboot
If you skip reflashing vbmeta with stock vbmeta.img image your phone will keep rebooting to TWRP, and never to the System.
If you flash Magisk and update it with the application, then you have to reflash stock vbmeta again. You will know, because your phone will boot/reboot to TWRP.
And that's it!
Very useful tutorial, thanks. But mentioned by Seyed on Havoc-OS' Telegram group, to go to a custom rom like Hovoc-OS from miui, only the following steps are needed:
- Bootloader must be unlocked
- reboot to fastboot mode and connect to pc
- open terminal
- type "fastboot devices" enter
- type "fastboot flash vbmeta vbmeta.img" enter
- type "fastboot flash recovery recovery.img"
- reboot to recovery
-Wipe system,Cash, data,vendor
-flash custom ROM
-format data(and type yes there and press enter)
-reboot to system
Hi, I wanted to know if there is currently a working custom recovery for Redmi note 11s, if so which one and how to proceed ... thanks
https://forum.xda-developers.com/t/root-poco-m4-pro-4g-fleur-using-magisk.4449193/post-87460153
When you on Android 11 its working like charme, but when you on Android 12/13 it doesnt work, because of the encryption problem. you cant mount data...
when you will install (you need a sdcard):
1. boot to fastboot
2. fastboot flash boot "twrp.img"
3. fastboot reboot (reboots to twrp)
4. put the stock-boot.img on your sdcard and flash it with twrp to boot -> select both partitions (a/b)
5. go to advanced -> flash twrp
6. format data
7. reboot to recovery and test if you can mount data
8. reboot and enjoy!