diff options
author | Davide Garberi <dade.garberi@gmail.com> | 2019-02-01 23:21:22 +0100 |
---|---|---|
committer | Davide Garberi <dade.garberi@gmail.com> | 2019-02-06 13:56:15 +0100 |
commit | c87afe42f62abd7667b7a721f19e9acbf1e83fd2 (patch) | |
tree | 13e8156c48b28e826f5c7a94c310b9dd5205c56e /extract-files.sh | |
parent | 4fea6e863c0a050e032496fcdcb43215f71e7fe3 (diff) |
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 <dade.garberi@gmail.com>
Change-Id: I9c9f89d37f3767f55346dccdfb9362025d478028
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to '')
-rwxr-xr-x | extract-files.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |