redwood: Import libmisight for citsensorservice
error: vendor/xiaomi/redwood/Android.bp:11001:1: "vendor.xiaomi.hardware.citsensorservice@1.1-impl" depends on undefined module "libmisight". Also, E vndksupport: Could not load /vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so from default namespace: dlopen failed: cannot locate symbol "_ZN4Json5ValueaSES0_" referenced by "/vendor/lib64/libmisight.so".... E vndksupport: Could not load /vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so from default namespace: dlopen failed: cannot locate symbol "_ZN4Json5ValueC1Ex" referenced by "/vendor/lib64/libmisight.so".... Signed-off-by: thepriyanshujangid <priyanshujangid@yahoo.com>
This commit is contained in:
committed by
thepriyanshujangid
parent
24e7c24e75
commit
77e6010c66
@@ -487,6 +487,10 @@ PRODUCT_PACKAGES += \
|
||||
vendor.qti.hardware.display.mapper@1.1.vendor \
|
||||
vendor.qti.hardware.memtrack-service
|
||||
|
||||
# Shim
|
||||
PRODUCT_PACKAGES += \
|
||||
libmisightjson_shim
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
||||
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
|
||||
|
||||
@@ -77,6 +77,9 @@ blob_fixups: blob_fixups_user_type = {
|
||||
.clear_symbol_version('remote_handle_close')
|
||||
.clear_symbol_version('remote_handle_invoke')
|
||||
.clear_symbol_version('remote_handle_open'),
|
||||
'vendor/lib64/libmisight.so': blob_fixup()
|
||||
.add_needed('libjsoncpp_shim.so')
|
||||
.add_needed('libmisightjson_shim.so'),
|
||||
'vendor/lib64/libsensor_cal_v2.so': blob_fixup()
|
||||
.add_needed('libjsoncpp_shim.so'),
|
||||
('vendor/lib/hw/audio.primary.lahaina.so', 'vendor/lib/libaudioroute_ext.so'): blob_fixup()
|
||||
|
||||
@@ -1234,6 +1234,7 @@ vendor/bin/hw/vendor.xiaomi.hardware.citsensorservice@1.1-service
|
||||
vendor/etc/init/vendor.xiaomi.hardware.citsensorservice@1.1-service.rc
|
||||
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.citsensorservice@1.1-service.xml
|
||||
vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so
|
||||
vendor/lib64/libmisight.so
|
||||
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0.so
|
||||
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.1.so
|
||||
|
||||
|
||||
15
shim/Android.bp
Normal file
15
shim/Android.bp
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// Copyright (C) 2022-2025 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
cc_library {
|
||||
name: "libmisightjson_shim",
|
||||
srcs: [
|
||||
"libmisightjson/json_value.cpp",
|
||||
],
|
||||
shared_libs: ["libjsoncpp"],
|
||||
compile_multilib: "both",
|
||||
vendor: true,
|
||||
}
|
||||
12
shim/libmisightjson/json_value.cpp
Normal file
12
shim/libmisightjson/json_value.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2024 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <json/value.h>
|
||||
|
||||
extern "C" Json::Value* _ZN4Json5ValueC1Ex(Json::Value* thisptr, Json::Value other) {
|
||||
*thisptr = other;
|
||||
return thisptr;
|
||||
}
|
||||
Reference in New Issue
Block a user