Decrypt file on SD card of Samsung phone encrypted by Android 5.0
My Galaxy Note 4 does't recognize the encryption on my SD card anymore. I can't open any file. Now, since I have the password, I thought I could decrypt them myself, with Android Java or with C++ on Windows. I used the internal encryption of Android 5.0 lollipop. This is my last chance of getting my photos and videos back, I'm not confident this is going to work, but if, please help me.
Solution 1:
It would seem a long shot, but a logical step to follow might be to:
- Download an Ubuntu live Desktop ISO (or equivalent)
- Boot to Ubuntu and insert sdcard into PC.
Identify SD card - you may be able to do this by running dmesg or cat /var/log/syslog or /var/log/messages, or by examining /dev/sd* devices.
Run cryptsetup luksOpen /dev/sdX encdev
- Enter passphrase - hopefully this works
- mkdir /tmp/encdev; mount /dev/mapper/encdev /tmp/encdev
- Pull your data from /tmp/encdev