From 99dcd98d32e1590d12027f4be40d87b99205f957 Mon Sep 17 00:00:00 2001 From: mtk14318 Date: Sat, 18 Jan 2020 10:05:54 +0800 Subject: [PATCH] [ALPS04034495] Latch unsignaled buffer [Detail] Read latch unsignaled buffer by vendor property. [Solution] Read latch unsignaled buffer by vendor property. MTK-Commit-Id: 62e601385bce5a890d9d46ce81318e4d5c19e643 Change-Id: I5737f589a3d3bb48ad5a30ee2ef670de602b30c3 CR-Id: ALPS04034495 Feature: [Module]SurfaceFlinger/HWComposer --- non_plat/hal_graphics_composer_default.te | 1 + non_plat/property.te | 1 + non_plat/property_contexts | 1 + non_plat/surfaceflinger.te | 1 + 4 files changed, 4 insertions(+) diff --git a/non_plat/hal_graphics_composer_default.te b/non_plat/hal_graphics_composer_default.te index 1ecff2a..0e72ded 100644 --- a/non_plat/hal_graphics_composer_default.te +++ b/non_plat/hal_graphics_composer_default.te @@ -44,6 +44,7 @@ binder_call(hal_graphics_composer_default, mtk_hal_power) set_prop(hal_graphics_composer_default, graphics_hwc_pid_prop) get_prop(hal_graphics_composer_default, graphics_hwc_pid_prop) get_prop(hal_graphics_composer_default, graphics_debug_prop) +set_prop(hal_graphics_composer_default, graphics_hwc_latch_unsignaled_prop) # Date : WK18.03 # Purpose: Allow to access property dev/mdp_sync diff --git a/non_plat/property.te b/non_plat/property.te index 7e15392..0852aa3 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -199,6 +199,7 @@ type mtk_thermal_config_prop, property_type; #=============allow composer set property ============================ type graphics_hwc_pid_prop, property_type; type graphics_debug_prop, property_type; +type graphics_hwc_latch_unsignaled_prop, property_type; #============= mtkcam property ============================ type mtkcam_prop, property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index 4de2eb7..935e021 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -193,6 +193,7 @@ vendor.gsm.sim.operator.default-name u:object_r:vendor_sim_system_prop:s0 vendor.thermal.manager.data u:object_r:mtk_thermal_config_prop:s0 #=============allow composer set property ============================ vendor.debug.sf.hwc_pid u:object_r:graphics_hwc_pid_prop:s0 +vendor.debug.sf.latch_unsignaled u:object_r:graphics_hwc_latch_unsignaled_prop:s0 #=============allow graphics debug property ============================ vendor.debug.sf. u:object_r:graphics_debug_prop:s0 diff --git a/non_plat/surfaceflinger.te b/non_plat/surfaceflinger.te index acfd9b1..d4646ab 100644 --- a/non_plat/surfaceflinger.te +++ b/non_plat/surfaceflinger.te @@ -52,5 +52,6 @@ allow surfaceflinger proc_perfmgr:file {open read ioctl}; # Purpose: Allow to dump HWC backtrace get_prop(surfaceflinger, graphics_hwc_pid_prop) get_prop(surfaceflinger, graphics_debug_prop) +get_prop(surfaceflinger, graphics_hwc_latch_unsignaled_prop) allow surfaceflinger hal_graphics_composer_default:dir search; allow surfaceflinger hal_graphics_composer_default:lnk_file read;