2019-08-25 13:27:38 +05:30
|
|
|
#!/bin/bash
|
|
|
|
|
#
|
2019-03-22 22:37:05 +00:00
|
|
|
# Copyright (C) 2016 The CyanogenMod Project
|
2021-01-28 17:00:09 +01:00
|
|
|
# Copyright (C) 2017-2021 The LineageOS Project
|
2019-08-25 13:27:38 +05:30
|
|
|
#
|
2020-12-19 02:53:35 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-08-25 13:27:38 +05:30
|
|
|
#
|
|
|
|
|
|
2022-08-19 10:39:47 +02:00
|
|
|
function blob_fixup() {
|
|
|
|
|
case "${1}" in
|
|
|
|
|
# Use VNDK 32 libhidlbase
|
|
|
|
|
vendor/lib64/libvendor.goodix.hardware.biometrics.fingerprint@2.1.so)
|
|
|
|
|
"${PATCHELF_0_8}" --remove-needed "libhidlbase.so" "${2}"
|
|
|
|
|
sed -i "s/libhidltransport.so/libhidlbase-v32.so\x00/" "${2}"
|
|
|
|
|
;;
|
2024-01-13 22:56:02 +01:00
|
|
|
# Use libprotobuf-cpp-full-3.9.1
|
|
|
|
|
vendor/bin/sensors.qti | vendor/lib/libsensorcal.so | vendor/lib/libsnsapi.so | vendor/lib/libsnsdiaglog.so | vendor/lib/libssc.so | vendor/lib/sensors.ssc.so | vendor/lib64/libsensorcal.so | vendor/lib64/libsnsapi.so | vendor/lib64/libsnsdiaglog.so | vendor/lib64/libssc.so | vendor/lib64/sensors.ssc.so
|
|
|
|
|
"${PATCHELF} --replace-needed "libprotobuf-cpp-lite-3.9.1.so" "libprotobuf-cpp-full-3.9.1.so" "${2}"
|
|
|
|
|
;;
|
2022-08-19 10:39:47 +02:00
|
|
|
esac
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-28 17:00:09 +01:00
|
|
|
# If we're being sourced by the common script that we called,
|
|
|
|
|
# stop right here. No need to go down the rabbit hole.
|
|
|
|
|
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
|
|
|
|
return
|
2019-08-25 13:27:38 +05:30
|
|
|
fi
|
|
|
|
|
|
2021-01-28 17:00:09 +01:00
|
|
|
set -e
|
2019-08-25 13:27:38 +05:30
|
|
|
|
2021-01-28 17:00:09 +01:00
|
|
|
export DEVICE=zippo
|
|
|
|
|
export DEVICE_COMMON=sm8150-common
|
|
|
|
|
export VENDOR=lenovo
|
2019-03-22 22:37:05 +00:00
|
|
|
|
2024-01-13 22:56:02 +01:00
|
|
|
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"
|