diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh index cfbad5c..d757258 100755 --- a/build/tools/extract_utils.sh +++ b/build/tools/extract_utils.sh @@ -1478,6 +1478,11 @@ function extract() { for PARTITION in "system" "odm" "product" "vendor" do # If OTA is block based, extract it. + if [ -a "$DUMPDIR"/"$PARTITION".new.dat.br ]; then + echo "Converting "$PARTITION".new.dat.br to "$PARTITION".new.dat" + brotli -d "$DUMPDIR"/"$PARTITION".new.dat.br + rm "$DUMPDIR"/"$PARTITION".new.dat.br + fi if [ -a "$DUMPDIR"/"$PARTITION".new.dat ]; then echo "Converting "$PARTITION".new.dat to "$PARTITION".img" python "$DU_ROOT"/vendor/du/build/tools/sdat2img.py "$DUMPDIR"/"$PARTITION".transfer.list "$DUMPDIR"/"$PARTITION".new.dat "$DUMPDIR"/"$PARTITION".img 2>&1