[RECOVERY] TWRP 3.1.1 for libra/aqua

adewisman

Senior Member
Feb 2, 2013
558
646
0
Bandung
Great. No problem.



Regarding MIUI OTA, investigation shows that I'd need to do some ugly hacks to support it. I'll think about it but I don't intend using MIUI or flashing it so I'll work blindly. And ZCX doesn't have sources anywhere so I can't look at it.
My dear @Cozzmy13 theres nothing wrong with your twrp build on flashing ota actually, only handling the reading of the system build.prop is.

today out of my curiousity on this :D I try to delete those assertive line from the ota updater scripts.
Code:
ui_print("Source: Xiaomi/libra/libra:7.0/NRD90M/7.8.xx:user/release-keys");
ui_print("Target: Xiaomi/libra/libra:7.0/NRD90M/7.8.xx:user/release-keys");
ui_print("Verifying current system...");
getprop("ro.build.fingerprint") == "Xiaomi/libra/libra:7.0/NRD90M/7.8.xx:user/release-keys" ||
    getprop("ro.build.fingerprint") == "Xiaomi/libra/libra:7.0/NRD90M/7.8.xx:user/release-keys" ||
    abort("E3001: Package expects build fingerprint of Xiaomi/libra/libra:7.0/NRD90M/7.8.xx:user/release-keys or Xiaomi/libra/libra:7.0/NRD90M/7.8.xx:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
show_progress(0.100000, 5);
note: dont mind the xx as it is unreleased beta rom, will sent you a pm if you need the updater script
and it succesfully patch the needed partitions. but it failed on bypassing dm-verity check, so I just installed magisk after the bootloop and everything works like a charms, and I've already backup the stock boot partitions, for the next ota update patching.

I attached the recovery log incase you need it. hope you will fix the reading... good job :good:
 

Attachments

ch55

Member
Sep 6, 2010
17
4
0
Good day.

My Mi4C has Lollipop bootloader + LineageOS 14.1 (official) + this TWRP .

After setting up Encryption with password in OS, TWRP can't decrypt data.

Any suggestions?
 

diegocb999

Member
Nov 9, 2016
22
0
0
Jaru-RO
Hi everyone, I have a Mi4C and I am using the ROM of xiaomi.eu and resentmento I was to carry out the updating procedure, but the device did not go into replay mode (TWRP). and now I do not know what to do, someone can help me in this problem.
 

laserkater

Senior Member
Sep 3, 2015
66
32
38

Attachments

laserkater

Senior Member
Sep 3, 2015
66
32
38
Sorry for bumping, but I just remembered I had a Redmi 3 (ido) for a short amount of time - decryption also wasn't possible in TWRP.
Maybe it's a Xiaomi problem?
 

ThePeKo

Member
Sep 11, 2011
36
3
0
@ Home
Hi, I'm also curious about the failing decryption.

I can't get the adb logcat command to work in TWRP.
The command $ adb devices just states that my device is unauthorized.

Apparently the logcat commando will probably not work anyway: https://github.com/TeamWin/Team-Win-Recovery-Project/issues/352

Please find my recovery log attached.
I have the same error in my log of the failed encryption
Code:
Using scrypt with keymaster for cryptfs KDF
keymaster module name is Keymaster QTI HAL
keymaster version is 256
Found keymaster1 module, using keymaster1 API.
could not open keymaster device in keystore (Operation not permitted)
Failed to init keymaster
Signing failed
kdf failed
failure decrypting master key
Failed to decrypt master key
Sorry for bumping, but I just remembered I had a Redmi 3 (ido) for a short amount of time - decryption also wasn't possible in TWRP.
Maybe it's a Xiaomi problem?
I have one working TWRP image!
3.0.2-0 of Team Superluminal with working decryption of encrypted filesystem by Android Marshmallow

Code:
Size: 52711424

md5sum
0febfa69c544240b061a8acb72ec208e  libra_ts_twrp_3_0_2_0.img

sha256sum
8e54fa18706981d9f64849031ed68e8096b5daf5e0cf2d520e110e2e636c121b  libra_ts_twrp_3_0_2_0.img
It's following recovery Image: http://www.teamsuperluminal.org/download/libra_ts_twrp_3_0_2_0-img/

UPDATE:
Encryption is not working under Android 7 with Linaege OS 14.1!
 
Last edited:

ThePeKo

Member
Sep 11, 2011
36
3
0
@ Home
New build is up, twrp-20171221-0928.img.
Encryption should be fixed now on Nougat, but my libra is on Oreo (on which I had to hack up encryption-related blobs from bullhead) and I can't test Nougat right now. @ThePeKo @laserkater @groche97 @ch55

(I know this took ages, and I'm sorry for that)
Thanks for your work!
Encryption still not working now from build twrp-20171221-1538.img.
 
Last edited:
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