universal7885-common: Add protobuf vendorcompat lib

Our blobs are compiled against libprotobuf-full-cpp.so, but
starting in R, Android is using a versioned naming approach,
e.g. libprotobuf-cpp-full-3.9.1.so.

See https://r.android.com/1109518

The entry in public.libraries.txt is needed to allow the
linker to find and use the lib outside the VNDK.

See https://source.android.com/devices/tech/config/namespaces_libraries

[wight554: added libprotobuf-cpp-lite as well]

Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
Change-Id: If505d93576a72c5ad3b39c499bd3a7160d1a1c35
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
ix5 2020-04-29 21:08:37 +02:00 committed by roynatech2544
commit c03935be3a
2 changed files with 7 additions and 0 deletions

View file

@ -25,3 +25,5 @@ libsmart_cropping.camera.samsung.so
libsurfaceutil.so
libswldc_capture_core.camera.samsung.so
libxcv.camera.samsung.so
libprotobuf-cpp-full.so
libprotobuf-cpp-lite.so

View file

@ -72,6 +72,11 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
android.hardware.power@1.0-service.universal7904
# Protobuf
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-vendorcompat \
libprotobuf-cpp-lite-vendorcompat
# Public Libraries
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt