24 lines
956 B
Bash
24 lines
956 B
Bash
#!/system/bin/sh
|
|
|
|
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
|
|
done
|
|
fi
|
|
|
|
if getprop persist.sys.phh.caf.media_profile |grep -q true;then
|
|
setprop media.settings.xml "/vendor/etc/media_profiles_vendor.xml"
|
|
fi
|
|
|
|
if [ "$vndk" = 27 ] && getprop init.svc.mediacodec |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
|
|
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
|
|
fi
|