Files
device_lenovo_zippo/extract-files.sh

36 lines
1.2 KiB
Bash
Raw Permalink Normal View History

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