Skip to content

Commit

Permalink
hlte: Use libcutils-v29.so for libsec-ril*.so
Browse files Browse the repository at this point in the history
* libsec-ril*.so files need strdup8to16, which is is dropped in the API
  30 library, but can be found in the API 29 prebuilt.

Change-Id: I38923d0980e00400c25cd698961d7c89b1590695
  • Loading branch information
haggertk committed Nov 29, 2020
1 parent 76b939a commit 7dcd3f8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions device-proprietary-files-gsm.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Radio - pinned to N9005XXSGBRI2_N9005AUTGBRI1_AUT
lib/libsec-ril.so:vendor/lib/libsec-ril.gsm.so|2ce78024389d3b2a7651b3fdd446d5d0431aa7a5
# Radio - pinned to haxxed N9005XXSGBRI2_N9005AUTGBRI1_AUT
lib/libsec-ril.so:vendor/lib/libsec-ril.gsm.so|3337e353ee5bb6a71dac61dbc6d8207888b04369
4 changes: 2 additions & 2 deletions device-proprietary-files-spr.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Radio - pinned to N900PVPSEPL1_N900PSPTEPL1_SPR
lib/libsec-ril.so:vendor/lib/libsec-ril.spr.so|05c3065616afbf0de5fcc0e808df57a5a919b879
# Radio - pinned to haxxed N900PVPSEPL1_N900PSPTEPL1_SPR
lib/libsec-ril.so:vendor/lib/libsec-ril.spr.so|d981419dce279ceb72757d67993946691b91bd73
12 changes: 11 additions & 1 deletion extract-files.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -23,3 +23,13 @@ export DEVICE_COMMON=hlte-common
export VENDOR=samsung

./../$DEVICE_COMMON/extract-files.sh $@

MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

CM_ROOT="$MY_DIR"/../../..
DEVICE_BLOB_ROOT="$CM_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary

for f in "$DEVICE_BLOB_ROOT"/vendor/lib/libsec-ril.*; do
patchelf --replace-needed libcutils.so libcutils-v29.so "$f"
done

0 comments on commit 7dcd3f8

Please sign in to comment.