diff --git a/phh-on-data.sh b/phh-on-data.sh index b35b2d8..3901643 100644 --- a/phh-on-data.sh +++ b/phh-on-data.sh @@ -13,13 +13,13 @@ if getprop persist.sys.phh.caf.media_profile |grep -q true;then setprop media.settings.xml "/vendor/etc/media_profiles_vendor.xml" fi -crashingProcess=$(getprop ro.init.updatable_crashing_process_name |grep media) -if [ "$vndk" = 27 ] && ( getprop init.svc.mediacodec |grep -q restarting || [ -n "$crashingProcess" ] );then + +if [ "$vndk" = 27 ];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 || [ -n "$crashingProcess" ] );then +if [ "$vndk" = 28 ];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