From 1a731bb1c83f7091a6b1caff238fd718f945395c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 28 Sep 2017 11:55:45 -0700 Subject: [PATCH] wahoo: switch to IMapper 2.1 Test: Check system boots. Run display CTS. Bug: 66876469 Change-Id: I33be48cd40457ceabc24ff5e085fa8ddaa4670e4 --- CleanSpec.mk | 4 ++++ device.mk | 2 +- manifest.xml | 2 +- sepolicy/vendor/file_contexts | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CleanSpec.mk b/CleanSpec.mk index 7ec8359c..3d36290b 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -194,3 +194,7 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.ke # Move libnfc-nci.conf to /vendor $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/libnfc-nci.conf) + +# Remove android.hardware.graphics.mapper@2.0-impl +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so) diff --git a/device.mk b/device.mk index ee81f76f..90ee19e6 100755 --- a/device.mk +++ b/device.mk @@ -334,7 +334,7 @@ PRODUCT_PACKAGES += \ gralloc.msm8998 \ android.hardware.graphics.allocator@2.0-impl:64 \ android.hardware.graphics.allocator@2.0-service \ - android.hardware.graphics.mapper@2.0-impl \ + android.hardware.graphics.mapper@2.0-impl-2.1 \ libbt-vendor # RenderScript HAL diff --git a/manifest.xml b/manifest.xml index 6723c3eb..a46b40e5 100644 --- a/manifest.xml +++ b/manifest.xml @@ -136,7 +136,7 @@ android.hardware.graphics.mapper passthrough - 2.0 + 2.1 IMapper default diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 09005cef..20e29b11 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -196,6 +196,7 @@ ############################################### # same-process HAL files and their dependencies # +/vendor/lib(64)?/hw/android\.hardware\.graphics\.mapper@2\.0-impl-2\.1\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/hw/gralloc\.msm8998\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libqdMetaData\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libqservice\.so u:object_r:same_process_hal_file:s0