From e1f42577b2694aba60d599496e20c298e4860f74 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 30 Nov 2023 20:26:02 +0200 Subject: [PATCH] extract-utils: Add prepare_firmware function Allows devices to run required actions before attempting to extract firmware. Example: motorola star images & pixel fbpk images. Change-Id: I105c3a17c10f63f0ad72966354aed6baed695d7c --- extract_utils.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extract_utils.sh b/extract_utils.sh index 3759e16..62085f0 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -1877,6 +1877,13 @@ function extract_carriersettings() { python3 "$CARRIERSETTINGS_EXTRACTOR" -i "$SRC" -v "$CARRIERSETTINGS_OUTPUT_DIR" } +# +# To be overridden by device-level extract-files.sh +# +function prepare_firmware() { + : +} + # # extract_firmware: # @@ -1907,6 +1914,8 @@ function extract_firmware() { echo "Extracting $COUNT files in $1 from $SRC:" + prepare_firmware + for (( i=1; i