gta4xl-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
diff --git a/config/linker/public.libraries.txt b/config/linker/public.libraries.txt
index ac0fb67..9c84846 100644
--- a/config/linker/public.libraries.txt
+++ b/config/linker/public.libraries.txt
@@ -2,3 +2,5 @@
 libOpenCL.so
 libOpenCL.so.1
 libOpenCL.so.1.1
+libprotobuf-cpp-full.so
+libprotobuf-cpp-lite.so
diff --git a/platform/product_packages.mk b/platform/product_packages.mk
index ec09f9d..a948647 100644
--- a/platform/product_packages.mk
+++ b/platform/product_packages.mk
@@ -121,6 +121,11 @@
 PRODUCT_PACKAGES += \
     android.hardware.power@1.3-service.samsung-libperfmgr
 
+### PROTOBUF
+PRODUCT_PACKAGES += \
+    libprotobuf-cpp-full-vendorcompat \
+    libprotobuf-cpp-lite-vendorcompat
+
 ### RENDERSCRIPT
 PRODUCT_PACKAGES += \
     android.hardware.renderscript@1.0-impl