OSDN Git Service

Add manifest fragment
authorRoman Stratiienko <r.stratiienko@gmail.com>
Wed, 23 Dec 2020 09:26:28 +0000 (11:26 +0200)
committerRob Herring <robherring2@gmail.com>
Sat, 13 Mar 2021 00:35:35 +0000 (17:35 -0700)
Fragmented manifest is supported starting from Android-10.
Having it here makes easier to switch between different
gralloc implementations.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Android.mk
gbm_gralloc_manifest.xml [new file with mode: 0644]

index 4c03865..61787d0 100644 (file)
@@ -40,6 +40,7 @@ LOCAL_MODULE := gralloc.gbm
 LOCAL_MODULE_TAGS := optional
 LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_PROPRIETARY_MODULE := true
+LOCAL_VINTF_FRAGMENTS := gbm_gralloc_manifest.xml
 
 include $(BUILD_SHARED_LIBRARY)
 
diff --git a/gbm_gralloc_manifest.xml b/gbm_gralloc_manifest.xml
new file mode 100644 (file)
index 0000000..915883a
--- /dev/null
@@ -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.1</version>
+        <interface>
+            <name>IMapper</name>
+            <instance>default</instance>
+        </interface>
+    </hal>
+</manifest>