sdm660-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: I28222c89e1e07017867088492a726ee9d45d8e6f
This commit is contained in:
Felix 2020-10-01 14:42:22 +00:00 committed by OdSazib
parent 80d02cda27
commit 8fecc32ed8
No known key found for this signature in database
GPG key ID: 0954440B60470871
2 changed files with 7 additions and 0 deletions

View file

@ -10,3 +10,5 @@ libnpu.so
libhta_controller.so
libhta_hexagon_runtime.so
unnhal-acc-hta.so
libprotobuf-cpp-full.so
libprotobuf-cpp-lite.so

View file

@ -461,6 +461,11 @@ PRODUCT_PACKAGES += \
# Preopt SystemUI
PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI
# Protobuf
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-vendorcompat \
libprotobuf-cpp-lite-vendorcompat
# Privapp-Permissions
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/privapp-permission/privapp-permissions-qti-product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-qti.xml \