aboutsummaryrefslogtreecommitdiff
path: root/extract-files.sh
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2018-12-24 12:04:48 +0800
committerIsaac Chen <isaacchen@isaacchen.cn>2018-12-29 16:34:23 +0100
commit302882abdb46c22554bae33977152281add8ef6b (patch)
treeb39b534d3b3ceae8ad2c2bf19cc1c58b283196cc /extract-files.sh
parent5f26bcf56206a337303e203be8c0b4cb76605d13 (diff)
wayne-common: Support Alipay fingerprint payment
* IFAA manager is based on OnePlusOSS, but adapted for Xiaomi's mlipay interface.Also hardcode model detection to pass Alipay check. * vendor.xiaomi.hardware.mtdservice@1.0.so is not actually used, thus patchelf to drop it rather than shipping a blob. * Modify libmlipay.so to allow load firmware from vendor Change-Id: Idf3d3a8d40245984767f4ef5f60f9fe584e69f21
Diffstat (limited to 'extract-files.sh')
-rwxr-xr-xextract-files.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/extract-files.sh b/extract-files.sh
index ba51122..2450ee8 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -67,3 +67,9 @@ if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then
fi
"$MY_DIR"/setup-makefiles.sh
+
+DEVICE_BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary
+
+patchelf --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "$DEVICE_BLOB_ROOT"/vendor/bin/mlipayd
+patchelf --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "$DEVICE_BLOB_ROOT"/vendor/lib64/libmlipay.so
+sed -i "s|/system/etc/firmware|/vendor/firmware\x0\x0\x0\x0|g" "$DEVICE_BLOB_ROOT"/vendor/lib64/libmlipay.so