Skip to main content
10 events
when toggle format what by license comment
Jun 5, 2020 at 10:49 comment added alecxs depending on chipset and android version there may exist rooting exploit (mediatek) or low level access (qualcomm) to make backup. some stock recovery have backup option. after rooting (or from TWRP), backup can restored and decrypted, then vold keys can be extracted. should even work for FBE
Jun 4, 2020 at 17:36 history closed Irfan Latif
CommunityBot
Duplicate of Does "adb backup" also backup /data/misc/vold - the Encryption Key for Adoptable SD card?
Jun 4, 2020 at 16:25 comment added Irfan Latif @mYnDstrEAm it's already answered here: Why are superuser permissions needed to acess /data partition?
Jun 4, 2020 at 15:37 comment added mYnDstrEAm So it seems like the answer is "No, it's impossible". Maybe I should edit to ask why that is or make a new question for that. I thought there has to be a way, maybe a bit complicated, to extract this key from the data on the phone.
Jun 4, 2020 at 14:06 review Close votes
Jun 4, 2020 at 17:36
Jun 4, 2020 at 13:41 comment added Irfan Latif Nearly duplicate questions/answers: android.stackexchange.com/q/206206/218526, android.stackexchange.com/q/217175/218526, android.stackexchange.com/q/181476/218526
Jun 4, 2020 at 13:18 comment added Irfan Latif @Robert I'm not sure but I think decrypting Adoptable SD card using dmsetup should work even for devices with hardware-backed encryption. It's because in case of Adoptable Storage there are no user credentials, RSA key or middle key involved in encryption. Instead the master key in plain text is saved to /data/misc/vold. Adoptable Storage relies on the hardware-backed secure encryption of internal storage (/data).
Jun 4, 2020 at 13:01 comment added Irfan Latif As of right now there doesn't seem to be a way to do that Most probably it won't be possible in future either. Because Android apps are not designed to interact directly with kernel level APIs and access low level resources. Is it possible to do this without rooting the phone? No. In specific how could one get the .key file in /data/misc/vold? Not possible without root. And also that won't work for FBE as Robert said.
Jun 4, 2020 at 10:21 comment added Robert As far as I know the linked page for decrypting the SD-card is outdated because it is only for devices that don't use hardware encryption, which now (nearly?) all devices do. Additionally since Android 9 the adoptable storage can make use of File Based Encrytion (FBE) which cant be decrypted with the presented commands.
Jun 4, 2020 at 10:17 history asked mYnDstrEAm CC BY-SA 4.0