From d64a3c06cca1ffea8c743cd6d0d5132f3c8a5112 Mon Sep 17 00:00:00 2001 From: johnmart19 Date: Mon, 7 Oct 2024 21:41:40 +0300 Subject: [PATCH] MiuiCamera: scripts: Enable ELF Checks Inspired from sm8250-common: Enable elf checks [https://github.com/LineageOS/android_device_xiaomi_sm8250-common/commit/b31a7973179636cf1890bb22755324ffd10a6434] Co-authored-by: Aaron Kling --- extract-files.sh | 2 ++ setup-makefiles.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index 34c9824..0db0d9c 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -17,6 +17,8 @@ if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi ANDROID_ROOT="${MY_DIR}/../../.." +export TARGET_ENABLE_CHECKELF=true + HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" if [ ! -f "${HELPER}" ]; then echo "Unable to find helper script at ${HELPER}" diff --git a/setup-makefiles.sh b/setup-makefiles.sh index 836bfe1..292a719 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -18,6 +18,8 @@ if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi ANDROID_ROOT="${MY_DIR}/../../.." +export TARGET_ENABLE_CHECKELF=true + HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh" if [ ! -f "${HELPER}" ]; then echo "Unable to find helper script at ${HELPER}"