mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
rosemary: Add a shim to link sensor blobs against android.hardware.sensors@1.0-convert
* `libndksensorbridge` was converted to AIDL and is no longer linked to this static library that contains symbols required by our sensor blobs. Add a shim linked to `android.hardware.sensors@1.0-convert` to fix our sensors Change-Id: I969f97bb15d0abcc71f87352722995db3826e122 Signed-off-by: Woomymy <woomy@woomy.be>
This commit is contained in:
committed by
Matsvei Niaverau
parent
3f5de9cf2e
commit
a91b06d074
@@ -439,6 +439,7 @@ PRODUCT_PACKAGES += \
|
||||
android.hardware.sensors@2.0-ScopedWakelock.vendor
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libshim_sensors \
|
||||
libsensorndkbridge
|
||||
|
||||
# Shipping API level
|
||||
|
||||
@@ -77,6 +77,12 @@ function blob_fixup {
|
||||
vendor/lib64/libmtkcam_stdutils.so)
|
||||
"${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${2}"
|
||||
;;
|
||||
vendor/bin/mnld|\
|
||||
vendor/lib*/libaalservice.so|\
|
||||
vendor/lib*/libcam.utils.sensorprovider.so|\
|
||||
vendor/lib*/librgbwlightsensor.so)
|
||||
"$PATCHELF" --add-needed "libshim_sensors.so" "$2"
|
||||
;;
|
||||
vendor/lib*/hw/vendor.mediatek.hardware.pq@2.13-impl.so)
|
||||
"${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${2}"
|
||||
;;
|
||||
|
||||
@@ -1,3 +1,21 @@
|
||||
//
|
||||
// Copyright (C) 2023 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
cc_library_shared {
|
||||
name: "libshim_sensors",
|
||||
whole_static_libs: [
|
||||
"android.hardware.sensors@1.0-convert"
|
||||
],
|
||||
shared_libs: [
|
||||
"libhardware",
|
||||
"libhidlbase",
|
||||
"android.hardware.sensors@1.0"
|
||||
],
|
||||
vendor: true
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libshim_sink",
|
||||
srcs: ["libshim_sink.cpp"],
|
||||
|
||||
Reference in New Issue
Block a user