Detect looping mediacodec earlier

This commit is contained in:
Pierre-Hugues Husson 2020-06-03 20:21:50 +02:00 committed by tboy1991
parent 02c9b63356
commit 65365b3f57

View File

@ -9,3 +9,8 @@ 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