my boss did it. Unforunatelly he used his SD-card as internal storage and now has the “typical” problems.
I made a copy of the sd-card (linux dd), but accoring to the #sdcardguide “any data stored on the SD card is encrypted… The key used for the encryption is stored in the device. Factory resetting your phone deletes the key and renders any data on the SD card unreadable”
Where can I find the key and how do I extract it.
I just don’t want to accept that everything is gone! (and my boss doesn’t either)
I’m using an FP3+ with Android 10. And got a new SD card. And had a bad idea.
I got a new microSD card and was so enthusiastic about it that I replaced the old card without saving my data. I was convinced that this old card was not in use.
So I inserted the new card, attached it as adoptable storage. And then realized that the recently shot photos disappeared (luckily, I had the “old” microSD card only some weeks in place).
So I switched cards again, but the Fairphone didn’t recognize the old one. I tried to read the data on my laptop. Without success, there are two partitions “android_meta” and “android_expand” on the card which can’t be read. I know now this means, the card is encrypted and was used as adoptable storage.
I used Linux and dd (without any specific options) to write images of both partitions in img files (again I had some luck, the card has only 8GB). Then I had the idea to let the phone use the old microSD card again as adoptable storage, shut down the phone, then restore the dded images and boot the phone with the old card and the restored data. Unfortunately, the phone told me the card was broken.
Now I hope there is a chance
that the dd command was correct and did not produce corrupt images
From the web I got that one might want to use gddrescue for andoptable storages.
that it’s possible to extract the encryption key the Fairphone used to encrypt the adoptable storage.
Again, I tried to get information about this on the web. And it seems, each encryption key is preserved. Which would be good. But I used this exact microSD card twice as adoptable storage
Welcome to the community forum.
I moved your post here to avoid duplicate topics.
Yeah, it shouldn’t be too easy.
It sounds like @marcseid is referring to the “typical” current Android 10 bug with an SD card used as Internal Storage. In this case I thought the data on the card would not be accessible anymore via PC connection.
Hmm. There is an instruction on Android Enthusiasts on how to decrypt an adoptable storage. To achieve this one needs to get the encryption key from /data/misc/vold. And this is possible on a rooted phone.
That’s correct. Unlocking as well as locking the bootloader will force a factory reset for security reasons.
Unlocking the bootloader is not the same as rooting the phone, but as I understand it you need to have an unlocked bootloader in order to be able to root the phone.