Skip to content

Commit

Permalink
extract_utils: Handle Brotli compressed block image
Browse files Browse the repository at this point in the history
Change-Id: I1b3ef34ebba9b43fd684c6abaa1dbc77c8786da7
  • Loading branch information
moetayuko authored and Genkzsz11 committed May 7, 2020
1 parent 0dcf3fe commit e8ddae9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/tools/extract_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8ddae9

Please sign in to comment.