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.
This commit is contained in:
Pierre-Hugues Husson 2018-09-19 10:38:53 +02:00
parent bb48e2b0fc
commit 57ba266b91

View File

@ -10,3 +10,4 @@ service phh_on_boot /system/bin/phh-on-boot.sh
on property:sys.boot_completed=1 on property:sys.boot_completed=1
start phh_on_boot start phh_on_boot
chown wifi system /data/misc/wifi