Files
device_lenovo_zippo/extract-files.sh
Lucchetto 5ae58fa0f8 zippo: use libhidlbase from vndk v32 for libvendor.goodix.hardware.biometrics.fingerprint@2.1.so
* _ZN7android8hardware7details17gBnConstructorMapE and _ZN7android8hardware7details17gBsConstructorMapE have been removed on Android 13

Signed-off-by: Lucchetto <lucchetto.tie@live.com>
2022-09-18 19:34:41 +00:00

31 lines
794 B
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}"
;;
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" "$@"