diff options
author | Roshan Pius <rpius@google.com> | 2016-12-08 18:41:47 -0800 |
---|---|---|
committer | dd3boh <dade.garberi@gmail.com> | 2017-09-07 13:41:55 +0200 |
commit | ad72b65243e36e3342eab088cc3140b380a9f74d (patch) | |
tree | bb1451922d4dea61a78bfb4107368c0e3092fd34 | |
parent | 9ef8496791b5d017fd699f1b2b3ba26b88be878d (diff) |
init: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root
permissions to access this path for firmware reloads.
Bug: 33435250
Test: Compiles.
Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
-rwxr-xr-x | rootdir/etc/init.qcom.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 8971d9c..aa8239c 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -339,6 +339,9 @@ on boot # change this when HAL3 is working setprop persist.camera.HAL3.enabled 0 + # Wifi firmware reload path + chown wifi wifi /sys/module/wlan/parameters/fwpath + # Don't reset entire SoC on individual subsystem crash write /sys/bus/msm_subsys/devices/subsys0/restart_level "related" write /sys/bus/msm_subsys/devices/subsys1/restart_level "related" |