summaryrefslogtreecommitdiff
path: root/bonito/extract-files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bonito/extract-files.sh')
-rwxr-xr-xbonito/extract-files.sh86
1 files changed, 0 insertions, 86 deletions
diff --git a/bonito/extract-files.sh b/bonito/extract-files.sh
deleted file mode 100755
index 158236c8..00000000
--- a/bonito/extract-files.sh
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/bash
-#
-# Copyright (C) 2016 The CyanogenMod Project
-# Copyright (C) 2017-2023 The LineageOS Project
-#
-# SPDX-License-Identifier: Apache-2.0
-#
-
-set -e
-
-DEVICE=bonito
-VENDOR=google
-
-# Load extract_utils and do some sanity checks
-MY_DIR="${BASH_SOURCE%/*}"
-if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
-
-ANDROID_ROOT="${MY_DIR}/../../../.."
-
-HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
-if [ ! -f "${HELPER}" ]; then
- echo "Unable to find helper script at ${HELPER}"
- exit 1
-fi
-source "${HELPER}"
-
-# Default to sanitizing the vendor folder before extraction
-CLEAN_VENDOR=true
-
-KANG=
-SECTION=
-
-while [ "${#}" -gt 0 ]; do
- case "${1}" in
- -n | --no-cleanup )
- CLEAN_VENDOR=false
- ;;
- -k | --kang )
- KANG="--kang"
- ;;
- -s | --section )
- SECTION="${2}"; shift
- CLEAN_VENDOR=false
- ;;
- * )
- SRC="${1}"
- ;;
- esac
- shift
-done
-
-if [ -z "${SRC}" ]; then
- SRC="adb"
-fi
-
-function blob_fixup() {
- case "${1}" in
- # Fix typo in qcrilmsgtunnel whitelist
- product/etc/sysconfig/nexus.xml)
- sed -i 's/qulacomm/qualcomm/' "${2}"
- ;;
- vendor/bin/hw/android.hardware.rebootescrow-service.citadel)
- "${PATCHELF}" --replace-needed "libcrypto.so" "libcrypto-v33.so" "${2}"
- ;;
- esac
-}
-
-function prepare_firmware() {
- if [ "${SRC}" != "adb" ]; then
- bash "${ANDROID_ROOT}"/lineage/scripts/pixel/prepare-firmware.sh "${DEVICE}" "${SRC}"
- fi
-}
-
-# Initialize the helper
-setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
-
-extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
-extract "${MY_DIR}/proprietary-files-carriersettings.txt" "${SRC}" "${KANG}" --section "${SECTION}"
-extract "${MY_DIR}/proprietary-files-radio.txt" "${SRC}" "${KANG}" --section "${SECTION}"
-extract "${MY_DIR}/proprietary-files-vendor.txt" "${SRC}" "${KANG}" --section "${SECTION}"
-
-if [ -z "${SECTION}" ]; then
- extract_firmware "${MY_DIR}/proprietary-firmware.txt" "${SRC}"
-fi
-
-"${MY_DIR}/setup-makefiles.sh"