diff --git a/extract_utils.sh b/extract_utils.sh index ef25afc..0d3d154 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -1565,7 +1565,11 @@ function prepare_images() { # Extract A/B OTA if [ -a "$DUMPDIR"/payload.bin ]; then - "$OTA_EXTRACTOR" --payload "$DUMPDIR"/payload.bin --output_dir "$DUMPDIR" --partitions "system","odm","product","system_ext","vendor" 2>&1 + for PARTITION in "system" "odm" "product" "system_ext" "vendor" + do + "$OTA_EXTRACTOR" --payload "$DUMPDIR"/payload.bin --output_dir "$DUMPDIR" --partitions "$PARTITION" &2>&1 + done + wait fi for PARTITION in "system" "odm" "product" "system_ext" "vendor"