[RECOVERY][UNOFFICIAL_MOD][DECRYPTION][UPDATED-02-01-2019] TWRP 3.2.3-4 for nitrogen

nijel8

Senior Member
Dec 24, 2011
2,356
5,560
0
All over US
It is a bug in your recovery. I've backup all partitions (not internal Data like pics eg.) and restored them...two times...no complete boot! Done 1000% the same with OrangeFox TWRP and my phone boots correct. I tested with Xiaomi.eu 9.1.3 without active lookscreen security.
Fix this my restore-problem, too?

By the way...link is dead...
Link was dead temporary, was fixing minor bug catched after first upload...

No, that problem is not fixed, but I debugged it already. And for your info it is a bug in Android 9.0 platform I am building on, not a recovery bug.
Google has removed make_ext4fs utility which use to format ext4 file systems on pre-Pie platforms. make_ext4fs was suppose to be removed with Oreo but they left it due to bugs in mke2fs Pie is using now. Well as it turns out mke2fs still has bugs and that is what you are experiencing... And we don't have alternative(make_ext4fs) in Pie now.
OrangeFox is built with Oreo so using make_ext4fs to format system and vendor. Now I have to hack Pie/recovery to compile make_ext4fs from Oreo for ext4 partitions formatting. I don't like it at all but if that's the only way I have no choice. We'll see...
In a mean time you can backup system and vendor as Image which always works.
 
Last edited:
  • Like
Reactions: silvbm
G

GuestK00171

Guest
Updated... Now any backup type works for any partition of any ROM, stock/custom doesn't matter, dm-verity doesn't matter, Magisk doesn't matter.
Tested...works now perfect. Thx a lot!

Are you able to add the password feature to lock twrp itself?
 

palmdude

Senior Member
Aug 6, 2010
185
18
0
Is there a bug regarding encrypting backups?

I set a password 'test1' and ran a backup for the recovery partition. Then another backup with password 'test2'.

After that I restored the first backup, but TWRP did not ask for any password? So it looks like the backup was not encrypted?

Version 1-9
 

Kegos

Member
Sep 5, 2017
19
1
0
Hi, nijel8!
Sometimes I do a full cleanup and do a smartphone reboot, twrp asks to do its settings. Sometimes the settings are saved. Why it depends? Does it matter?
 

Bartos81

Senior Member
Oct 3, 2013
190
47
48
I installed the latest beta version of MIUI Global, 9.1.24 by fastboot, launched and configured. I installed TWRP by ADB. Now TWRP can not see the internal memory, 0 MB. Why. Did MIUI improve the encryption?
Magisk installed.

Similarly, I installed previous versions of MIUI, I did not do the partition format data and installed TWRP which saw internal memory.
 
Last edited:

nijel8

Senior Member
Dec 24, 2011
2,356
5,560
0
All over US
Hi, nijel8!
Sometimes I do a full cleanup and do a smartphone reboot, twrp asks to do its settings. Sometimes the settings are saved. Why it depends? Does it matter?
If you wiped /data and wiped/flashed /persist yes, it's normal.

I installed the latest beta version of MIUI Global, 9.1.24 by fastboot, launched and configured. I installed TWRP by ADB. Now TWRP can not see the internal memory, 0 MB. Why. Did MIUI improve the encryption?
Magisk installed.

Similarly, I installed previous versions of MIUI, I did not do the partition format data and installed TWRP which saw internal memory.
Yes, MIUI Pie and Oreo handle data encryption differently so you might have problems decrypting data from Pie to Oreo and vice versa. But that should not affect TWRP decryption performance - it handles both no problem.
Most likely you have experienced one of these rear occasions when things go foobar...
 
  • Like
Reactions: Bartos81