Add prebuilt of libprotobuf-cpp-full-3.9.1.

Needed to work around a Qualcomm prebuilt neural network HAL.
Libraries were extracted from ab/9269995 for barbet-userdebug.

Bug: 203713560
Bug: 258322017
Test: Forrest
Change-Id: I581f1d5ad92dc483f681d6ba21b44a928ea53194
diff --git a/protobuf_vendorcompat/Android.bp b/protobuf_vendorcompat/Android.bp
new file mode 100644
index 0000000..f956418
--- /dev/null
+++ b/protobuf_vendorcompat/Android.bp
@@ -0,0 +1,34 @@
+package {
+    default_applicable_licenses: ["prebuilts_misc_protobuf_vendorcompat_license"],
+}
+
+// See: http://go/android-license-faq
+license {
+    name: "prebuilts_misc_protobuf_vendorcompat_license",
+    license_kinds: ["SPDX-license-identifier-BSD"],
+    license_text: ["LICENSE"],
+}
+
+// Workaround for neural networks HAL on barbet
+cc_prebuilt_library_shared {
+    name: "libprotobuf-cpp-full-3.9.1-vendorcompat",
+    stem: "libprotobuf-cpp-full-3.9.1",
+    vendor: true,
+    target: {
+        android_arm64: {
+            srcs: ["arm64/libprotobuf-cpp-full-3.9.1.so"],
+        },
+        android_arm: {
+            srcs: ["arm/libprotobuf-cpp-full-3.9.1.so"],
+        },
+    },
+
+    shared_libs: [
+        "libc++",
+        "libc",
+        "libdl",
+        "liblog",
+        "libm",
+        "libz",
+    ],
+}
diff --git a/protobuf_vendorcompat/LICENSE b/protobuf_vendorcompat/LICENSE
new file mode 100644
index 0000000..19b305b
--- /dev/null
+++ b/protobuf_vendorcompat/LICENSE
@@ -0,0 +1,32 @@
+Copyright 2008 Google Inc.  All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+    * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Code generated by the Protocol Buffer compiler is owned by the owner
+of the input file used when generating it.  This code is not
+standalone and requires a support library to be linked with it.  This
+support library is itself covered by the above license.
diff --git a/protobuf_vendorcompat/arm/PREBUILT b/protobuf_vendorcompat/arm/PREBUILT
new file mode 100644
index 0000000..c9861e3
--- /dev/null
+++ b/protobuf_vendorcompat/arm/PREBUILT
@@ -0,0 +1,5 @@
+Extracted from ab/9269995, target barbet-userdebug as follows:
+
+/google/data/ro/projects/android/fetch_artifact --bid 9269995 --target barbet-userdebug 'barbet-img-9269995.zip'
+unzip barbet-img-9269995.zip vendor.img
+e2cp vendor.img:lib/libprotobuf-cpp-full-3.9.1.so $ANDROID_BUILD_TOP/prebuilts/misc/android-arm/protobuf/
\ No newline at end of file
diff --git a/protobuf_vendorcompat/arm/libprotobuf-cpp-full-3.9.1.so b/protobuf_vendorcompat/arm/libprotobuf-cpp-full-3.9.1.so
new file mode 100644
index 0000000..27975ab
--- /dev/null
+++ b/protobuf_vendorcompat/arm/libprotobuf-cpp-full-3.9.1.so
Binary files differ
diff --git a/protobuf_vendorcompat/arm64/PREBUILT b/protobuf_vendorcompat/arm64/PREBUILT
new file mode 100644
index 0000000..170802e
--- /dev/null
+++ b/protobuf_vendorcompat/arm64/PREBUILT
@@ -0,0 +1,5 @@
+Extracted from ab/9269995, target barbet-userdebug as follows:
+
+/google/data/ro/projects/android/fetch_artifact --bid 9269995 --target barbet-userdebug 'barbet-img-9269995.zip'
+unzip barbet-img-9269995.zip vendor.img
+e2cp vendor.img:lib64/libprotobuf-cpp-full-3.9.1.so $ANDROID_BUILD_TOP/prebuilts/misc/android-arm64/protobuf/
\ No newline at end of file
diff --git a/protobuf_vendorcompat/arm64/libprotobuf-cpp-full-3.9.1.so b/protobuf_vendorcompat/arm64/libprotobuf-cpp-full-3.9.1.so
new file mode 100644
index 0000000..795e2b3
--- /dev/null
+++ b/protobuf_vendorcompat/arm64/libprotobuf-cpp-full-3.9.1.so
Binary files differ