[How to] Access your encrypted data from the recovery
-
Hello all!
I've created a little script to aid in the recovery of data, should one choose to enable encryption on their device.
It's available here: https://gist.github.com/fredldotme/7bc4e5aee515d8b74a7b091599e67382
Save the script aschroot-into-systemon your PC.The guide assumes you have adb installed on your PC. The steps are as followed:
- Boot your device into recovery mode
- Mount your system partition by going to "Advanced" -> "Mount/unmount system"
- Open a terminal on your PC and switch to the directory you saved the script in
- Push the script to your device:
adb push chroot-into-system /tmp/ - Run an
adb shell - Execute the script:
sh /tmp/chroot-into-system - Now it's time to unlock the home directory:
fscrypt unlock /home/phablet - Enter your PIN or password and hit enter
- The home directory contents should now be decrypted and visible
Please try it on your device and let me know of any issues.
-
M Moem marked this topic as a regular topic