diff options
author | Arian <arian.kulmer@web.de> | 2020-02-12 17:33:37 +0100 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2020-03-16 15:05:28 +0100 |
commit | c8d4c0eb52180abb7876816eb86100f90a67e3a0 (patch) | |
tree | 97cbc2e773995821bb4291f1ffa8a2aef17c2d1a | |
parent | 4714354752a4d59e8c547f02d71e97f59693bfb1 (diff) |
shinano-common: Move macaddrsetup service declaration to its respective init.rc
Change-Id: Ic434c18314838f845bcdca5e029a127db0500070
-rw-r--r-- | rootdir/etc/init.qcom.rc | 9 | ||||
-rw-r--r-- | system_prop.mk | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3992976..9447ff1 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -321,6 +321,9 @@ on post-fs-data # Create directory used by bluetooth subsystem mkdir /data/vendor/bluetooth 2770 bluetooth bluetooth + # Set owner of macaddr node + chown system system /sys/devices/platform/bcmdhd_wlan/macaddr + # Provide the access to hostapd.conf only to root and group chmod 0660 /data/hostapd/hostapd.conf @@ -368,12 +371,6 @@ service qmuxd /vendor/bin/qmuxd user root group radio audio bluetooth gps nfc diag wakelock oem_2950 -# Wi-Fi and BT MAC addresses -service macaddrsetup /vendor/bin/macaddrsetup /sys/devices/platform/bcmdhd_wlan/macaddr - class late_start - user root - oneshot - service netmgrd /vendor/bin/netmgrd class late_start user root diff --git a/system_prop.mk b/system_prop.mk index 0479e8d..bf992bf 100644 --- a/system_prop.mk +++ b/system_prop.mk @@ -52,6 +52,10 @@ PRODUCT_PROPERTY_OVERRIDES += \ ro.bt.bdaddr_path="/data/etc/bluetooth_bdaddr" \ ro.rfkilldisabled=1 +# macaddrsetup +PRODUCT_PROPERTY_OVERRIDES += \ + ro.vendor.wifi.addr_path="/sys/devices/platform/bcmdhd_wlan/macaddr" + # Semc PRODUCT_PROPERTY_OVERRIDES += \ ro.semc.version.sw_revision=23.5.A.1.291 \ |