Up vendor minijail override, using vndk v28 minijail

This commit is contained in:
Pierre-Hugues Husson 2020-09-29 10:45:45 +02:00
parent bbee56d39f
commit 41f0817f3f
2 changed files with 20 additions and 16 deletions

View File

@ -36,18 +36,20 @@ setprop ctl.stop storageproxyd
sleep 10 sleep 10
minijailSrc=/system/system_ext/apex/com.android.vndk.v28/lib/libminijail.so
minijailSrc64=/system/system_ext/apex/com.android.vndk.v28/lib64/libminijail.so
if [ "$vndk" = 27 ];then if [ "$vndk" = 27 ];then
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail_vendor.so mount $minijailSrc64 /vendor/lib64/libminijail_vendor.so
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so mount $minijailSrc /vendor/lib/libminijail_vendor.so
fi fi
if [ "$vndk" = 28 ];then if [ "$vndk" = 28 ];then
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail_vendor.so mount $minijailSrc64 /vendor/lib64/libminijail_vendor.so
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so mount $minijailSrc /vendor/lib/libminijail_vendor.so
mount /system/lib64/vndk-27/libminijail.so /system/lib64/vndk-28/libminijail.so mount $minijailSrc64 /system/lib64/vndk-28/libminijail.so
mount /system/lib/vndk-27/libminijail.so /system/lib/vndk-28/libminijail.so mount $minijailSrc /system/lib/vndk-28/libminijail.so
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail.so mount $minijailSrc64 /vendor/lib64/libminijail.so
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail.so mount $minijailSrc /vendor/lib/libminijail.so
fi fi
#Clear looping services #Clear looping services

View File

@ -14,16 +14,18 @@ if getprop persist.sys.phh.caf.media_profile |grep -q true;then
fi fi
minijailSrc=/system/system_ext/apex/com.android.vndk.v28/lib/libminijail.so
minijailSrc64=/system/system_ext/apex/com.android.vndk.v28/lib64/libminijail.so
if [ "$vndk" = 27 ];then if [ "$vndk" = 27 ];then
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail_vendor.so mount $minijailSrc64 /vendor/lib64/libminijail_vendor.so
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so mount $minijailSrc /vendor/lib/libminijail_vendor.so
fi fi
if [ "$vndk" = 28 ];then if [ "$vndk" = 28 ];then
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail_vendor.so mount $minijailSrc64 /vendor/lib64/libminijail_vendor.so
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail_vendor.so mount $minijailSrc /vendor/lib/libminijail_vendor.so
mount /system/lib64/vndk-27/libminijail.so /system/lib64/vndk-28/libminijail.so mount $minijailSrc64 /system/lib64/vndk-28/libminijail.so
mount /system/lib/vndk-27/libminijail.so /system/lib/vndk-28/libminijail.so mount $minijailSrc /system/lib/vndk-28/libminijail.so
mount /system/lib64/vndk-27/libminijail.so /vendor/lib64/libminijail.so mount $minijailSrc64 /vendor/lib64/libminijail.so
mount /system/lib/vndk-27/libminijail.so /vendor/lib/libminijail.so mount $minijailSrc /vendor/lib/libminijail.so
fi fi