Fix minijail issue on pie vendors
This commit is contained in:
parent
566578b691
commit
3de6f6aaf6
@ -40,6 +40,15 @@ if [ "$vndk" = 27 ] && getprop init.svc.mediacodec |grep -q restarting;then
|
||||
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so
|
||||
fi
|
||||
|
||||
if [ "$vndk" = 28 ] && getprop |grep init.svc | grep media |grep -q restarting;then
|
||||
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail_vendor.so
|
||||
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so
|
||||
mount /system/lib64/vndk-27/libminijail.so /system/lib64/vndk-28/libminijail.so
|
||||
mount /system/lib/vndk-27/libminijail.so /system/lib/vndk-28/libminijail.so
|
||||
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail.so
|
||||
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail.so
|
||||
fi
|
||||
|
||||
#Clear looping services
|
||||
sleep 30
|
||||
getprop | \
|
||||
|
@ -1,5 +1,8 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
vndk="$(getprop persist.sys.vndk)"
|
||||
[ -z "$vndk" ] && vndk="$(getprop ro.vndk.version |grep -oE '^[0-9]+')"
|
||||
|
||||
if getprop persist.sys.phh.no_vendor_overlay |grep -q true;then
|
||||
for part in odm vendor;do
|
||||
mount /mnt/phh/empty_dir/ /$part/overlay
|
||||
@ -20,4 +23,6 @@ if [ "$vndk" = 28 ] && getprop |grep init.svc | grep media |grep -q restarting;t
|
||||
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so
|
||||
mount /system/lib64/vndk-27/libminijail.so /system/lib64/vndk-28/libminijail.so
|
||||
mount /system/lib/vndk-27/libminijail.so /system/lib/vndk-28/libminijail.so
|
||||
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail.so
|
||||
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail.so
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user