From 57ba266b91df55e5dbf92757e7f7d9f35f9938ef Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 19 Sep 2018 10:38:53 +0200 Subject: [PATCH] Ugly: Give TrebleApp write accesss to wifi configuration file As part of O/O-MR1 vendor support for hostapd, an in-app IHostapd implementation has been done. This needs to write to /data/misc/wifi/hostapd.conf /data/misc/wifi is originally in P writable only by wifi/wifi. There is no easy way to gain "wifi" group access (though can be done through platform.xml) from an app. At the moment, all services requiring access to /data/misc/wifi are running user "wifi", so this change is okay for the moment. --- vndk.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/vndk.rc b/vndk.rc index 12971a6..94e2467 100644 --- a/vndk.rc +++ b/vndk.rc @@ -10,3 +10,4 @@ service phh_on_boot /system/bin/phh-on-boot.sh on property:sys.boot_completed=1 start phh_on_boot + chown wifi system /data/misc/wifi