[grus][recovery] TWRP-3.4.0-2-Mi9SE

Search This thread

chris5s

Senior Member
May 27, 2009
1,668
342
Scotland
I don't think it's necessary in step 3 to wipe system, in fact I'm sure I have read that you *shouldn't do that!
If you want to run xiaomi.eu ROM, this worked for me (from a clean global ROM, unlocked bootloader):
Flash TWRP; reboot to recovery (pressing vol + and power works too); format data; reboot recovery; transfer xiaomi.eu ROM to phone; flash ROM and reboot to system.
If you want root, flash Magisk 20.4 after installing ROM (you may need to reboot recovery before doing this to get it to flash). Then reboot to system

Peace
 
  • Like
Reactions: mhoogveld

mhoogveld

New member
Jun 14, 2020
2
1
I don't think it's necessary in step 3 to wipe system, in fact I'm sure I have read that you *shouldn't do that!
If you want to run xiaomi.eu ROM, this worked for me (from a clean global ROM, unlocked bootloader):
Flash TWRP; reboot to recovery (pressing vol + and power works too); format data; reboot recovery; transfer xiaomi.eu ROM to phone; flash ROM and reboot to system.
If you want root, flash Magisk 20.4 after installing ROM (you may need to reboot recovery before doing this to get it to flash). Then reboot to system

Peace

This worked! Thanks!
I flashed stock. After 10+ min, ended in an error about something with a checkpoint. This didn't seem to mater because it seem to start up fine.
After flashing TWRP, I accidentally also flashed vbmeta.
After ROM install and reboot it showed the MIUI text/logo (for which felt like a decade) and went on from there.
I probably was the change in the wiping step that made the difference.

Don't need root, so skipped that step.

Thanks again!
 
  • Like
Reactions: chris5s

atmauki

Member
Feb 15, 2013
47
21
Surakarta
I have tried these exact steps, but I'm still stuck in booting to recovery every time. I'm not sure how I can solve this. Am I missing a step or doing something wrong?

