Skip to content

Latest commit

 

History

History
84 lines (51 loc) · 3.41 KB

ExtractingPartitions.md

File metadata and controls

84 lines (51 loc) · 3.41 KB

Extract the boot partition or other partitions

Files/Tools Needed

TWRP image:

File Name Android version
twrp-3.7.1_12-vayu.img Android 12/12.1/13/14
twrp-3.7.0_11-vayu.img Android 11

Disclaimers

Warning

  • Read the entire guide before starting. Make sure you understand all of what you're going to do!
  • If you see a warning and/or error during the process, it is not normal. Contact us on telegram if you see anything odd, but do not continue or proceed on your own, you will break things further.
  • Don't rerun the commands if you interrupt the process. You may break things.
  • Do not run all commands at once.
  • Do not commit any typo with any commands.
  • Be familiar with command line interfaces.
Here's how to acquire the Android SDK Platform Tools: Click to expand

First, start by going to the Android Platform SDK download page on your computer.

SDK-1-Top

Once on the page, scroll a little bit down til you see the link to download the platform tools for Windows.

SDK-2-Mid

Click on it, an EULA will open like below:

SDK-3-EULA

Scroll all the way down (after reading it if that's your thing)

SDK-4-EULA-Bottom

Tick "I have read and agree to above terms conditions"

SDK-5-EULA-TICK (alt)

And click download

SDK-5-EULA-TICK

Save the file on your computer, and extract the zip file by opening it, and selecting extract all.

SDK-6-DL

Booting to TWRP

  • Reboot your device into TWRP, assuming you have installed it previously

Retrieve the location of our target partition

Warning

From now on we will assume you are trying to extract the boot partition, if not, replace "boot" with the name of the partition you are trying to extract.

  • Now, we need to find the location of our target partition, as it is different for each device. To do so, run the following command on your PC:
adb shell ls /dev/block/by-name/
  • This is going to output a lot of lines, with each partition name having its mount point. Look for the line that says boot

Let's make an image of the partition:

adb pull /dev/block/by-name/boot boot.img

If you did everything correctly, you will now have your boot.img. Enjoy! 🥳