From 4d3273bbcc2e1996c14bc4176b33b465ebfb3125 Mon Sep 17 00:00:00 2001 From: Ruina Liu Date: Sat, 18 Jan 2020 10:03:37 +0800 Subject: [PATCH] [ALPS03902630] Fix property type of MTK Bluetooth Google has new property limitation, neverallow coredomain from writing vendor properties. Change the type from mtk_core_property_type to extended_core_property_type MTK-Commit-Id: d430f6e975a68837ae7c95be664f9004149a6852 Change-Id: I24c634223eb40fc4f28934cdcacb26ea94b0d4f6 CR-Id: ALPS03902630 Feature: BT AOSP --- non_plat/bluetooth.te | 1 - non_plat/property.te | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/non_plat/bluetooth.te b/non_plat/bluetooth.te index 22b32bf..d0952ca 100644 --- a/non_plat/bluetooth.te +++ b/non_plat/bluetooth.te @@ -11,7 +11,6 @@ allow bluetooth storage_stub_file:dir getattr; # Date: 2018/01/17 #allow bluetooth to set property -typeattribute bluetooth system_writes_vendor_properties_violators; set_prop(bluetooth, vendor_bluetooth_prop) set_prop(bluetooth, debug_prop) diff --git a/non_plat/property.te b/non_plat/property.te index 31f3aa8..d9aad2b 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -162,7 +162,7 @@ type vendor_connsysfw_prop, property_type, extended_core_property_type; type vendor_radio_prop, property_type, mtk_core_property_type; #=============allow bluetooth============== -type vendor_bluetooth_prop, property_type, mtk_core_property_type; +type vendor_bluetooth_prop, property_type, extended_core_property_type; #=============allow EM to set modem reset delay property================ type mtk_debug_md_reset_prop, property_type, mtk_core_property_type;