From 312698d889dd47d9bd1f14a389f98016e64baea2 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 16 Sep 2019 17:41:30 +0200 Subject: [PATCH] Copy O/O-MR1 behaviour of copying wpa/p2p supp config file --- phh-on-boot.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phh-on-boot.sh b/phh-on-boot.sh index a5a2e89..5ee79fc 100644 --- a/phh-on-boot.sh +++ b/phh-on-boot.sh @@ -1,6 +1,15 @@ #!/system/bin/sh [ "$(getprop vold.decrypt)" = "trigger_restart_min_framework" ] && exit 0 + +for i in wpa p2p;do + if [ ! -f /data/misc/wifi/${i}_supplicant.conf ];then + cp /vendor/etc/wifi/wpa_supplicant.conf /data/misc/wifi/${i}_supplicant.conf + fi + chmod 0660 /data/misc/wifi/${i}_supplicant.conf + chown wifi:system /data/misc/wifi/${i}_supplicant.conf +done + if [ -f /vendor/bin/mtkmal ];then if [ "$(getprop persist.mtk_ims_support)" = 1 ] || [ "$(getprop persist.mtk_epdg_support)" = 1 ];then setprop persist.mtk_ims_support 0