• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

prebuilt/gpt/1_3080/25-Apr-2025-

Android.bpD25-Apr-20251.2 KiB3734

README.mdD25-Apr-20251.2 KiB4431

emulator_boot_test.shD25-Apr-20251.4 KiB6349

extract_ext4_image.shD25-Apr-2025251 1910

extract_head_tail.shD25-Apr-2025371 2112

mk_combined_img.pyD25-Apr-20257.1 KiB195132

mk_qemu_image.shD25-Apr-20251.1 KiB4834

mk_qemu_ramdisk.pyD25-Apr-2025686 3222

mk_vbmeta_boot_params.shD25-Apr-20252.4 KiB8540

mk_verified_boot_params.shD25-Apr-20254.7 KiB11663

README.md

1## Combine images
2
3### Usage
4``python mk_combined_img.py [--input <filename> --output <filename>]``
5The defaults of `--input` and `--output` are:
6* `./image_config` for `--input`
7* `$OUT/combined.img` for `--output`
8
9### Prerequisite
10The script will try to get environment variables ``$ANDROID_HOST_OUT`` and ``$OUT``
11If you have built android these variables should exist and in place.
12Make sure simg2img and sgdisk are in ``$ANDROID_HOST_OUT``, if not, do following:
13
14``$ cd $ANDROID_BUILD_TOP``
15
16``$ m simg2img``
17
18``$ m sgdisk``
19
20### Functionality
21* Combine multiple images into one image with multiple partitions
22* Sparse image detection
23
24### The format of input config file
25Each line with the order of ``</path/to/image>`` ``<partition label>`` ``<partition number>``
26
27
28``<partition number>`` should be within range of ``[1, number of lines]``
29and cannot be repeated.
30
31### Config file example
32```
33$OUT/sparse_system.img      system      1
34$OUT/encryptionkey.img      encrypt     4
35$OUT/vendor.img             vendor      5
36$OUT/cache.img              cache       2
37```
38
39### TODO
40* Output in sparse format
41* Detect images that already have partitions in them.
42* Auto genereate config file
43
44