From 2f33d5286e70c3677b854016276bdbf3f42ddf63 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 7 Nov 2019 22:46:16 +0100 Subject: [PATCH] ugly: vndk somehow replaces vendor files if both exist. this is especially problematic on libstagefright_foundation (found on CAF and Exynos devices) --- rw-system.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index fb59a3a..b4075bc 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -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"