Formatting /data for a custom "ROM" ??? NO !!!

gringo80

Senior Member
Jun 8, 2018
467
438
63
Hi all,

A lot of people here and there are struggling to boot their new custom roms.


To be short :
=========

format /data (not wipe) is " NOT " mandatory for every new rom installed like many think because this will erase the whole " internal storage ".

To avoid that, just do a simple " wipe ". Then go (with the TWRP file manager) to /data and delete the residual "encryption" folders and files and keep only /media folder.

Doing " format " is only needed when you change your file system (for a kernel reason) : ext4 <=> f2fs !!!

Don't use any " Encryption disabler .zip ", otherwise your FOD will not work !!!

That's all.
 
Last edited:

Smilex93

Senior Member
Jun 15, 2012
107
81
28
Anywhere in Germany
This method will not Work at 100%
It depends on the encryption Key from the Rom
Deleting /Data without deleting Media will simply Work to have a bootable State of the flashed Rom but your internal Data will be encrypted and your Rom cant decrypt /Data/media anymore also the Recovery after reboot.
it Happens because of a different Decryption Key in /Data

For Safety and Security reasons i would Not recommend doing this, unless you have a Backup.
 

gringo80

Senior Member
Jun 8, 2018
467
438
63
This method will not Work at 100%
It depends on the encryption Key from the Rom
Deleting /Data without deleting Media will simply Work to have a bootable State of the flashed Rom but your internal Data will be encrypted and your Rom cant decrypt /Data/media anymore also the Recovery after reboot.
it Happens because of a different Decryption Key in /Data

For Safety and Security reasons i would Not recommend doing this, unless you have a Backup.
1.the rom boots and can't decrypt data anymore ??? wtf is this ??? a new science ???

2.where do you think encryption keys are stored ??? in the cloud ???

3. a device with FOD requires encryption in data otherwise the FOD will not work !

4. how do you think i built the TWRP for this device ???? (check my first thread in the forum for this device)

You should never talk about things you don't know very well !!!

The world is upside down these days ... and i'm really bored with idiocracy !
 
Last edited:

Smilex93

Senior Member
Jun 15, 2012
107
81
28
Anywhere in Germany
Sorry If i have Not so much knowledge.
But i have done your steps above
Went from Evo X to Derpfest Rom
Everything was fine then i realised my Internal Storage was encrypted.

Maybe i forgot to mention ive used Official Twrp Not your twrp, also maybe its my own mistake

Thank you for your serious words.
 

gringo80

Senior Member
Jun 8, 2018
467
438
63
Sorry If i have Not so much knowledge.
But i have done your steps above
Went from Evo X to Derpfest Rom
Everything was fine then i realised my Internal Storage was encrypted.

Maybe i forgot to mention ive used Official Twrp Not your twrp, also maybe its my own mistake

Thank you for your serious words.
All devices with FOD (fingerprint on display) require encryption to work (These are the new standard policies by Qualcomm & Google). If you use a decryption script that you can find here and there ... your FOD will not work !!! It's not a normal fingerprint ... can you understand ???

My TWRP was made 3 months before the official one. It's built by stock official blobs from xiaomi !

The official TWRP uses a generic kernel not official kernel by xiaomi ! So there are and will be always
some stuffs missings !!! That's why there are many people struggling with backups and rom installations !
 
Last edited:

khedr30000

Senior Member
Dec 20, 2013
449
65
0
EGYPT
All devices with FOD (fingerprint on display) require encryption to work (These are the new standard policies by Qualcomm & Google). If you use a decryption script that you can find here and there ... your FOD will not work !!! It's not a normal fingerprint ... can you understand ???

My TWRP was made 3 months before the official one. It's built by stock official blobs from xiaomi !

The official TWRP uses a generic kernel not official kernel by xiaomi ! So there are and will be always
some stuffs missings !!! That's why there are many people struggling with backups and rom installations !
if i am just going from Miui EU to New or older MIUI Eu roms ... will i have be encrypted also or not ?
 

JBolho

Senior Member
Nov 8, 2011
1,315
1,087
133
Porto
Hi all,

A lot of people here and there are struggling to boot their new custom roms.


To be short :
=========

format /data (not wipe) is " NOT " mandatory for every new rom installed like many think because this will erase the whole " internal storage ".

To avoid that, just do a simple " wipe ". Then go (with the TWRP file manager) to /data and delete the residual "encryption" folders and files and keep only /media folder.

Doing " format " is only needed when you change your file system (for a kernel reason) : ext4 <=> f2fs !!!

Don't use any " Encryption disabler .zip ", otherwise your FOD will not work !!!

That's all.
To avoid encryption problems between flashing different roms the easiest thing to do is just go to lockscreen settings and delete the PIN or Pattern, this will delete the FP stored as well and you can then flash any rom you want without issues. No more encryption problems and no need to flash any zips and kill the FOD.
Also, I always wipe data as well as "internal storage" if changing roms, there's nothing wrong with that... That way I have a perfectly clean start.
 

NaassomDourado

Senior Member
Apr 3, 2017
150
58
28
Imperatriz
Hi all,

A lot of people here and there are struggling to boot their new custom roms.


To be short :
=========

format /data (not wipe) is " NOT " mandatory for every new rom installed like many think because this will erase the whole " internal storage ".

To avoid that, just do a simple " wipe ". Then go (with the TWRP file manager) to /data and delete the residual "encryption" folders and files and keep only /media folder.

Doing " format " is only needed when you change your file system (for a kernel reason) : ext4 <=> f2fs !!!

Don't use any " Encryption disabler .zip ", otherwise your FOD will not work !!!

That's all.
U used some roms or only your lineage?