[Q] S3 SD Card encryption algorithm - Galaxy S III Q&A, Help & Troubleshooting

I have an S3 whose external SD card failed and it won't mount. I had most of the data backed up, but a few things I'm really trying to get to. Unforunately, to add insult to injury, the SD card was also encrypted.
When I remove the SD card and place it in a Linux computer, I can see the files by correct (cleartext) filename. I can download them. However, when I try to open a jpg or play a video, I get an error that it's not a recognized file type. I believe this is due to eCryptfs file encryption, but I'm not sure.
I was able to recover the key file from the root of the phone, but I'm still unable to decrypt the files.
Can anyone provide a brief overview of the type of encryption on this device (ie, confirm or not confirm that external SD cards are encrypted with eCryptfs) and provide general settings as to how it's encrypted? I think I have all of the raw tools to decrypt the data and rescue whatever I can, but I'm not sure I have the settings right or even the right encryption type (could it be dm-crypt?).
Any help appreciated.

Related

[Q] Large Files to SDcard - Impossible Via Phone

I like to keep some HD movies on my SD card. While 720 or 1080p isn't necessary on the phone I use it to playback via HDMI to large screens.
Most files are 4GB+ and I'd like to put them on the SD card which is formatted exFat and can accept the files (windows can copy onto fine)
The problem is Air Kies or Airdroid dont' give access to the external SD card so they see useless.
Using the cable (MTP) I can copy large files to the phone storage but to the SD card storage one gets an error
"Cannot copy *filename*"
It's file size is larger than the device limit.
So It seems the phone is telling the PC a limit. The phone is too stupid to realize the card is in exFat and can accept the file.
It's a factory Jelly Bean rom, I'd rather not root or put custom firmware on if I can avoid it. Just looking for a work around without having to take the card out, find a micro SD adapter, put it in my laptop and copy via wifi (slow) form my media PC.
So much for Androids 'drag and drop' simplicity when using a cable.
Default JB Kernel from Samsung doesn't load exFAT module when the smartphone starts.
You can use a custom kernel for that, like Siyah 1.7 :
http://forum.xda-developers.com/showthread.php?t=1709686
In the features list, we have :
•Samsung proprietary ExFat modules are loaded. Don't ask about ExFat support for aosp roms in this thread.
Cheers,
If that is the case, how does the Samsung Factory JB Rom/Kernel then read & write to the exFat SD without any problem? Ie I can copy anything (10GB MKV's etc) to the SD card via the PC and put it in the phone and it works fine.
What your saying does sort of make sense in that the MTP driver/whatever within the phone knows nothing about exFat and assumes Fat32 and as such does not allow over size files to be written to the SD card.
(Out of curiosity what file system does the phone storage it self use?)
However as the card can be read etc via the phone, it must have exFat ability to do this?
Have they just left exFat ability 'partly' there but left other features of the phone (ie MTP transfer) unaware of it? So much fail! haha
I'm certain before updating I was able to large files without a problem? Have Samsung crippled the phone with JB updates?
I'm starting to think the ICS was better, better standby battery etc, issues like this etc.
I'll look at the custom rom. Kind of silly one has to hack their phone with 2 year warranty to get abilities that were previously available, well done Samsung haha.

How to recover android SD card deleted photos,videos,audio from Mac?

How to recover android SD card deleted photos,videos,audio from Mac?
How to recover SMS and Contact from Android phone on Mac?
Many Android mobile phone users are not careful to delete their SMS text messages and Contacts, or lost photos and videos after restoring factory settings, flashing ROM, rooting, etc.,sometimes you may lost photos,videos,music from SD cards inside Android mobile phone.
After formatting the the SD card on your Android,you may lost photos from the SD card on your Android phone.Please don’t worry now! This Data Recovery for Android can recover any photos & videos generated by your android phone or transferred from other devices, as well as music, documents, archives, and more stored on your SD card inside the Android phone.
Here are the steps of how to recover your lost Android files with this Android Data Recovery tool.
First, install and run the program on your computer, and you’ll get the interface as follows.
Step1. Connect Android to computer
Directly connect your Android phone to the computer with a USB cable, without needing to take the SD card out of the phone. When it appears as a hard disk on your computer, the program will detect it as follows.
Step2. Scan lost data
After connecting the Android phone to the program, click on the “Start” to find out all lost data from the SD card on your Android.
Step3. Preview and check
All recoverable data are categorized as different file types, such as archive, audio, graphic, video, etc. You can preview the photos in original quality, and check the other files one by one.
Step4. Recover
Check the single file or the whole file type that you want back, and click on the “Recover” to save on your computer.
By using the above steps, all of my lost photos got back! And it also restored the photographs that were deleted previously. Thanks for the help this software provided! I guess many other programs can also help recover data for Android SD card. But easiest for you must be this Data Recovery for Android
www, z0download com/detail/Android-Files-Manager-for-Mac
Well, Kvisoft Data Recovery for Mac can also recover deleted files from mac for Android SD card, just connect the andorid device or Android SD card to your mac computer, then launch the software to scan from SD card or phone, after scanning process finished, you can preview the files therefore make sure they are your need, then recover the files to another device or save the recovered files directly on your mac computer. Tips: do not save the files on your original Android phone or Android SD card.
Thank you, very useful, I've accidentally deleted all of the mobile phone contacts. :crying:
Thank you, very useful
You may try this step by step android data recovery solution.
It is easy to follow and hope it helps.

TWRP mounts Adoptable storage but where is the key?

Hi There,
I'm attempting to recover the data from my adopted storage sdcard.
My phone is corrupted and TWRP is the only way I can access it, my usb port is broken has no data connectivity. I'm lucky that I can still charge it. The phone is old and not really worth repairing.
I've followed the instructions (https://nelenkov.blogspot.com/2015/06/decrypting-android-m-adopted-storage.html) on how to mount an adopted SDCARD in a linux machine. I found the /data/vold/expand_*.key file and used it to run the dmsetup command.
However the resulting block device is not decrypted properly, I'm guessing due to an invalid key (might also explain why the booted marshmallow can't see it either). TWRP mounts the device correctly, so the correct key is on my phone somewhere.
Does anyone know how TWRP determines what the key is for the Adoptable storage?
Thanks Heaps.
Mark
I discovered that I was using the wrong byte order for the key. Maybe the key is read differently depending on the native format of the CPU (I've no idea what byte order a HTC M8 is anyway) but reversing every 2 bytes of the key file has allowed me to mount my SDCard on a linux machine.

Sd card problem

my sd card is encrypted,
I made a factory reset,
I turned the phone on, trying to decrypt it it gives me "This SD card cannot be decrypted because it was encrypted on another device..."
Although it's the same device
tried to connect to pc via cable the same thing I got, (It says this is a kind of security and privacy)
I want to get the files on the sd card back but with no success, any help ?
Did you remove the card from the phone before you updated to the beta? This happened to me when i did the Oreo beta last year for the S8 and I had to get a new SD card and re-transfer the files from my PC...
Have you inserted the card into your laptop to see if you can access the files on your computer?
this year i removed the card and before the update to beta and I can see my files now...i hope you can find a way to access the card my friend ...best of luck...
Sent from my iPad using Tapatalk
i also can't access this files on my PC, seems it's also encrypted all files are seen but can't be opened
mohamedelkadi said:
my sd card is encrypted,
I made a factory reset,
I turned the phone on, trying to decrypt it it gives me "This SD card cannot be decrypted because it was encrypted on another device..."
Although it's the same device
tried to connect to pc via cable the same thing I got, (It says this is a kind of security and privacy)
I want to get the files on the sd card back but with no success, any help ?
Click to expand...
Click to collapse
The phone warned you of this (and what would happen) when you encrypted the SD card.
Factory resetting the phone caused the phone to generate a new set of encryption keys (which is why it tells you it was encrypted on another device). As a result you won't be able to recover the data on the SD card.

File copy or backup, to not quit on fail

Tl;Dr what are some good methods of copying files to and from the computer, on Windows and Mac
HI. I haven't rooted my Pixel 4 but I heard you could get the unlock menu to ungrey by adding an unactivated Google FI sim or other sim.
So I'm saying I could consider Titanium Backup.
But I'm trying to figure out how to backup pictures with folder structure. Mostly.
Maybe apps and settings, other files.
My main problem is Android File Transfer I'm using on my Mac stops completely when a single file fails and barely shows any info, just the last file in an error message. And then have to reCopy the whole folder overwrite or manually some files.
Is there a good wireless file transfer option?
Or as I'm saying maybe another computer software, or to mount storage or use an SD card but the Pixel 4 doesn't have. Maybe use ADB but will that quit on fail too but more verbosely?
Android is awesome; I tend to love it for its filesystem and USB mounting.
Isn't there just a way to natively mount it? Or next time get a phone with SD (and better battery). And root.

Categories

Resources