Files
device_lenovo_zippo/extract-files.sh
adi8900 369f7c6f9c zippo: Patch blobs to use full protobuf
grep -r libprotobuf-cpp-lite-3.9.1.so
grep: zippo/proprietary/vendor/bin/sensors.qti: binary file matches
grep: zippo/proprietary/vendor/lib/libsensorcal.so: binary file matches
grep: zippo/proprietary/vendor/lib/libsnsapi.so: binary file matches
grep: zippo/proprietary/vendor/lib/libsnsdiaglog.so: binary file matches
grep: zippo/proprietary/vendor/lib/libssc.so: binary file matches
grep: zippo/proprietary/vendor/lib/sensors.ssc.so: binary file matches
grep: zippo/proprietary/vendor/lib64/libsensorcal.so: binary file matches
grep: zippo/proprietary/vendor/lib64/libsnsapi.so: binary file matches
grep: zippo/proprietary/vendor/lib64/libsnsdiaglog.so: binary file matches
grep: zippo/proprietary/vendor/lib64/libssc.so: binary file matches
grep: zippo/proprietary/vendor/lib64/sensors.ssc.so: binary file matches
2024-01-16 10:13:34 +01:00

36 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
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}"
;;
# 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}"
;;
esac
}
# 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
fi
set -e
export DEVICE=zippo
export DEVICE_COMMON=sm8150-common
export VENDOR=lenovo
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@"