From 706715d631915e37df292240b40e94c3da09f19b Mon Sep 17 00:00:00 2001 From: darkestDark <36689074+darkestDark@users.noreply.github.com> Date: Wed, 5 Aug 2020 20:02:24 +0200 Subject: [PATCH] libminijail.so error check for vndk only to mount --- phh-on-boot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phh-on-boot.sh b/phh-on-boot.sh index 0f20084..969a18b 100644 --- a/phh-on-boot.sh +++ b/phh-on-boot.sh @@ -35,13 +35,13 @@ fi setprop ctl.stop storageproxyd sleep 10 -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