aboutsummaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-01-29 20:02:48 +0100
committerDavide Garberi <dade.garberi@gmail.com>2019-02-06 13:56:15 +0100
commitb5753554aa55820864746b67b83e05cec81d788b (patch)
treec6e0344a04dfcd98d6e8797e6c45da9a23348a0b /extract-files.sh
parentc2079d89200f110c9b4447c664c1ddc961253b29 (diff)
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 <dade.garberi@gmail.com> Change-Id: Ib1797104c3cdf1b4205616a127d4a99cbc70d67b
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-xextract-files.sh8
1 files changed, 8 insertions, 0 deletions
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