From e42d0aabfb5c4a8dc3f7cdbbb5b6696361a8ca2b Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 24 Aug 2023 07:44:57 +0300 Subject: [PATCH] sm6225-common: Regenerate carriersettings before extracting them Change-Id: I0579956bc63c8258d758f0cfc0aad5aa466fa874 --- extract-files.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index b02366c..a3eedef 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -83,6 +83,11 @@ if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" extract "${MY_DIR}/../${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}" + + if [ -s "$EXTRACT_TMP_DIR/super_dump/product.img" ]; then + bash "${MY_DIR}/../${DEVICE}/regen-carriersettings.sh" "$EXTRACT_TMP_DIR/super_dump/product.img" "${MY_DIR}/../${DEVICE}/proprietary-files-carriersettings.txt" + fi + extract "${MY_DIR}/../${DEVICE}/proprietary-files-carriersettings.txt" "${SRC}" "${KANG}" --section "${SECTION}" extract_carriersettings