From e748848889c82dbd4025309084cdb9be9de21d09 Mon Sep 17 00:00:00 2001 From: LuK1337 <priv.luk@gmail.com> Date: Mon, 23 Sep 2019 12:22:18 +0200 Subject: [PATCH] beckham: Patch prebuilt P blobs to load libprocessgroup * The symbol `set_sched_policy` users moved from libcutils to libprocessgroup, so change out the dependency. * Pin the patched HAL, leave patching logic for when we want to update it. Change-Id: I0151324ec561e2c8c1bcd12fb87254de0d92706a --- extract-files.sh | 3 +++ proprietary-files.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extract-files.sh b/extract-files.sh index 4fee9bc..c485f70 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -51,3 +51,6 @@ sed -i "s/input/uhid input/" "$FP_SERVICE_RC" # Correct mods gid MOD_PERM="$BLOB_ROOT"/etc/permissions/com.motorola.mod.xml sed -i "s|mot_mod|oem_5020|g" "$MOD_PERM" + +AUDIO_HAL="$BLOB_ROOT"/vendor/lib/hw/audio.primary.sdm660.so +patchelf --replace-needed libcutils.so libprocessgroup.so "$AUDIO_HAL" diff --git a/proprietary-files.txt b/proprietary-files.txt index d4d2ec1..04195b4 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -8,7 +8,7 @@ etc/acdbdata/Headset_cal.acdb:vendor/etc/acdbdata/Headset_cal.acdb etc/acdbdata/Speaker_cal.acdb:vendor/etc/acdbdata/Speaker_cal.acdb # Audio - Prebuilt -vendor/lib/hw/audio.primary.sdm660.so +vendor/lib/hw/audio.primary.sdm660.so|974ff23c1084f0b5d87d4571ecdbd6ccd0fce33c vendor/lib/libaudioroute.so vendor/lib/libmotaudioutils.so vendor/lib/libsensorndkbridge.so -- GitLab