From aca36f1b1ce595238f790a3e17fb1310e52a21d3 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Fri, 6 Dec 2019 21:34:44 +0100 Subject: [PATCH] Detect whether vendor has an hostapd by checking manifest --- rw-system.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 8f66fdd..ad95ba4 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -474,3 +474,14 @@ for ev in $(cd /sys/class/input;echo event*);do setprop persist.sys.phh.dt2w_evnode /dev/input/$ev fi done + +has_hostapd=false +for i in odm oem vendor product;do + if grep -qF android.hardware.wifi.hostapd /$i/etc/vintf/manifest.xml;then + has_hostapd=true + fi +done + +if [ "$has_hostapd" = false ];then + setprop persist.sys.phh.system_hostapd true +fi