From b5753554aa55820864746b67b83e05cec81d788b Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Tue, 29 Jan 2019 20:02:48 +0100 Subject: msm8996-common: Enable actual VNDK support * Basically: - Copy vndk 28 libgui.so to vendor renaming it to libfui.so and hex edit libmmcamera2_stats_modules and libmmcamera_ppeiscore to search for it This is needed as with BOARD_VNDK_RUNTIME_DISABLE disabled only some files are allowed to access the /system/lib directory - Patchelf libmpbase and libmmcamera2_stats_modules to remove libandroid.so which was being searched, it isn't actually necessary * Thanks erfanoabdi for all the help with this Signed-off-by: Davide Garberi Change-Id: Ib1797104c3cdf1b4205616a127d4a99cbc70d67b --- extract-files.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extract-files.sh') diff --git a/extract-files.sh b/extract-files.sh index 78747c0..196cb8d 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -64,4 +64,12 @@ if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION" fi +BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/msm8996-common/proprietary + +# Patch blobs for VNDK +sed -i "s|libgui.so|libfui.so|g" "$BLOB_ROOT"/vendor/lib/libmmcamera_ppeiscore.so +sed -i "s|libgui.so|libfui.so|g" "$BLOB_ROOT"/vendor/lib/libmmcamera2_stats_modules.so +patchelf --remove-needed libandroid.so "$BLOB_ROOT"/vendor/lib/libmmcamera2_stats_modules.so +patchelf --remove-needed libandroid.so "$BLOB_ROOT"/vendor/lib/libmpbase.so + "$MY_DIR"/setup-makefiles.sh -- cgit v1.2.3