From c87afe42f62abd7667b7a721f19e9acbf1e83fd2 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Fri, 1 Feb 2019 23:21:22 +0100 Subject: msm8996-common: Remove rootdir symlinks * It's better to do it this way so that we can remove all the rootdir symlinks, which could be useful in future for system-as-root * Hex edit the blobs to search for the new paths (or either update them from Pie) and symlink them to make the length equal to the old path * Update the two adsp libs from daisy Signed-off-by: Davide Garberi Change-Id: I9c9f89d37f3767f55346dccdfb9362025d478028 Signed-off-by: Davide Garberi --- extract-files.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'extract-files.sh') diff --git a/extract-files.sh b/extract-files.sh index 50cadd7..c48b61d 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -76,4 +76,15 @@ patchelf --remove-needed libandroid.so "$BLOB_ROOT"/vendor/lib/libmpbase.so sed -i "s|/data/vendor/misc/audio/acdbdata/delta/|/data/vendor/audio/acdbdata/delta/\x00\x00\x00\x00\x00|g" "$BLOB_ROOT"/vendor/lib/libaudcal.so sed -i "s|/data/vendor/misc/audio/acdbdata/delta/|/data/vendor/audio/acdbdata/delta/\x00\x00\x00\x00\x00|g" "$BLOB_ROOT"/vendor/lib64/libaudcal.so +# Hex edit /firmware/image to /vendor/firmware_mnt to delete the outdated rootdir symlinks +sed -i "s|/firmware/image|/vendor/f/image|g" "$BLOB_ROOT"/vendor/lib/hw/keystore.msm8996.so +sed -i "s|/firmware/image|/vendor/f/image|g" "$BLOB_ROOT"/vendor/lib/hw/gatekeeper.msm8996.so +sed -i "s|/firmware/image|/vendor/f/image|g" "$BLOB_ROOT"/vendor/lib64/hw/fingerprint.qcom.so +sed -i "s|/firmware/image|/vendor/f/image|g" "$BLOB_ROOT"/vendor/lib64/hw/keystore.msm8996.so +sed -i "s|/firmware/image|/vendor/f/image|g" "$BLOB_ROOT"/vendor/lib64/hw/gatekeeper.msm8996.so +sed -i "s|/firmware/image|/vendor/f/image|g" "$BLOB_ROOT"/vendor/lib64/libSecureUILib.so + +# Hex edit /bt_firmware to /vendor/btfw to delete the outdated rootdir symlinks +sed -i "s|/bt_firmware|/vendor/btfw|g" "$BLOB_ROOT"/vendor/lib64/hw/android.hardware.bluetooth@1.0-impl-qti.so + "$MY_DIR"/setup-makefiles.sh -- cgit v1.2.3