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