Merge "Enable and binderize hwcomposer hal"

This commit is contained in:
TreeHugger Robot
2017-03-10 23:12:10 +00:00
committed by Android (Google) Code Review
4 changed files with 16 additions and 2 deletions

View File

@@ -107,4 +107,3 @@ USES_DEVICE_GOOGLE_WAHOO := true
# Graphics
TARGET_USES_GRALLOC1 := true
TARGET_USES_HWC2 := true
TARGET_USES_HWC2ON1ADAPTER := true

View File

@@ -216,11 +216,12 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
hwcomposer.msm8998 \
android.hardware.graphics.composer@2.1-impl \
android.hardware.graphics.composer@2.1-service \
gralloc.msm8998 \
android.hardware.graphics.allocator@2.0-impl \
android.hardware.graphics.allocator@2.0-service \
android.hardware.graphics.mapper@2.0-impl \
android.hardware.graphics.composer@2.1-impl \
libbt-vendor
# Light HAL

View File

@@ -21,6 +21,12 @@
<impl level="generic"></impl>
<version>2.0</version>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.composer</name>
<transport>hwbinder</transport>
<impl level="generic"></impl>
<version>2.1</version>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.mapper</name>
<transport arch="32+64">passthrough</transport>

View File

@@ -0,0 +1,8 @@
# Binder access (for display.qservice)
# TODO remove after the HAL is fixed
binder_service(hal_graphics_composer_default)
binder_use(hal_graphics_composer_default)
allow hal_graphics_composer_default surfaceflinger_service:service_manager { add find };
# HWC_UeventThread
allow hal_graphics_composer_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;