[RECOVERY][grus] KudProject's Unofficial TWRP 3.4.0-0 [28-06-2020]

Search This thread

Zezebro

Member
Jul 21, 2019
9
0
Android 10

I have this TWRP flashed on my phone and it works flawlessly. But now that Android 10 is out for the mi 9 SE, I was wondering if this version of TWRP fully supports it.
I just wanna be sure before flashing it the custom xiaomi.eu ROM.
Thanks
 

elpaablo

Senior Member
Nov 18, 2017
291
114
I see you are on crdroid. I think data is not encrypted on crdroid ROM unlike on MIUI ROM.

I'm using MIUI 9.10.17 from xiaomi.eu. But I also had decryption issues with other 10 ROMs. It's just strange that I have system protected by a pin (and fingerprint, and face unlock), system says phone is encrypted and I'm accessing decrypted data in twrp without inserting pin.
 
Last edited:
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.
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,433
4,939
20
Kendari
kud.my.id
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.
We're on FBE since launch.

Sent from my MI 9 SE using XDA Labs
 

masterdex

Senior Member
Apr 16, 2011
1,190
350
Just to witness my experience. I'm on Xiaomi EU and I updated to the latest version released, as always I downloaded the rom, I installed from TWRP and done vipe cace and I restarted. When the memory started it was encrypted. I blamed the Major update from 9 to 10. I did a clean install with the given format all going smoothly and was surprised that I now have the memory decrypted and I don't even have to enter the PIN in recowery to install.

Inviato dal mio MI 9 SE utilizzando Tapatalk
 
We're on FBE since launch.
...

Jepp saw that later too :-/

Redispade achieved a working decryption with updateding libs an modified fstab (https://forum.xda-developers.com/mi-9-se/development/twrp-3-3-1-3-mi9se-t3949328) - maybe it's woth a look in his github repo to adapt it for your recovery.

Improvements may possible with the sometimes not working decrytion in cold boot (see: https://forum.xda-developers.com/mi-9-se/development/twrp-3-3-1-3-mi9se-t3949328/page9)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    https%3A%2F%2Fimg.xda-cdn.com%2FpSvihPyfhapF9LoHqaNVoQ9y7kw%3D%2Fhttp%253A%252F%252Flh3.googleusercontent.com%252F2HtVAF5zfNMlmKhF0QYqCSr1rsstB1btNfdKl7WvGTcZkOSKCYNxdXwsSizx9VhiPg%253Dw300


    This is basically a tl;dr thread.
    I don't want to make a thread that everyone will lazy to read.

    Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. It's a fully touch driven user interface; no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Disclaimer
    Code:
    /*
     * Your warranty might not be void (thanks Xiaomi). However...
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this RECOVERY
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    Requirements
    • Xiaomi Mi 9 SE (of course)
    • Unlocked bootloader
    • Some knowledge on how to deal with your device... and patience.

    Flashing Instructions
    I assume you've done (very) basic steps on preparing to flash your device.
    1. Reboot device to bootloader. If device is powered off, press and hold Power + Volume Down button until tinkering Mi Bunny with "FASTBOOT" text appears.
    2. Optional: Flash stock vbmeta with the following command (attached if needed):
      Code:
      fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    3. Under same directory as TWRP image and ADB/Fastboot executables (if ever required), type this command:
      Code:
      fastboot flash recovery twrp-3.x.x-y-KudProject-grus.img
      Where x and y are version of TWRP you're going to flash.
    4. IMPORTANT: After flashing, immediately press and hold Power + Volume Up for about 10 seconds to reboot to recovery.
    5. Swipe the option to allow modifications. This will prevent stock ROM from replacing recovery, however be aware that you might need to reflash stock vbmeta with disabled verity after that to be able to boot stock ROM!

    Downloads
    Webserver | MEGA
    Old releases only: OSDN | AndroidFileHost

    Known Issues
    • /dev/null

    Special Thanks
    • Dees_Troy and everyone behind TWRP
    • Everyone on Mi 9 SE community

    Device Sources
    13
    Changelogs
    twrp-3.4.0-0-KudProject-grus
    • Merged TWRP source changes up to 22 June 2020 (UTC+8)
    • Supports decryption of userdata on Android 10-based MIUI and custom ROMs using Android 10 crypto blobs (might not be backwards compatible)
    • Restored system and vendor (non-image) backup support
    • Added support for backing up persist (and the image)
    • Build some blobs from source
    • Updated remaining blobs from V11.0.2.0.QFBEUXM
    • Updated prebuilt kernel to latest Pie

    twrp-3.3.1-3-grus-20190802
    • Switched to source-built kernel
    • Updated blobs from MIUI China developer 9.7.4
    • Added support for F2FS in kernel (tell me if decryption breaks on this file system though)
    • Added persist into fstab
    • Added vendor-side touch firmware
    • Get CPU temperature from proper thermal zone
    • Disabled vbmeta checks
    • Only allow image backups for system and vendor
    • Symlinked /system to /system_root/system for backward compatibility
    • Misc stuffs
    • TWRP and f2fs-tools upstream changes

    twrp-3.3.1-2-grus-20190609
    • Fixed wrong USB-OTG mount point

    twrp-3.3.1-1-grus-20190603
    • Updated prebuilt kernel and DTBO from MIUI China developer 9.5.30
    • Corrected vendor image flashing
    • Support for wiping /vendor
    • Support for flashing and backup up (as part of boot) DTBO
    • Defined TW_SCREEN_BLANK_ON_BOOT
    • (Properly) excluded TWRP app
    • Included private recovery configuration

    twrp-3.3.1-0-grus-20190531
    • Initial build.
    3
    Notes
    • Don't use fastboot boot to boot the recovery; it'll proceed to boot system instead using recovery's kernel. If this happens with your current kernel's boot image security patch being older than recovery one, you're basically busted as FBE keys are upgraded the time newer combination of system + vendor + boot image security patches are detected.
      If you're out of luck in this situation, the only way to resolve is to format data (just backup your data to somewhere safe before doing so).
    • If you flash disabled vbmeta, you can't flash stock MIUI zips until the original vbmeta is restored.
    3
    3.4.0-0 is now available. Changelog is on 2nd post and two latest links are no longer updated.

    Enjoy.
    3
    Thanks for the work! Great seeing you here after ZenFone 2 and Redmi Note 4. Hopefully a KudKernel will be in the works(if not already).
    Kinda off-topic, but well rebasing over CAF is a tough job...

    Sent from my Mi 9 SE using XDA Labs
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