From 8ce8aa5343028414884fe702b9498fc15c5ab53b Mon Sep 17 00:00:00 2001 From: Ananta Kishore K Date: Fri, 19 Aug 2016 18:13:33 +0530 Subject: sepolicy: Policy for graphics vulkan Add policy to allow enable or disable of graphics vulkan features CRs-Fixed: 1057609 Change-Id: I1fedc217b31e0a2dc9dd5e34e82cd2ccca2df8f2 --- common/init_shell.te | 1 + common/property.te | 2 ++ common/property_contexts | 1 + 3 files changed, 4 insertions(+) diff --git a/common/init_shell.te b/common/init_shell.te index f38b7010..bc88f3b1 100644 --- a/common/init_shell.te +++ b/common/init_shell.te @@ -96,6 +96,7 @@ allow qti_init_shell { sys_usb_configfs_prop #Needed for setting hwui properties in post_boot hwui_prop + graphics_vulkan_prop }:property_service set; allow qti_init_shell efs_boot_dev:blk_file r_file_perms; diff --git a/common/property.te b/common/property.te index 950f2007..0ccfff9b 100644 --- a/common/property.te +++ b/common/property.te @@ -88,3 +88,5 @@ type alarm_instance_prop, property_type, core_property_type; #HWUI property type hwui_prop, property_type, core_property_type; + +type graphics_vulkan_prop, property_type, core_property_type; diff --git a/common/property_contexts b/common/property_contexts index 2468d8d8..e50507a5 100644 --- a/common/property_contexts +++ b/common/property_contexts @@ -80,3 +80,4 @@ ro.alarm_handled u:object_r:alarm_handled_prop:s0 ro.alarm_instance u:object_r:alarm_instance_prop:s0 #HWUI Property ro.hwui.texture_cache_size u:object_r:hwui_prop:s0 +persist.graphics.vulkan.disable u:object_r:graphics_vulkan_prop:s0 -- cgit v1.2.3