ugly: vndk somehow replaces vendor files if both exist. this is especially problematic on libstagefright_foundation (found on CAF and Exynos devices)

This commit is contained in:
Pierre-Hugues Husson 2019-11-07 22:46:16 +01:00
parent 1ba43f4ce5
commit 2f33d5286e

View File

@ -437,4 +437,14 @@ if [ -f /system/phh/secure ];then
setprop ctl.restart adbd
fi
for abi in "" 64;do
f=/vendor/lib$abi/libstagefright_foundation.so
if [ -f "$f" ];then
for vndk in 26 27 28;do
mount "$f" /system/lib$abi/vndk-$vndk/libstagefright_foundation.so
done
fi
done
setprop ro.product.first_api_level "$vndk"