Ignore vendor ims.apk if it uses Oreo APIs

This commit is contained in:
Pierre-Hugues Husson 2018-09-17 16:18:55 +02:00
parent 61f745995c
commit 23fcb00111
1 changed files with 4 additions and 0 deletions

View File

@ -157,3 +157,7 @@ fi
if [ "$vndk" == 27 -o "$vndk" == 26 ];then
mount -o bind /system/phh/libnfc-nci-oreo.conf /system/etc/libnfc-nci.conf
fi
if busybox_phh unzip -p /vendor/app/ims/ims.apk classes.dex |grep -qF -e Landroid/telephony/ims/feature/MmTelFeature -e Landroid/telephony/ims/feature/MMTelFeature;then
mount -o bind /system/phh/empty /vendor/app/ims/ims.apk
fi