MM encrypted sd - Galaxy S 5 Q&A, Help & Troubleshooting

Hi, now I have custom Marshmallow ROM, and as far as I know in MM all storage is encrypted by default, internal and sd. But my ROM is slow as hell and I must flash another one, and my question is, do I have to decrypt this storage before or something? If I make a full wipe, and flash another ROM can I loose access to my data, because it will be encrypted?

Related

Can't decrypt storage in TWRP

I switched from RROS back to OxygenOS, but now TWRP can't decrypt my storage.
Does anyone know a solution other than removing the password every time I want to use TWRP? Or should I format the storage and then restore everything?

Can I recover internal storage data using this method?

So, I flashed DotOS v3.0, but I had to format data in TWRP to remove encryption. But I didn't take a backup as flashing custom ROMs never required to backup internal storage. There were some pictures that I lost. I came across this method and I wonder if it works on Zenfone 3 ZE520KL?
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Please help me. I need to know if there's a way.

De to Encryption

Hi everyone, i want to encrypt my phone cause i am on a vacation. I am decrypted since day one and i am a little confused about encryption. TWRP is the latest by codeworx and i am decrypted on latest oos stable and xxx 7.7 and Weeb Kernel. When i flash the Rom again without no_verity, are my files on internal storage gone? Can i access them in TWRP? What are your experience? Thx in advanced, Time for some vacation
dd0s said:
Hi everyone, i want to encrypt my phone cause i am on a vacation. I am decrypted since day one and i am a little confused about encryption. TWRP is the latest by codeworx and i am decrypted on latest oos stable and xxx 7.7 and Weeb Kernel. When i flash the Rom again without no_verity, are my files on internal storage gone? Can i access them in TWRP? What are your experience? Thx in advanced, Time for some vacation
Click to expand...
Click to collapse
Hello, if you flash the rom without no verity but did not format internal storage afterwards, the phone won't boot.
You need to format internal storage so OxygenOS can encrypt the internal storage upon boot, but that's only possible if it's formatted before.
strongst said:
Hello, if you flash the rom without no verity but did not format internal storage afterwards, the phone won't boot.
You need to format internal storage so OxygenOS can encrypt the internal storage upon boot, but that's only possible if it's formatted before.
Click to expand...
Click to collapse
Okay, so a internal data Backup is important.
dd0s said:
Okay, so a internal data Backup is important.
Click to expand...
Click to collapse
Yeah it's a little bit inconvenient, but sadly the encryption cannot be forced otherwise on OxygenOS
strongst said:
Yeah it's a little bit inconvenient, but sadly the encryption cannot be forced otherwise on OxygenOS
Click to expand...
Click to collapse
Thx, this was helpful

Decrypting "Internal Storage" aka "/data/media/0" aka "/sdcard"

