diff options
| author | Joshua Blanchard <joshua.lee.bbg@gmail.com> | 2021-03-01 21:41:12 -0500 |
|---|---|---|
| committer | Joshua Blanchard <joshua.lee.bbg@gmail.com> | 2021-04-03 20:51:12 -0400 |
| commit | 19b19f3b1393d8eb43cba5d5d2acb935d7c6ee34 (patch) | |
| tree | b24587c2df23115dd68877a291f19ab6f373e3ea | |
| parent | 94793cdff860a5e3de87df90ddb2915c605fc634 (diff) | |
beckham: Use libmemset_shim for charge_only_mode
- Common tree already builds and includes libmemset_shim as part
of common charge_only_mode, however we ship our own from beckham
stock as it has dependencies on libmodmanager for battery mods
support with off mode charging.
Change-Id: I63ec90c600bdd52e66847267645e09a1bb6fb20f
| -rwxr-xr-x | extract-files.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extract-files.sh b/extract-files.sh index cc79591..d59568b 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -12,6 +12,12 @@ function blob_fixup() { system/etc/permissions/com.motorola.mod.xml) sed -i "s|mot_mod|oem_5020|g" "${2}" ;; + # memset shim + vendor/bin/charge_only_mode) + for LIBMEMSET_SHIM in "$(grep -L libmemset_shim.so ${2})"; do + "${PATCHELF}" --add-needed "libmemset_shim.so" "$LIBMEMSET_SHIM" + done + ;; # Add uhid group for fingerprint service vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service.rc) sed -i "s/input/uhid input/" "${2}" |
