Add binderized gralloc to car emulator
am: d016850f60
Change-Id: I9d2f07f82bd26732dd8af0c1c9daa9d41f45f040
diff --git a/common/product/emulator.mk b/common/product/emulator.mk
index 9ebfaac..356dbb1 100644
--- a/common/product/emulator.mk
+++ b/common/product/emulator.mk
@@ -65,4 +65,14 @@
PRODUCT_PACKAGE_OVERLAYS := device/generic/goldfish/overlay
+# Vendor Interface Manifest
+PRODUCT_COPY_FILES += \
+ device/generic/car/common/product/manifest.xml:system/vendor/manifest.xml
+
+# Graphics HAL
+PRODUCT_PACKAGES += \
+ android.hardware.graphics.allocator@2.0-impl \
+ android.hardware.graphics.allocator@2.0-service \
+ android.hardware.graphics.mapper@2.0-impl
+
PRODUCT_CHARACTERISTICS := emulator
diff --git a/common/product/manifest.xml b/common/product/manifest.xml
new file mode 100644
index 0000000..e108de6
--- /dev/null
+++ b/common/product/manifest.xml
@@ -0,0 +1,20 @@
+<manifest version="1.0" type="device">
+ <hal format="hidl">
+ <name>android.hardware.graphics.allocator</name>
+ <transport>hwbinder</transport>
+ <version>2.0</version>
+ <interface>
+ <name>IAllocator</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
+ <name>android.hardware.graphics.mapper</name>
+ <transport arch="32+64">passthrough</transport>
+ <version>2.0</version>
+ <interface>
+ <name>IMapper</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>