From 65365b3f572e37e856b38b33ea1707159551569a Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Wed, 3 Jun 2020 20:21:50 +0200 Subject: [PATCH] Detect looping mediacodec earlier --- phh-on-data.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phh-on-data.sh b/phh-on-data.sh index 44a5543..371fdfb 100644 --- a/phh-on-data.sh +++ b/phh-on-data.sh @@ -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