Hi
I was trying to flash xiaomi.eu (xiaomi.eu_multi_HMK20MI9T_V12.5.2.0.RFJCNXM_v12-11) custom rom to my Mi 9T device via TWRP recovery
I booted into recovery then I noticed TWRP isn't asking for a password for decryption
So dumb me ignored it and "Advance Wiped" all partitions except "Internal Memory" and flashed the rom from "USB OTG"
then problems started to appear
first the rom didn't boot and was stuck in a boot loop
so I wiped and reflashed the original "miui_DAVINCIGlobal_V12.1.4.0.RFJMIXM_e0ac13ed89_11.0" rom via TWRP from "USB OTG" to be able to back up my files and do a proper format/decrypt
but the internal storage is now still encrypted and cannot be accessed
I tried twrp decrypt command with all combinations of passwords pins pattern numbers that I used since first bought the phone but none of them worked
I know I should have backed up my files
Now I want to know how can decrypt /data/media/0 aka /sdcard aka Internal Memory and get my files
like mounting it in windows through some adb and other software and decrypting with known key combinations and passwords
or through twrp or whatever that maybe work
I really can't afford to lose my data AGAIN
yes, that wasn't my first time!!!!!
I promise if this gets right I devote the rest my life to the open-source community
excuse me for my bad English.
When flashing a custom ROM, or going back from, you HAVE to Format (not just Wipe) Data
(And you don't need to wipe System because new ROM will overwrite it anyway, and you better never wipe Persist and so)
Obviously, you must backup your photos, data, etc, before switching the ROM
Data on Internal memory is encrypted, and not by your unlock pin (unlock pin just serves to verify and read the key).
New ROM reinitializes the encryption key
Hence, AFAIK, you cannot decrypt anymore because you don't know the encryption key that was used for data on your Internal memory
Seems you have similar problem as I have
zgfg said:
When flashing a custom ROM, or going back from, you HAVE to Format (not just Wipe) Data
(And you don't need to wipe System because new ROM will overwrite it anyway, and you better never wipe Persist and so)
Obviously, you must backup your photos, data, etc, before switching the ROM
Data on Internal memory is encrypted, and not by your unlock pin (unlock pin just serves to verify and read the key).
New ROM reinitializes the encryption key
Hence, AFAIK, you cannot decrypt anymore because you don't know the encryption key that was used for data on your Internal memory
Click to expand...
Click to collapse
ok
a question
why the twrp was not asking for decryption in first place?
ehsan1326 said:
ok
a question
why the twrp was not asking for decryption in first place?
Click to expand...
Click to collapse
No idea - ask devs of your custom ROM how they implement encryption and what is the proper way to install the ROM

Installation lineageos

Hi guys,i have a mi9t with bl unlocked and would change from miui to lineage,but my device is crypted,i can flash twrp,do wipe,install and reboot o could be dangerous with the encryption and how to disable if i can,t flash lineage,thank
(sorry for my bad english)
sbnnn said:
Hi guys,i have a mi9t with bl unlocked and would change from miui to lineage,but my device is crypted,i can flash twrp,do wipe,install and reboot o could be dangerous with the encryption and how to disable if i can,t flash lineage,thank
(sorry for my bad english)
Click to expand...
Click to collapse
General procedure when switching ROMs (you can double-check, guides can be found elswhere, not specifically for LOS and generally for Xiaomi phones)
- Backup as much as you can, by various methods
- Install the latest official TWRP
- Boot to TWRP, enter your Android unlock pin to be able to see Internal memory (to be able to flash the ROM zip file from Internal memory)
- Flash the ROM (do not Wipe anything)
- F O R M A T (not Wipe - different options in TWRP, formatting does more than wiping, that's what you need for the proper encryption for the new ROM) DATA partition (it will also wipe Internal memory - that's why you need to backup first)
- reboot to the new ROM
zgfg said:
General procedure when switching ROMs (you can double-check, guides can be found elswhere, not specifically for LOS and generally for Xiaomi phones)
- Backup as much as you can, by various methods
- Install the latest official TWRP
- Boot to TWRP, enter your Android unlock pin to be able to see Internal memory (to be able to flash the ROM zip file from Internal memory)
- Flash the ROM (do not Wipe anything)
- F O R M A T (not Wipe - different options in TWRP, formatting does more than wiping, that's what you need for the proper encryption for the new ROM) DATA partition (it will also wipe Internal memory - that's why you need to backup first)
- reboot to the new ROM
Click to expand...
Click to collapse
I am in twrp without pin,but it Is removed after restart,so can i flash a rom with MIUI encrypted(only format)?
sbnnn said:
I am in twrp without pin,but it Is removed after restart,so can i flash a rom with MIUI encrypted(only format)
Click to expand...
Click to collapse
If you don't use the pin on Android, TWRP should not ask you.
If you use pattern, it will ask you for the pattern
But you need that only to be able to navigate to the zip file you want to flash.
You can put the zip file to USB -OTG or also to external SD card you will put to the second SIM slot, then TWRP does not need the pin, it will not need to read Internal memory
After you flash and when you Format Data (it will also reformat Internal memory), it's all over
When you reboot to the new ROM, the new ROM will create it's own, new encryption (but to be able to do that, you had to Format Data before rebooting to that new ROM)
Some ppl do even this way:
- first they Format Data
- then they sidelload new ROM zip file from PC (they cannot flash from Inernal memory because they have already formatted Data and therefore lost everything from Internal nemory)
- then they reboot to the new ROM
Ie, it is important that you do both flashing the ROM and formatting Data from TWRP before you reboot, the order is not important
However, for me it's easier to flash from Download folder than sideloading, that's why I suggested you to Format after flashing
Once you reboot to the new ROM, it will establish its new encryption, it will ask you to setup your new unlock pin/pattern (or nothing if you prefer your phone to stay unsecure)
---
Hence, if you will be sideloading or flashing from USB-OTG or external SD card, who cares for your unlock pin while you are entering TWRP before flashing
---
Wiping Data delete files and folders only, but the old encryption remains (and new ROM does not handle it)
Formatting prepares Data (with Internal memory) for nthe new ROM to make its own, new encryption
You know what is different between formatting hard disk/usb stick/SD card from just wiping files.
Formatting creates new file system, wiping leaves the old file system but only removes files and folders
Btw, some people wipe only (or do not even wipe because they 'think' they can save their stuff while switching the ROM)
Then they report problems with the new ROM (and neither the new ROM, nor TWRP can no more read Internal memory, hence they loose their stuff anyway)
Then they cry for help, and they finally learn and accept they have to Format Data - they do it (it doesn't affect the ROM they had previously flashed to System partition - different partition hence not affected by later formatting Data)
After they finally format Data (two days or a week later after flashing the new ROM), they reboot and they can finally then to properly setup.the new ROM
zgfg said:
Btw, some people wipe only (or do not even wipe because they 'think' they can save their stuff while switching the ROM)
Then they report problems with the new ROM (and neither the new ROM, nor TWRP can no more read Internal memory, hence they loose their stuff anyway)
Then they cry for help, and they finally learn and accept they have to Format Data - they do it (it doesn't affect the ROM they had previously flashed to System partition - different partition hence not affected by later formatting Data)
After they finally format Data (two days or a week later after flashing the new ROM), they reboot and they can finally then to properly setup.the new ROM
Click to expand...
Click to collapse
I have installed lineageos without problem,but when i try to flash potatoasosp with android 12 result an error,It would baseband v12.1.4(like),how to now?
Thank for tour support
sbnnn said:
I have installed lineageos without problem,but when i try to flash potatoasosp with android 12 result an error,It would baseband v12.1.4(like),how to now?
Thank for tour support
Click to expand...
Click to collapse
No idea, I don't use those ROMs (I prefer MIUI not stock but Xiaomi.eu)
Flash firmware - it's all described in 1st post. You need specific firmware for ROM to work

Categories

Resources