Question Leave data unencrypted

Search This thread

vodkinagdan

Senior Member
Aug 29, 2010
282
162
Moscow
Hello! Is there any possibility now to leave data partition unencrypted?
Tried to install miui.eu with PBRB with dfe toggles enabled - no result.
Tried to install same through TWRP + latest dfe - no result
Tried to install havoc treble + dfe - no result.
Am I missing something?
UPD
I've created DFE patch for 12.0.6.0 xiaomi.eu firmware
Original firmware is hosted here
Patch is here.
You should replace files in original firmware with files from patch and flash it through recovery
I also flashed latest DFE(may be not beeded)
And latest stable magisk(may be also not needed)
 
Last edited:
  • Like
Reactions: keyzjn and mphycx

vodkinagdan

Senior Member
Aug 29, 2010
282
162
Moscow
If your data partition is encrypted right now, you have to format it first, then flash DFE to prevent encryption. I'm guessing that's what you did?
Yes, i did it and it was not helpfull. Seems that i've found something. Looks like I should repack vendor image with patched fstab.qcom and then reflash it through fastbootd. Because of superimage dfe patch cannot replace this file(vendor is RO even in recovery mode)
For now i've found this project, seems exactly what I need
 
  • Like
Reactions: alecxs

kamild_

Senior Member
What's the pros of leaving data unencrypted?
The only real benefit I know of is being able to switch between different ROMs without having to format data - it would still be recommended to wipe it, but you would be able to preserve your internal storage between ROMs.
Theoretically there's also some performance that you could reclaim by getting rid of encryption, but on such powerful SoC any gains would not be noticable maybe outside of benchmarks.
 

vodkinagdan

Senior Member
Aug 29, 2010
282
162
Moscow
What's the pros of leaving data unencrypted?
Minor CPU performance and NAND lifetime gain. Also if you somehow clear contents of /metadata partition - you will loose all of your files on /data partition ( and internal sd as /data/media too).

Also several years earlier days I've faced a problem when new firmware can't decrypt data after previous one(it was in lolipop times as I can remember). So, if I can preserve /data unencrypted - I'll try to do so.
Do we have to do this unpacking and repacking process for every new version of stock ROM?


Seems yes, at least for now. Not for every rom, just for vendor part.
You can apply this patch to any rom based on 12.0.6.0 vendor. You'll only have to edit original dynamic_partitions_op_list file from rom archive - replace "resize vendor" string with
resize vendor 1563119616
 
Last edited:

Abystar

Member
Mar 29, 2012
23
2
Thanks !!! It works !!! This is what I have been looking for...

Screenshot_2021-05-15-08-32-53-952_com.android.settings.jpg
 

Haldi4803

Senior Member
Oct 14, 2010
4,207
1,732
Xperia XZ2
Samsung Galaxy Tab S7 / S7 Plus
Yes, i did it and it was not helpfull. Seems that i've found something. Looks like I should repack vendor image with patched fstab.qcom and then reflash it through fastbootd. Because of superimage dfe patch cannot replace this file(vendor is RO even in recovery mode)
For now i've found this project, seems exactly what I need
So.... To get an unencrypted phone on Android 12 Custom ROMS you still need to flash patched Vendor?

Twrp 3.6 for 12 can't encrypt System/User data.
So to create backups one would need an unencrypted phone. Correct?

To switch between different Android 12 Custom ROMS with Userdata and system ready to flash back.
 

vodkinagdan

Senior Member
Aug 29, 2010
282
162
Moscow
So.... To get an unencrypted phone on Android 12 Custom ROMS you still need to flash patched Vendor?

Twrp 3.6 for 12 can't encrypt System/User data.
So to create backups one would need an unencrypted phone. Correct?

To switch between different Android 12 Custom ROMS with Userdata and system ready to flash back.
If rom is based on OSS vendor - for android 11 this patch working well now. You can try it on A12
 

Attachments

  • en_de-crypt_v3__OSS_vendor_ROMS_.zip
    999.3 KB · Views: 84
  • Like
Reactions: Haldi4803

Top Liked Posts