Skip to content

Commit 622005b

Browse files
RomashkaTeadeadman96385
authored andcommitted
extractor.sh: Add Honor & Huawei partitions
1 parent 4b7b9d0 commit 622005b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extractor.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ aml_extract="$toolsdir/aml-upgrade-package-extract"
8989

9090
romzip="$(realpath $1)"
9191
romzipext="${romzip##*.}"
92-
PARTITIONS="super system vendor cust odm oem factory product xrom modem dtbo dtb boot recovery tz systemex oppo_product preload_common system_ext system_other opproduct reserve india my_preload my_odm my_stock my_operator my_country my_product my_company my_engineering my_heytap my_custom my_manifest my_carrier my_region my_bigball my_version special_preload vendor_dlkm odm_dlkm system_dlkm init_boot vendor_kernel_boot vendor_boot mi_ext boot-debug vendor_boot-debug"
93-
EXT4PARTITIONS="system vendor cust odm oem factory product xrom systemex oppo_product preload_common"
92+
PARTITIONS="super system vendor cust odm oem factory product xrom modem dtbo dtb boot recovery tz systemex oppo_product preload_common system_ext system_other opproduct reserve india my_preload my_odm my_stock my_operator my_country my_product my_company my_engineering my_heytap my_custom my_manifest my_carrier my_region my_bigball my_version special_preload vendor_dlkm odm_dlkm system_dlkm init_boot vendor_kernel_boot vendor_boot mi_ext boot-debug vendor_boot-debug hw_product product_h preas preavs"
93+
EXT4PARTITIONS="system vendor cust odm oem factory product xrom systemex oppo_product preload_common hw_product product_h preas preavs"
9494
OTHERPARTITIONS="tz.mbn:tz tz.img:tz modem.img:modem NON-HLOS:modem boot-verified.img:boot dtbo-verified.img:dtbo"
9595

9696
echo "Create Temp and out dir"
@@ -446,12 +446,12 @@ elif [[ $(7z l -ba "$romzip" | grep ".*.rar\|.*.zip") ]]; then
446446
elif [[ $(7z l -ba "$romzip" | grep "UPDATE.APP") ]]; then
447447
echo "Huawei UPDATE.APP detected"
448448
7z x "$romzip" UPDATE.APP
449-
python3 $splituapp -f "UPDATE.APP" -l super || (
449+
python3 $splituapp -f "UPDATE.APP" -l super preas preavs || (
450450
for partition in $PARTITIONS; do
451451
python3 $splituapp -f "UPDATE.APP" -l ${partition/.img/} || echo "$partition not found in UPDATE.APP"
452452
done)
453453
if [ -f super.img ]; then
454-
($simg2img super.img super.img.raw || mv super.img super.img.raw) 2>/dev/null
454+
($simg2img super.img super_* super.img.raw || mv super.img super.img.raw) 2>/dev/null
455455

456456
for partition in $PARTITIONS; do
457457
($lpunpack --partition="$partition"_a super.img.raw || $lpunpack --partition="$partition" super.img.raw) 2>/dev/null

0 commit comments

Comments
 (0)