The 7 steps, as I have performed them, in more detail:
1. Flash latest Q fastboot rom with miflash
Downloaded latest official MIUI 11 fastboot ROM for Mi 9 SE from what appeared to be the most reliable source. https://c.mi.com/oc/miuidownload/detail?guide=2. (Source: https://c.mi.com/global/miuidownload/index)
After unpacking the 3Gb file named "grus_global_images_V11.0.2.0.QFBMIXM_20200310.0000.00_10.0_global_0fc5ca5acd.tgz", MiFlash would accept is and I flashed it to my phone (remember to choose "clean" and to bottom in MiFlash and not "clean_and_lock" so you don't have to unlock the bootloader again)
This resulted in my Mi 9 SE booting into a fresh stock MIUI 11. Always nice to know I can fall back to this again if all else fails...
2. Flash recovery twrp and vbmeta and boot into recovery
I flashed twrp-3.4.0 for Mi9SE from https://github.com/redispade/device_xiaomi_grus-twrp/releases

and (without reboot) flashed vbmeta.img from link in second post on https://forum.xda-developers.com/mi-9-se/how-to/guide-how-to-flash-twrp-gsi-roms-mi-9-se-t3939254 (again, the best matching source I could find)

Then rebooted by issuing (could not find a better way to "boot recovery" from a phone in fastboot-mode)
The phone rebooted into recovery.
3. Wipe system, cache, dalvick
In TWRP: Main menu- > Wipe -> Advanced wipe. Checked Dalvik, Cache and System. Swiped to Wipe.
4. Format data
In TWRP: Main menu- > Wipe. Clicked the "Format Data" button (next to "Advanced Wipe") and confirmed.
5. Reboot recovery
In TWRP: Main menu- > Reboot -> Recovery
6. On recovery mode, copy your rom into your device(from otg or PC)
Once in TWRP again, copied MIUI 12 ROM from https://xiaomi.eu/community/threads/20-6-11.56171/ to phone by issuing
In TWRP: Main menu-> Install. Selected the ROM I had just uploaded in /data. Left the "Check zip signature" checked and "Reboot after install" unchecked. Swiped to install. (I've tried both with and without installing the TWRP app after the installation)
7. Reboot
Rebooted the phone from TWRP Main menu -> Reboot -> System

After this, it still just keeps rebooting to recovery (TWRP).
What am I missing here?

On any tutorial to instal custom recovery for this device, never suggest reboot to recovery from terminal, after flashed custom recovery and vbmeta, just press power button and volume + to enter recovery mode
 

R!ffRaff

Senior Member
Oct 21, 2019
221
41
@redispade

I use official Bliss ROM (Android 10) on my 9SE. Unfortunately the online update does not work. when installing the phone only boots into twrp. after that the android no longer starts a new complete clean is necessary. a manual update via twrp works smoothly. can you tell me whether it is twrp or the image? maybe you can test it yourself? the rest works for me everything.
 

R!ffRaff

Senior Member
Oct 21, 2019
221
41
Thank you for your answer.
Do you mean shrp form march 1 only? So only release 14 not the current release 18 from may?
I thought shrp was based on twrp. can you briefly explain to me why this should only work with shrp? is this still fixed?
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
There's something wrong on all the recoveries released after march 1 and we haven't been able to debug it yet. I don't have time to experiment with my phone since I use it daily and I need it. The only issue is with ota updates. You can use old versions for ota updates and flash back the latest once you have a working system. Feedback from other users is too slow to find a solution. I have tested 5 beta versions in the past 2-3 weeks
 

v.konvict

Senior Member
Dec 1, 2012
1,661
928
Mwanza
There's something wrong on all the recoveries released after march 1 and we haven't been able to debug it yet. I don't have time to experiment with my phone since I use it daily and I need it. The only issue is with ota updates. You can use old versions for ota updates and flash back the latest once you have a working system. Feedback from other users is too slow to find a solution. I have tested 5 beta versions in the past 2-3 weeks

I need to follow this as my gf mi9se is running xiaomi.eu stable build. But whenever i try to install an update i end up stuck and having to do a clean install with miflash tool. I hope a fix can be found soon
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
I actually did an ota update from miui 11 xiaomi.eu stable to miui 12 stable, both android 10. It worked flawlessly on my phone with twrp, so I assume there's something wrong with your flashing process. I am not able to reproduce this on my device. Check the flashing tutorials on xda and telegram

Btw, try installing shrp of march 1 or twrp version 14 or previous to check if it solves your issue.

Sent from my Mi 9 SE using Tapatalk
 
Last edited:

v.konvict

Senior Member
Dec 1, 2012
1,661
928
Mwanza
I actually did an ota update from miui 11 xiaomi.eu stable to miui 12 stable, both android 10. It worked flawlessly on my phone with twrp, so I assume there's something wrong with your flashing process. I am not able to reproduce this on my device. Check the flashing tutorials on xda and telegram

Btw, try installing shrp of march 1 or twrp version 14 or previous to check if it solves your issue.
Well i flashed the new miui 12 stable over miui 11 that was there then magisk 20.4 and wiped cache then it would only reboot to recovery no matter what i would do after that
Sorry how did you update your rom?
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
Well i flashed the new miui 12 stable over miui 11 that was there then magisk 20.4 and wiped cache then it would only reboot to recovery no matter what i would do after that
Sorry how did you update your rom?
I downloaded the file from sourceforge as instructed by team xiaomi.eu, and then updater, select file.

Sent from my Mi 9 SE using Tapatalk
 
  • Like
Reactions: v.konvict

v.konvict

Senior Member
Dec 1, 2012
1,661
928
Mwanza
I downloaded the file from sourceforge as instructed by team xiaomi.eu, and then updater, select file.
On mine updater said recovery was encrypted. And because i was trying to keep root i decided to go manually into recovery and flash. And also flash magisk. Maybe that is why. Flashing magisk could have caused that
 

v.konvict

Senior Member
Dec 1, 2012
1,661
928
Mwanza
I do have Magisk. OTA just updated the rom without magisk. I booted the rom, let it finish loading, restarted to twrp, installed magisk, all working as before(Including edXposed)
Okay thanks will do that next time as well. But you are using the older twrps before march 1 to install the ota. Or it works just fine with this version of twrp
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
Okay thanks will do that next time as well. But you are using the older twrps before march 1 to install the ota. Or it works just fine with this version of twrp

I am using the new beta 5(that you can find on telegram channel), which will be released during the weekend or next week. But technically it should work with 3.4.0.0 too
 
  • Like
Reactions: v.konvict

Dju_78

Member
Aug 4, 2020
5
4
Hi
After flashing my mi 9 se with the latest twrp (twrp-3.4.0-1-grus) and vbmeta, it nows keeps booting on twrp
It cant boot on the main system anymore.
I read all this thread, did all the steps correctly, but still no luck
I tried to reflash twrp, then vbme, then the original rom (miui_GRUSEEAGlobal_V11.0.6.0.QFBEUXM_508141efd0_10.0.zip)
But still rebooting in twrp every time.
I dont know how to get it back
Any idea ?
Thanks :)

---------- Post added at 06:00 PM ---------- Previous post was at 05:18 PM ----------

ok, i got it back, despite i tried every thing.. except flash shrp (https://forum.xda-developers.com/mi-9-se/development/recovery-sky-hawk-recovery-project-t4046451)
instead of twrp :p
so :
reboot in fastboot
fastboot flash recovery shrp.img
reboot with power and volume+
boot in recovery on shrp > wipe > dalvik/cache/data/system/vendor
reboot recovery
format data
reboot recovery
copied the official grus rom zip file on the pĥone
from shrp install > select the zip file
finally reboot
and it's ok :)
 
  • Like
Reactions: stavca and :s///g

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Latest official twrp-3.5.2_9-0 @ https://eu.dl.twrp.me/grus/
  • 31
    Team Win Recovery Project [TWRP]


    Latest version : 3.4.0-2-Mi9SE

    Credits to https://github.com/kudProject for initial version device tree of this recovery.
    Original kernel source: https://github.com/pengus77/kowalski-grus Thanks @pengus77
    Source of modified kernel(included in TWRP): https://github.com/redispade/kowalski-grus

    Remember to join the telegram group for support:

    Q: Does this recovery work with <INSERT ROM NAME HERE>?
    A: I use Xiaomi.eu latest stable rom, the recovery is tested with that rom by me, and when released, everything should be working, unless stated otherwise. I don't support weekly roms(beta) and I can't test with other roms as Grus is my daily driver. For every other rom, use the Telegram group for support. You are welcome to report bugs, but expect no ETA.


    Ensure to read all the instructions. The download link is at the end for those who already know them.
    You've been warned :)


    Changelog :
    * twrp-3.4.0-2-Mi9SE:
    Update kernel to Kowalski Kernel r2.2.14


    - Include latest twrp code changes from 02 Aug to 10 Nov 2020 https://gerrit.twrp.me/q/status:merged

    Older changelogs on github


    Flash using existing twrp or in fastboot using command:
    Code:
     fastboot flash recovery twrp-PUTVERSIONHERE-Mi9SE.img
    Install vbmeta.img (only if it reboots to fastboot)
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

    Download Link :
    GitHub
    4
    Just some Info:
    Android has chandeg from FDE (full disc encryption) to FBE (file based encrytion) with the upgrade to Android 10.
    (src: https://source.android.com/security/encryption/file-based.html)

    That gave me headache in the earlier HTC M7/M9 and Mi MIX times years ago - maybe there is a quickwin possible by changing the recovery.fstab or twrp.fstab to a compatible FBE mode.

    Thanks for the help. The recovery was FBE compatible since the beginning, but it was missing the correct encryption flags in recovery.fstab
    Posted updated version in first page
    2
    It's working with MIUI, though. TWRP doesn't ask for password, but we can access data.
    2
    Posted update with official internal storage backup
    2
    I think all you have to do is flash twrp. You only flash vbmeta if you're stuck on fastboot. As you're on stock MIUI I don't think that'll happen.

    So, flash stock rom with mi flash tools, go to fastboot and flash this twrp, reboot to recovery (using power and vol up), install magisk and reboot to system.

    PS. If you use this recovery, you don't have to download magisk. Just go to advanced and there's an option to install magisk.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone