From 9611223a281365cb190111637a5d2fe3036eb0c1 Mon Sep 17 00:00:00 2001 From: "yu.chen" Date: Sat, 18 Jan 2020 10:05:22 +0800 Subject: [PATCH] [ALPS04027708] Enable ANR systemproperty [Detail] Enable ANR systemproperty persist.vendor.dbg.anrflow persist.vendor.anr. vendor.anr.autotest MTK-Commit-Id: eb6a6e8f3803b41347567178f7649ef5c9d2f80e Change-Id: Ibb530a1d9f5ceca67e39fe2c6980e6807e457b86 CR-Id: ALPS04027708 Feature: ANR Debugging Mechanism Enhancements --- non_plat/property.te | 3 +++ non_plat/property_contexts | 4 ++++ non_plat/vendor_init.te | 1 + 3 files changed, 8 insertions(+) diff --git a/non_plat/property.te b/non_plat/property.te index cf40563..a15b854 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -253,3 +253,6 @@ type vendor_em_usb_prop, property_type, mtk_core_property_type; #=============allow em to set usb otg enable property ============== type vendor_usb_otg_switch, property_type, mtk_core_property_type; + +#=============mtk anr property============= +type mtk_anr_support_prop, property_type, mtk_core_property_type; diff --git a/non_plat/property_contexts b/non_plat/property_contexts index c2c0e7e..1fc2f0d 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -282,3 +282,7 @@ persist.vendor.usb.otg.switch u:object_r:vendor_usb_otg_switch:s0 #============mtk rsc========# ro.boot.rsc u:object_r:mtk_default_prop:s0 +#=============mtk anr property============= +persist.vendor.dbg.anrflow u:object_r:mtk_anr_support_prop:s0 +persist.vendor.anr. u:object_r:mtk_anr_support_prop:s0 +vendor.anr.autotest u:object_r:mtk_anr_support_prop:s0 diff --git a/non_plat/vendor_init.te b/non_plat/vendor_init.te index aa8eaf7..287fc12 100644 --- a/non_plat/vendor_init.te +++ b/non_plat/vendor_init.te @@ -30,6 +30,7 @@ set_prop(vendor_init, mtk_pq_ro_prop) set_prop(vendor_init, mtk_default_prop) set_prop(vendor_init, mtk_emmc_support_prop) +set_prop(vendor_init, mtk_anr_support_prop) # allow create symbolic link, /mnt/sdcard, for meta/factory mode allow vendor_init tmpfs:lnk_file create;