From a38199a49ec13b8daeb54c9b03ca2f63f39d7751 Mon Sep 17 00:00:00 2001 From: mtk13799 Date: Sat, 18 Jan 2020 10:05:50 +0800 Subject: [PATCH] [ALPS04030563] add antutu blocking property in selinux [Detail] selinux permission denied for "ro.vendor.net.upload.benchmark.default" [Solution] add "ro.vendor.net.upload.benchmark.default" property in selinux MTK-Commit-Id: 67b0ca896cbaed21ecc0343528caa5829ec3a5e4 Change-Id: I6b0afee632d794dd1fc2138cf442c046a5b662d1 Signed-off-by: mtk13799 CR-Id: ALPS04030563 Feature: [Android Default]Dedicated APN for Tethering --- non_plat/netd.te | 3 +++ non_plat/property.te | 4 ++++ non_plat/property_contexts | 3 +++ 3 files changed, 10 insertions(+) diff --git a/non_plat/netd.te b/non_plat/netd.te index 03e8c0c..02b380f 100644 --- a/non_plat/netd.te +++ b/non_plat/netd.te @@ -60,3 +60,6 @@ allow netd untrusted_app:fd use; # Purpose : CTS for wifi allow netd untrusted_app:unix_stream_socket { read write getopt setopt}; allow netd isolated_app:fd use; + +# MTK support antutu feature +get_prop(netd, mtk_antutu_prop); diff --git a/non_plat/property.te b/non_plat/property.te index 898236b..7e15392 100644 --- a/non_plat/property.te +++ b/non_plat/property.te @@ -259,3 +259,7 @@ type mtk_anr_support_prop, property_type, mtk_core_property_type; #=============mtk app resolution tuner property============= type mtk_appresolutiontuner_prop, property_type, mtk_core_property_type; + +# MTK Antutu feature +type mtk_antutu_prop, property_type, mtk_core_property_type; + diff --git a/non_plat/property_contexts b/non_plat/property_contexts index a44e881..4de2eb7 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -294,3 +294,6 @@ vendor.anr.autotest u:object_r:mtk_anr_support_prop:s0 #=============mtk app resolution tuner============= ro.vendor.app_resolution_tuner u:object_r:mtk_appresolutiontuner_prop:s0 persist.vendor.dbg.disable.art u:object_r:mtk_appresolutiontuner_prop:s0 + +# MTK Antutu feature +ro.vendor.net.upload.benchmark.default u:object_r:mtk_antutu_prop:s0