From 37bc89d8a6753fc4530230e713c384f27890d302 Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Sat, 13 Aug 2022 14:32:49 +0200 Subject: [PATCH] sm7125: Let's not label ro.vendor.wifi.sap.interface Macloader wants to set this, and if it does it makes hotspot choose the wrong interface Change-Id: Iba9208f9cb17b169697eab7cf52c87e05e5be6e1 --- sepolicy/vendor/macloader.te | 3 +++ sepolicy/vendor/property_contexts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sepolicy/vendor/macloader.te b/sepolicy/vendor/macloader.te index e0a9bfc..39f03e5 100644 --- a/sepolicy/vendor/macloader.te +++ b/sepolicy/vendor/macloader.te @@ -42,3 +42,6 @@ allow macloader sysfs_wifi:file r_file_perms; allow macloader sysfs_wifi_writable:file { write open }; set_prop(macloader, vendor_wifi_prop) + +# Don't set ro.vendor.wifi.sap.interface +dontaudit macloader vendor_default_prop:property_service set; diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts index 65e455a..4a5801e 100644 --- a/sepolicy/vendor/property_contexts +++ b/sepolicy/vendor/property_contexts @@ -31,4 +31,3 @@ vendor.sys.qseecomd.enable u:object_r:vendor_qseecomd_prop # wifi vendor.wifi. u:object_r:vendor_wifi_prop:s0 -ro.vendor.wifi.sap.interface u:object_r:vendor_wifi_prop:s0