• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[cofface][3.1.1-0]Xiaomi 6 Twrp recovery[DECRYPTION SUPPORT]

Search This thread

reb00tz

Senior Member
May 30, 2011
66
22
Just want to tell you that this does makes the Xiaomi.eu ROM comes to bootloop.

The ROM works fine with the other version of TWRP though.

I did not get a boot loop either, but flashing the EU ROM (via the .zip) automatically runs disable-verity and disables forced encryption; although I have chosen not to root.

---------- Post added at 10:59 AM ---------- Previous post was at 10:34 AM ----------

@cofface: Thanks for the working TWRP with decryption, but I am having a different problem:

From my experience, decryption worked for me:
  • starting from official ROM (with enforced encrypted /data)
  • enable developer mode
  • "register" the phone to a Xiaomi account from the "developer options" (and wait the enforced 72 hours)
  • unlock bootloader (using the official Xiaomi tool)
  • set a screenlock password (not PIN or swipe)
  • fasboot flash TWRP to recovery partition
  • boot TWRP
  • enter screenlock password when prompted by TWRP

However, after flashing EU ROM (which, as per the above, TWRP automatically does disable-verity), I am then unable to encrypt again. The process goes as follows:
  • boot EU ROM
  • set up phone from first boot
  • set up screenlock password
  • from "Privacy", select "Encrypt" and start process
  • green Android mascot outline appears (normal for encryption process), but
  • phone reboots after 2 to 3 seconds (without the encryption progress bar appearing at the bottom of the screen)
  • system fails to boot, showing ROM's boot failure reporting (asking for Xiaomi account and password, but reporting fails due to no connectivity) - only action is to shut off
  • going back to TWRP and formatting /data "fixes" the boot failure

I have tried several variations:
  • with and without developer mode enabled
  • with and without linking Xiaomi account
  • with and without screenlock password

So, the question here is how do I encrypt after flashing EU ROM? Or is encryption tied closely to disable-verity (not from what I have researched)?
 
Last edited:

andiak

Member
Jul 19, 2014
29
2
I have a problem now, i have installed twrp and then i have wiped everything because i want a clean install. i downloaded the rom from xiaomi.eu . After that i want to install the rom via adb sideload. But that dont work :/
at about 50% it cancels. something about cust volume
Can someone help me ?
 

OberZine

Senior Member
May 28, 2014
143
6
www.oberzine.com
I can't seem to unlock my bootloader, it either says network error when signing in, or once it's signed in, it says your device isn't supported by mi unlock? I've followed all the instructions. but this is all that's happening??? Help?
 

CreaB

Senior Member
Jul 26, 2010
268
19
Hi there,

sadly i am not able to decrypt data in twrp. Is there anybody with same problems or an idea for solution(s)?

Thanks in advance!

log says:

Code:
I:Command 'decrypt *****' received
I:Set page: 'singleaction_page'
I:operation_start: 'TWRP CLI Command'
Attempting to decrypt data partition via command line.
crypt_ftr->fs_size = 235175864
Using scrypt with keymaster for cryptfs KDF
Trying to convert ascii string of odd length
Failed to convert passwd from hex, using passwd instead
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
Cannot create dm-crypt device 16
Error creating decrypted block device
crypt_ftr->fs_size = 235175864
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
Signing safely-padded object
Cannot create dm-crypt device 16
Error creating decrypted block device
Failed to decrypt data.
I:Done reading ORS command from command line
I:operation_end - status=0
I:Set page: 'main2'
 

schr01

Member
Sep 29, 2010
46
14
Oldenburg
I have a question about the restore function in this TWRP recovery!
Has someone tested the restore function with different ROM backups?
I got problems only with different backups (e.g. officiell rom global 8.2,2 and Epic rom 7.8.3.1). The restored ROM did not work. By a single ROM backup, the restored ROM was working without any problems.
 

mrkoernchen

Member
Dec 22, 2016
23
6
Thank you for your awesome Recovery. Finaly I was able to flash the latest EU ROM. Sent you an donation.

Keep up your awesome work.
 

demone83

Member
Jun 3, 2011
5
1
To decrypt, just enter your PIN in the password field on the first TRWP screen when prompted. Then it will be accessible and the files will be displayed correctly.
 
  • Like
Reactions: fies76

Top Liked Posts

  • There are no posts matching your filters.
  • 26
    Recovery base on TWRP 7.1


    Add extra Option:
    1、Root phone;
    2、Disable boot verify;
    3、Support adb && mtp.
    4、Default Language:Engligh
    5、support decryption data;

    xiaomi6_en1.png

    xiaomi6_en2.png

    xiaomi6_en3.png

    xiaomi6_en4.png




    Flash Method:
    1、First must be unlock bootloader;
    2、Flash command:
    HTML:
    adb reboot bootloader
    fastboot flash recovery cofface_recovery_sagit_en.img
    fastboot boot cofface_recovery_sagit_en.img

    3、Download: https://www.androidfilehost.com/?fid=817550096634771569

    4、Chinese Links:https://blog.cofface.com/archives/2461.html

    if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc:fingers-crossed:
    PAYPAL DONATION LINK


    email:[email protected]
    1
    Hii try this Root Guide This is another twrp 3.1 recovery.
    I had add root phone option in twrp,used supersu 2.79 version.
    1
    To decrypt, just enter your PIN in the password field on the first TRWP screen when prompted. Then it will be accessible and the files will be displayed correctly.
    1
    I have quite a big problem as touch isnt working in the recovery. Im stuck on the screen that says "Swipe to Unlock"...
    That's an issue which seems to appear on any device. Just shut down your phone completely first and boot directly into Recovery Mode ( Vol+ and Power). Then the Touchscreen works perfectly.
    1
    The best works perfect:good::good::good:
    Recovery base on TWRP 7.1


    Add extra Option:
    1、Root phone;
    2、Disable boot verify;
    3、Support adb && mtp.
    4、Default Language:Engligh
    5、support decryption data;

    xiaomi6_en1.png

    xiaomi6_en2.png

    xiaomi6_en3.png

    xiaomi6_en4.png




    Flash Method:
    1、First must be unlock bootloader;
    2、Flash command:
    HTML:
    adb reboot bootloader
    fastboot flash recovery cofface_recovery_sagit_en.img
    fastboot boot cofface_recovery_sagit_en.img

    3、Download: https://www.androidfilehost.com/?fid=817550096634771569

    4、Chinese Links:https://blog.cofface.com/archives/2461.html

    if u feel that this work has helped u OR u think that the work i put into making this is worthy of donations, then click on the following link for buying me some coffee/beer/etc:fingers-crossed:
    PAYPAL DONATION LINK


    email:[email protected]