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:

  1. Download an Ubuntu live Desktop ISO (or equivalent)
  2. Boot to Ubuntu and insert sdcard into PC.
  3. 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.

  4. Run cryptsetup luksOpen /dev/sdX encdev

  5. Enter passphrase - hopefully this works
  6. mkdir /tmp/encdev; mount /dev/mapper/encdev /tmp/encdev
  7. Pull your data from /tmp/encdev