Fix vendor hostapd detection for manifest fragments

This fixes tethering on phones that have hostapd defined in a manifest fragment
This commit is contained in:
VDavid003 2021-03-08 13:32:33 +01:00
parent f7e7a1607c
commit a3f96351d7
No known key found for this signature in database
GPG Key ID: D1CAE639178F071E
1 changed files with 5 additions and 0 deletions

View File

@ -724,6 +724,11 @@ 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
for j in /$i/etc/vintf/manifest/*;do
if grep -qF android.hardware.wifi.hostapd $j;then
has_hostapd=true
fi
done
done
if [ "$has_hostapd" = false ];then