From b3a9a20af23569f41a48b8ac7baddbade19532c0 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Tue, 22 Feb 2022 17:53:07 +0530 Subject: [PATCH] system: perf: Zipalign QXPerformance.jar https://github.com/ThankYouMario/proprietary_vendor_qcom_common/commit/cf09742efd34681ac9c8f5adc3fde5c127fe9314 Change-Id: Ida118b2cedfde37096d3da7b6507357d21aec463 --- system/extract-files.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/extract-files.sh b/system/extract-files.sh index 453dd37d..f4713503 100755 --- a/system/extract-files.sh +++ b/system/extract-files.sh @@ -51,6 +51,16 @@ if [ -z "${SRC}" ]; then SRC="adb" fi +function blob_fixup() { + case "${1}" in + system/framework/QXPerformance.jar) + mv "${2}" "${2}.tmp" + zipalign -p -f 4 "${2}.tmp" "${2}" + rm "${2}.tmp" + ;; + esac +} + # Initialize the helper setup_vendor "${COMPONENT}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" "" true