Detect whether vendor has an hostapd by checking manifest

This commit is contained in:
Pierre-Hugues Husson 2019-12-06 21:34:44 +01:00 committed by tboy1991
parent b4deea275c
commit 7ae4dc8425

View File

@ -491,3 +491,14 @@ for part in odm vendor;do
fi fi
fi fi
done 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