From 1888305f7545b1dd1d6a5f50a03ff2d04c77055b Mon Sep 17 00:00:00 2001 From: Sammy-CY Yang Date: Sat, 18 Jan 2020 10:10:23 +0800 Subject: [PATCH] [ALPS04409296] add BT enable SAP profile policy Enable BT SAP profile by properties rather than static resource overlay in Andorid Q. Add the selinux rule for this property. MTK-Commit-Id: 32eeec317227518f6be67c8bacc1aef03a413568 Change-Id: Ide8429240862eb79b24a352272ceaeae3fd09b2a CR-Id: ALPS04409296 Feature: BT AOSP --- non_plat/property.te | 3 +++ non_plat/property_contexts | 3 +++ non_plat/vendor_init.te | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/non_plat/property.te b/non_plat/property.te index 81f27b9..17cc99e 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -304,3 +304,6 @@ type mtk_amslog_prop, property_type, extended_core_property_type; #=============allow android log much property============== type logmuch_prop, property_type, extended_core_property_type; + +#=============mtk bt enable SAP profile property============= +type mtk_bt_sap_enable_prop, property_type, mtk_core_property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index efc7c4a..91ad870 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -323,3 +323,6 @@ vendor.voicerecognize.noDL u:object_r:mtk_voicerecgnize_prop:s0 #=============allow radio to set/get xcap rawurl config================ persist.vendor.mtk.xcap.rawurl u:object_r:persist_xcap_rawurl_prop:s0 + +#=============mtk bt enable SAP profile property=============# +ro.vendor.mtk.bt_sap_enable u:object_r:mtk_bt_sap_enable_prop:s0 diff --git a/non_plat/vendor_init.te b/non_plat/vendor_init.te index 78c9707..a1d90b3 100644 --- a/non_plat/vendor_init.te +++ b/non_plat/vendor_init.te @@ -33,6 +33,7 @@ set_prop(vendor_init, mtk_default_prop) set_prop(vendor_init, mtk_emmc_support_prop) set_prop(vendor_init, mtk_anr_support_prop) set_prop(vendor_init, mtk_antutu_prop) +set_prop(vendor_init, mtk_bt_sap_enable_prop) # allow create symbolic link, /mnt/sdcard, for meta/factory mode allow vendor_init tmpfs:lnk_file create; @@ -58,4 +59,4 @@ set_prop(vendor_init, mtk_appresolutiontuner_prop) set_prop(vendor_init, mtk_fullscreenswitch_prop) # for kernel module verification support, allow vendor domain to search kernel keyring -allow vendor_init kernel:key search; \ No newline at end of file +allow vendor_init kernel:key search;