Detect looping mediacodec earlier

This commit is contained in:
Pierre-Hugues Husson 2020-06-03 20:21:50 +02:00
parent 7576b8f0fe
commit 65af98b518

View File

@ -9,3 +9,8 @@ fi
if getprop persist.sys.phh.caf.media_profile |grep -q true;then if getprop persist.sys.phh.caf.media_profile |grep -q true;then
setprop media.settings.xml "/vendor/etc/media_profiles_vendor.xml" setprop media.settings.xml "/vendor/etc/media_profiles_vendor.xml"
fi 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