[Q] Help with encrypted SD card - AT&T LG G3

My work requires encryption of the SD Card. After doing a factory reset, Android reports unable to mount SD card and to format.
Using twrp, i can view the file structure when i mount the sd. I cannot view the data partition because the device is encrypted.
Using my PC, i can view the file structure, but when i try to open a pic or zip file, it says the file is unreadable/corrupt. I would think that it if were truly encrypted, i would be able to view the file structure.
I can even take a nand backup and save it to the SD card, so i know twrp can read/write
I plan to format the card, but since i can see the files in twrp, i just want to make sure i am not missing something. Or, get an OTG cable and see if i can copy files off SD Card to a thumb drive...

Related

[Q] How to create a complete phone image to mount as a drive on PC

Question regarding a stock Verizon Galaxy S3, rooted with TWRP recovery installed:
My buddy accidentally wiped out all his pictures and videos by performing a "move" from the phone memory to the external SD card using the Samsung file manager. The SD card appears corrupted and now the files are no longer visible in the phone memory.
Is there a way to mount the phone partition on a PC as a drive and use an "un-delete" program to attempt a recovery of the files? Alternatively, could I somehow create a bit-for-bit backup of the phone partition in an image file that could be mounted as a drive in a PC and then use an "un-deleter" on it?
Any ideas?
Thank in advance...

Security Flaw with external SD card and encryption - file temporarily unencrypted !

It seems there is a security flaw when copying files from encrypted internal storage to encrypted sd card with third party tools.
I have installed a micro sd card and enabled encryption on external sd card. After every boot I get a notification that external sd is encrypted. If I put the sd card in a card reader on my pc, I can see the directory structue and file names on the sd, but I cannot see the contents of the file, because they are encrypted. So far this is expected behaviour.
Now the unexpected part: sd card is installed in phone (no pc involved). I copied files with solid explorer from internal storage to encrypted sd card (side note: i noticed solid explorer cannot access the copied files). I reboot my phone and suddenly it says "encrypting files on sd-card" and a percentage counter went up while the newly copied files get encrypted? Huh !? Second test: I copied files with solid explorer from internal storage to encrypted sd card and shut down the phone, put the sd card in a card reader on an pc and - guess what - the copied files are unencrypted. They get encrypted after next boot in the phone. This behaviour does not occur, if I copy the files with samsungs integrated file explorer. Files copied to the enrypted sd card over mtp connection are encrypted immediately.
I have experienced something similar. I wanted to create a directory on encrypted SD card in ES File Manager. It displayed the message like "...will be created asynchronously" and zero length file was created instead. After reboot and encryption the actual directory was created.
It seems that third party file explorers like solid explorer or ES file manager can access those files/folders (created by themselves on encrypted sd card) only after the files/folders got encrypted after reboot. The flaw I see here is not only that files unexpectedly remain unenrypted on sd card, but also that files are written unencrypted at all and only get encrypted later. There may remain unencrypted parts of sensitive data that someone might be able to recover from sd card (with a data revocery tool).
Sounds like those developers need to update their apps to support Marshmallow's encryption. In the meantime, if you've got sensitive files to copy, use the built-in app.
It seems, that there is some scheduler running encryption over the night. I created a folder on SD card as usually - no folder, only empty file was created initially - and next day there was a folder; without need of reboot.
pato said:
It seems, that there is some scheduler running encryption over the night. I created a folder on SD card as usually - no folder, only empty file was created initially - and next day there was a folder; without need of reboot.
Click to expand...
Click to collapse
I tried the same yesterday. I copied a file from internal storage to encrypted sd card with solid explorer and the file is stored unencrypted with 0 byte length. 24 hours later it still remains unencrypted with 0 byte length. Maybe there is something else that triggers the encrpytion (except reboot), but not sure what it is.
EDIT: 48 hours after copying the file it finally got encrypted.
delete

Encrypted SD card not detected by my S7. How do I recover the encrypted data?

Hi all
Samsung S7, standard rom, encrypted SD card (Samsung 128 EVO)
My 128GB SD card held a huge amount of photos amongst other things. One day, the card stopped mounting (and I therefore couldn't decrypt the files). Taking the card out and putting it in a card reader connected to the phone, it would mount but didn't give me the option to decrypt the files. I copied all the encrypted files to my laptop, and formatted the card. A different volume name was generated. I copied all of the files back to the card, but the data couldn't be read. I imagine a new key was generated when I re-formatted the card.
Data recovery tools can see the files, but they remain encrypted.
Renaming the volume label to the original name and trying again didn't work either.
I have not changed my pattern code, not done a factory reset, and have not updated the OS since.
How do I go about recovering the encrypted data. I have all the files, but no way to decrypt them using the phone. Is there any way to restore the files?
You can try this
I am very hesitant to overwrite back all the encrypted files to the SD card so as not to write over the old files (which I can see in a data recovery tool, although they are encrypted)
So, I will try the following.:
1. I will connect an old SSD and format it as external storage and encrypt it using the method you linked.
2. I will copy the 80GB of encrypted data backed up on my PC onto the SSD (probably using wifi)
3. I will then try decrypting the external SSD drive using my phone and see whether I can read the files
4. I will report back
Ideally, I would like the volume to have the same volume name as the original SD card volume. I wonder if this plays a part in the encryption/decryption process
If any other suggestions are forthcoming, I'll take them too!

Please Help Recover Data on Corrupted Adoptable SD Card!

My SD card is set as adoptable storage, but it has gotten corrupted. It happened when I was copying files from my phone to PC via USB (ironically I was doing this to backup my files from my phone). Somewhere during copying, the phone virtually disconnected from the PC, and on my phone it said that it couldn't read my SD card.
Couple of things to note:
I'm using Lineage OS.
The SD card isn't encrypted.
When connecting the SD card directly to my PC, the SD card shows as two drives, D: and E:, with D: being accessible showing an almost empty drive of 29,4 GB (which is the full logical capacity of this drive), and E: inaccessible, requiring a reformat (no idea what E: is). On D: the folders that I can see are .android_secure, Android (with the sub folders data and media) and LOST.DIR. All folders are empty.
This SD card should be filled with data almost up to max capacity.
I haven't changed a thing to the corrupted SD card. I did not reformat, used CHKDSK or w/e. The only things that I have done is attempting to make raw copies with HDD Raw Copy Tool and R-Studio.
I've read here and there that it is (almost?) impossible to logically fix a corrupted adoptable storage SD card in that I could just pop it back into my phone to resume where I exactly left off. So I'm looking to recover as much data from the SD card as possible. I'm most concerned about recovering my Whatsapp folder (I haven't got a complete GDrive backup of this), but I'd prefer to recover everything else as well.
What must I do?

TWRP cannot see zip files on internal sdcard

I have the latest twrp for my device (twrp-3.2.3-0-peregrine). The device is unlocked, encrypted and rooted (Magisk), running lineageos 14.1.
The SD card is part portable, and part internal.
I copied some installation zips from my PC onto the internal part (sdcard), but twrp cannot see them. The only directory it seems to be able to see on the internal part of the SD card is TWRP but it can't even see files I place in that directory. twrp can, however, see all the files on the external SD card (sdcard1).
If I use a file manager on the mobile when running normally, I can see all the folders under /storage/emulated/0/ (which is the internal part of the SD card).
How can I get TWRP to see all the files?

Categories

Resources