Detect whether vendor has an hostapd by checking manifest
This commit is contained in:
parent
e0c0285eb2
commit
aca36f1b1c
11
rw-system.sh
11
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
|
setprop persist.sys.phh.dt2w_evnode /dev/input/$ev
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user