Detect whether vendor has an hostapd by checking manifest
This commit is contained in:
parent
b4deea275c
commit
7ae4dc8425
11
rw-system.sh
11
rw-system.sh
@ -491,3 +491,14 @@ for part in odm vendor;do
|
||||
fi
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user