You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Boot Image Extractor is a standalone Python script designed to extract the boot image from Android devices with root access. It supports both <a href="https://source.android.com/devices/tech/ota/ab">A/B</a> and <a href="https://source.android.com/devices/bootloader/partitions">legacy partition</a> styles. This script was developed as part of an automated method for extracting boot images described in the <a href="https://gist.github.com/gitclone-url/a1f693b64d8f8701ec24477a2ccaab87#file-boot-image-extraction-guide-md">Boot Image Extraction Guide</a>.
11
-
</p>
12
-
</div>
13
-
</div>
5
+
Boot Image Extractor is a standalone Python script designed to extract the boot image from Android devices with root access. It supports both [A/B](https://source.android.com/devices/tech/ota/ab) and [legacy partition](https://source.android.com/devices/bootloader/partitions) styles. This script was developed as part of an automated method for extracting boot images described in the [Boot Image Extraction Guide](https://gist.github.com/gitclone-url/a1f693b64d8f8701ec24477a2ccaab87#file-boot-image-extraction-guide-md).
14
6
15
7
## Requirements
16
8
@@ -30,7 +22,7 @@
30
22
```
31
23
32
24
3.**Check for PHH Superuser (if applicable):**
33
-
If you are going to use this script on a [Phh-based GSI](https://github.com/phhusson/treble_experimentations/wiki/Frequently-Asked-Questions-%28FAQ%29) that ships with an inbuilt [superuser](https://github.com/phhusson/treble_experimentations/wiki/Frequently-Asked-Questions-%28FAQ%29#naming-conventions-that-some-gsi-buildermaintainer-uses), check if the PHH Superuser app is installed:
25
+
If you are using a [Phh-based GSI](https://github.com/phhusson/treble_experimentations/wiki/Frequently-Asked-Questions-%28FAQ%29) that ships with an inbuilt [superuser](https://github.com/phhusson/treble_experimentations/wiki/Frequently-Asked-Questions-%28FAQ%29#naming-conventions-that-some-gsi-buildermaintainer-uses), check if the PHH Superuser app is installed:
34
26
```bash
35
27
(pm list packages | grep me.phh.superuser) &&echo"App installed"||echo"Not found"
36
28
```
@@ -41,27 +33,20 @@
41
33
```bash
42
34
su
43
35
```
36
+
37
+
> **Important:** After granting superuser permissions, Return to the normal user environment by typing `exit` or pressing Ctrl+D. Then Proceed with the installation steps.
44
38
45
-
## Installation Instructions
46
-
47
-
#### Procedure 1: Direct Installation
48
-
49
-
1.**Run with One-Liner Commands:**
50
-
Copy and paste the following command in termux and hit enter to start running the script:
or download the source zip file from [GitHub](https://github.com/gitclone-url/Boot-image-Extractor/archive/refs/heads/master.zip), extract it, and navigate to the extracted directory.
47
+
> **Note:** Install **Git** with `pkg install git`, if not already installed on the system.
48
+
49
+
Alternatively, download the source zip file from [GitHub](https://github.com/gitclone-url/Boot-image-Extractor/archive/refs/heads/master.zip), extract it, and navigate to the extracted directory.
65
50
66
51
2.**Install Dependencies:**
67
52
Ensure Python and required packages are installed:
@@ -84,7 +69,7 @@ After installation, execute the script using the following command:
84
69
sudo boot_image_extractor.py
85
70
```
86
71
87
-
If you used the direct installation method and the script was downloaded to a different directory instead of Termux's `$HOME` directory, you may need to change to the directory where the script is located before running it.
72
+
The extracted boot image will be saved in the same directory from which you run the script.
0 commit comments