wpa_supplicant(hidl): Move conf files to /data/vendor/wifi/wpa
For treble compilance, wpa_supplicant should not be accessing
/data/misc/wifi. So, change the conf file path to /data/vendor/wifi/wpa
& move existing conf files to this new path.
This is a port of the logic in
|SupplicantManager::ensure_config_file_exists()|
Bug: 36645291
Test: Device boots up and connects to wifi networks on upgrade/fresh
builds.
Test: Manually verified that the conf files are copied over to the new
path.
Change-Id: Iedfcb31e87bb9cabfcada46cf430f2c4072495c4
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 33090e7..d57446c 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -1724,7 +1724,7 @@
ifeq ($(WPA_SUPPLICANT_USE_HIDL), y)
LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.0
LOCAL_SHARED_LIBRARIES += android.hardware.wifi.supplicant@1.1
-LOCAL_SHARED_LIBRARIES += libhidlbase libhidltransport libhwbinder libutils
+LOCAL_SHARED_LIBRARIES += libhidlbase libhidltransport libhwbinder libutils libbase
LOCAL_STATIC_LIBRARIES += libwpa_hidl
endif
include $(BUILD_EXECUTABLE)
@@ -1787,6 +1787,7 @@
LOCAL_SHARED_LIBRARIES := \
android.hardware.wifi.supplicant@1.0 \
android.hardware.wifi.supplicant@1.1 \
+ libbase \
libhidlbase \
libhidltransport \
libutils \