2018-02-16 21:41:03 +00:00
|
|
|
#!/system/bin/sh
|
|
|
|
|
|
|
|
grep -oE 'init_[0-9_]+' /vendor/etc/selinux/nonplat_sepolicy.cil | \
|
|
|
|
uniq | \
|
|
|
|
sort -n | \
|
|
|
|
head -n 1 | \
|
|
|
|
sed -E 's/.*init_([0-9]+).*/\1/g' | \
|
|
|
|
while read version;do
|
|
|
|
setprop persist.sys.vndk $version
|
|
|
|
done
|
2018-02-18 23:06:31 +00:00
|
|
|
|
|
|
|
mount -o bind /system/bin/adbd /sbin/adbd
|
2018-04-23 11:34:39 +00:00
|
|
|
if ( getprop ro.hardware | grep -q kirin970 ) || ( getprop ro.hardware | grep -q hi6250 );then
|
2018-02-20 22:03:30 +00:00
|
|
|
setprop persist.sys.bt_acl_bypass true
|
|
|
|
fi
|