UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [How to] Access your encrypted data from the recovery

    Scheduled Pinned Locked Moved Support
    1 Posts 1 Posters 25 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • fredldotmeF Offline
        fredldotme
        last edited by

        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 as chroot-into-system on your PC.

        The guide assumes you have adb installed on your PC. The steps are as followed:

        1. Boot your device into recovery mode
        2. Mount your system partition by going to "Advanced" -> "Mount/unmount system"
        3. Open a terminal on your PC and switch to the directory you saved the script in
        4. Push the script to your device: adb push chroot-into-system /tmp/
        5. Run an adb shell
        6. Execute the script: sh /tmp/chroot-into-system
        7. Now it's time to unlock the home directory: fscrypt unlock /home/phablet
        8. Enter your PIN or password and hit enter
        9. The home directory contents should now be decrypted and visible

        Please try it on your device and let me know of any issues.

        If you have enjoyed my work on Ubuntu Touch over the years, please donate to my causes:

        • PayPal: https://paypal.me/beidl
        • Liberapay: https://liberapay.com/fredldotme
        1 Reply Last reply Reply Quote 1
        • MoemM Moem marked this topic as a regular topic
        • First post
          Last post