tl;dr Is it possible to root an Android 8.0 phone that is accessible only via USB? Is it then possible to extract encryption .key
file out of it in order to decrypt its SD Card that was formatted and encrypted as Adoptable Storage? Can all of this be done with not functioning, broken screen?
There is a lot of good quality guides here on how to encryption .key
file from /data/misc/vold
folder and use it to decrypt Adoptable Storage on any Linux-based computer. But all these guides assume that you have:
- rooted phone,
- access to phone's screen.
Your phone must have screen operable to either:
- install and use some app on it: here or
- confirm some dialog on it, unlock screen lock, if accessing it via USB: here or here.
Can the very same process be achieved if my phone have a screen in pieces?
Can I:
- root a phone and
- copy encryption
.key
file from/data/misc/vold
folder after rooting,
when I only can access my phone via USB? Assuming that screen cannot be used at all.
My Motorola Moto Z2 Play is now in pieces after a car run over it. Screen is in pieces, battery is separated. Mainboard seems in one piece and I think is functioning. Whenever I attach USB it seems to be starting up.
Is there any way to get encryption key file from it, doing this totally remotely (via USB)? Or attaching a new, functional screen is an absolute must in this case?
EDIT: The phone in question is Motorola Moto Z2 Play, which started its history with Android 7.0.0, then went through A7.1 and landed finally with Android 8.0.0, updated about 1+ year ago. All versions of Android on this phone seems very close to stock one, as in most Moto phones.
Based on this article, I believe there's a FDE / full disk data encryption implemented there.
gdisk -l gpt.bin
(or dump it straight from device) https://forum.xda-developers.com/t/q-extract-partition-img-using-qualcomm-edl-mode.4001287 – alecxs Dec 08 '20 at 20:37