v1.3.2
Binaries where updated to latest release:
(https://ci.android.com/builds/submitted/10267132/aosp_cf_x86_64_phone-userdebug/latest/cvd-host_package.tar.gz)
new features:
- added exceptions
- can now replace more than one partition
- calculate size flag unless user input
bugs fixed:
- ValueErrors in Flags would crash script.
- fixed string editing so partitions with . in the name won't get cut in half because it recognizes as an extension, example:
old:
partition.name.img --> partition
new:
partition.name.img --> partition.name
example log:
$ ./SuperPatcherGSI-x64.AppImage -i super.img -o test.img -s 2
flags successfully verified and appear to be correct, error code (OK)
============================
unpacking...
============================
Sparse image detected.
Process conversion to non sparse image ....[ok]
Extracting partition [product_a] .... [ok]
Extracting partition [product_b] .... [ok]
Extracting partition [system_a] .... [ok]
Extracting partition [system_b] .... [ok]
Extracting partition [vendor_a] .... [ok]
Extracting partition [vendor_b] .... [ok]
============================
choose img to replace
============================
option number 0 product_a.img size of (1810976768) bytes
option number 1 system_a.img size of (3878178816) bytes
option number 2 product_b.img size of (0) bytes
option number 3 vendor_a.img size of (1150812160) bytes
option number 4 vendor_b.img size of (0) bytes
option number 5 system_b.img size of (764735488) bytes
Please Choose: 1
Please Input Path To Replacment Partition:
/home/chromiumos/example_log/lineage-19.1-20221122-UNOFFICIAL-arm64_bvS.img
Are you sure this is the path to file (Y/n): y
Img replaced!
replace another (Y/n): n
============================
device size (super.img size) in bytes must be evenly divisible by 512, default (6324903936) bytes:
metadata size in bytes must be evenly divisible by 512 default=~0.5KiB:
make sparse (flashable with fastboot) ? (Y/n):
============================
using these flags:
============================
--device-size=6324903936 --metadata-slots=2 --output test.img --metadata-size 512000 --sparse --partition=product_a:none:1810976768 --image=product_a=/home/chromiumos/example_log/tmp/product_a.img --partition=system_a:none:2086379520 --image=system_a=/home/chromiumos/example_log/tmp/system_a.img --partition=product_b:none:0 --partition=vendor_a:none:1150812160 --image=vendor_a=/home/chromiumos/example_log/tmp/vendor_a.img --partition=vendor_b:none:0 --partition=system_b:none:764735488 --image=system_b=/home/chromiumos/example_log/tmp/system_b.img
============================
lpmake I 06-06 18:37:47 70727 70727 builder.cpp:1093] [liblp] Partition product_a will resize from 0 bytes to 1810976768 bytes
lpmake I 06-06 18:37:47 70727 70727 builder.cpp:1093] [liblp] Partition system_a will resize from 0 bytes to 2086379520 bytes
lpmake I 06-06 18:37:47 70727 70727 builder.cpp:1093] [liblp] Partition vendor_a will resize from 0 bytes to 1150812160 bytes
lpmake I 06-06 18:37:47 70727 70727 builder.cpp:1093] [liblp] Partition system_b will resize from 0 bytes to 764735488 bytes
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
Invalid sparse file format at header magic
============================
cleaning...
============================
OK