Using the SD card as Adopted Storage encrypts it. How can it be decrypted?
How to decrypt adopted storage.
Your Android device must be rooted.
/data/misc/vold, e.g. using a file browser app like "ES Explorer".
.keyfile there is the encryption key of your adopted storage.
View the 16-byte key using a graphical hex editor or alternatively run
hexdump -e '/1 "%02x"' filename_here.key.
Mount your SD card e.g. using a GNU/Linux system. In my case, SD card was mounted at
Then run this command to decrypt the drive:
dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdb2` crypt aes-cbc-essiv:sha256 <Put the 16-byte hex key here> 0 /dev/sdb2 0"
Some types of errors/warnings can be ignored.
If your key is correct, you can mount it by
mount -t ext4 /dev/mapper/crypt1 /mnt/1/
Finally, you can run
cd /mnt/1to browse the decrypted storage.