device_phh_treble/vndk.rc
Pierre-Hugues Husson 57ba266b91 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.
2018-09-19 10:39:47 +02:00

14 lines
439 B
Plaintext

on post-fs
exec - root -- /system/bin/vndk-detect
exec - root -- /system/bin/rw-system.sh
mount none /system/etc/usb_audio_policy_configuration.xml /vendor/etc/usb_audio_policy_configuration.xml bind
export LD_CONFIG_FILE /system/etc/ld.config.${persist.sys.vndk}.txt
service phh_on_boot /system/bin/phh-on-boot.sh
oneshot
disabled
on property:sys.boot_completed=1
start phh_on_boot
chown wifi system /data/misc/wifi