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
|