From: Jeff Vander Stoep Date: Wed, 24 Jan 2018 16:57:13 +0000 (-0800) Subject: wpa_supplicant: Move control sockets to X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7aae0368605906795217264e1444cdd7458d1ecf;p=GitHub%2Fmt8127%2Fandroid_device_alcatel_ttab.git wpa_supplicant: Move control sockets to /data/vendor Treble compliance. Bug: 70228425 Bug: 70393317 Test: complete wifi test in b/70393317 Test: verify sockets exist in /data/vendor/wifi/wpa/sockets Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b --- diff --git a/ramdisk/init.mt8127.rc b/ramdisk/init.mt8127.rc index 1e20b21..fb8e771 100644 --- a/ramdisk/init.mt8127.rc +++ b/ramdisk/init.mt8127.rc @@ -210,6 +210,13 @@ on post-fs-data mkdir /data/media 0770 media_rw media_rw chmod 0660 /data/misc/wifi/p2p_supplicant.conf + # Create the directories used by the Wireless subsystem + mkdir /data/misc/wifi 0770 wifi wifi + mkdir /data/misc/wifi/sockets 0770 wifi wifi + mkdir /data/misc/wpa_supplicant 0770 wifi wifi + mkdir /data/vendor/wifi 0771 wifi wifi + mkdir /data/vendor/wifi/wpa 0770 wifi wifi + mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi # dhcp server mkdir /data/misc/dhcp 0770 dhcp wifi @@ -443,7 +450,8 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -dd \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \ - -O/data/misc/wifi/sockets -g@android:wpa_wlan0 + -O/data/vendor/wifi/wpa/sockets \ + -g@android:wpa_wlan0 # we will start as root and wpa_supplicant will switch to user wifi # after setting up the capabilities required for WEXT # user wifi