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

Search This thread

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
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
 
Last edited:

shisaya24

Senior Member
Mar 10, 2013
183
41
Redmi Note 9 Pro
Until now most people recommended the Chinese twrp for muiu Roms, and another one for gsi or non-MIUI Roms.

Is your twrp capable of dealing with both?

And what about encryption... Do I still need to format internal storage when I switch from MIUI to custom Rom or from one MIUI to another (for example, from xiaomi.eu to Masik MIUI)?

Thanks in advance for your time answering my questions :)
 
  • Like
Reactions: Fransis88

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
I am currently using this with xiaomi.eu rom
The internal storage encryption problem is due to the kernel security date. If you install a kernel (or rom or recovery containing a different kernel from what you have)with higher security patch than what you actually have, the encryption keys get automatically updated and you can decrypt that storage only with that kernel. With TWRP this is not an issue, as long as you don't use the fastboot boot command. Anyway, in this recovery there are included zips to backup and restore internal storage to usb_otg so you can backup everything if switching roms. Always remember to copy TWRP backups out(or backup directly to usb_otg) because these scripts do not backup TWRP folder.
 

guacianiero

Member
Jul 15, 2012
49
1
I am currently using this with xiaomi.eu rom
The internal storage encryption problem is due to the kernel security date. If you install a kernel (or rom or recovery containing a different kernel from what you have)with higher security patch than what you actually have, the encryption keys get automatically updated and you can decrypt that storage only with that kernel. With TWRP this is not an issue, as long as you don't use the fastboot boot command. Anyway, in this recovery there are included zips to backup and restore internal storage to usb_otg so you can backup everything if switching roms. Always remember to copy TWRP backups out(or backup directly to usb_otg) because these scripts do not backup TWRP folder.

backup doesn't work for me. also this version does not read the internal partition and from error. how can i solve? both backup and recovery are essential for me
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
backup doesn't work for me. also this version does not read the internal partition and from error. how can i solve? both backup and recovery are essential for me
Read the original post once again. Internal storage cannot be backed up directly by twrp. But you can find the scripts that I made in advanced -> tools

Sent from my Mi 9 SE using Tapatalk
 

guacianiero

Member
Jul 15, 2012
49
1
Read the original post once again. Internal storage cannot be backed up directly by twrp. But you can find the scripts that I made in advanced -> tools

Sent from my Mi 9 SE using Tapatalk
sorry, but what is the problem ?. I've never had this problem with other xiaomy cell phones. Through scripts I can backup and restore?
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
Twrp does not have official support to backup internal storage. Our device does not have sdcard. Standard backup works perfectly Screenshot_2019-07-19-10-42-07.jpg

Sent from my Mi 9 SE using Tapatalk
 

redispade

Senior Member
Apr 18, 2013
81
105
Tirana
sorry again. But how standard backup works. I use the script and I need an otg usb adapter? If I connect the phone directly to the PC with cable in recovery it does not recognize it
Exactly, your pc is not usb otg. On your pc just copy files to a folder

Sent from my Mi 9 SE using Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 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