diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2018-12-24 12:04:48 +0800 |
---|---|---|
committer | Isaac Chen <isaacchen@isaacchen.cn> | 2018-12-29 16:34:23 +0100 |
commit | 302882abdb46c22554bae33977152281add8ef6b (patch) | |
tree | b39b534d3b3ceae8ad2c2bf19cc1c58b283196cc /biometrics | |
parent | 5f26bcf56206a337303e203be8c0b4cb76605d13 (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 'biometrics')
-rw-r--r-- | biometrics/BiometricsFingerprint.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/biometrics/BiometricsFingerprint.cpp b/biometrics/BiometricsFingerprint.cpp index ea3028f..6b74f70 100644 --- a/biometrics/BiometricsFingerprint.cpp +++ b/biometrics/BiometricsFingerprint.cpp @@ -214,16 +214,23 @@ IBiometricsFingerprint* BiometricsFingerprint::getInstance() { return sInstance; } +void setFpVendorProp(const char *fp_vendor) { + property_set("persist.sys.fp.vendor", fp_vendor); +} + fingerprint_device_t* getDeviceForVendor(const char *class_name) { const hw_module_t *hw_module = nullptr; int err; if (!strcmp(class_name, "fpc")) { + setFpVendorProp("fpc"); err = load("/system/vendor/lib64/hw/fingerprint.fpc.so", &hw_module); } else if (!strcmp(class_name, "gdx")) { + setFpVendorProp("goodix"); err = load("/system/vendor/lib64/hw/fingerprint.goodix.so", &hw_module); } else { + setFpVendorProp("none"); ALOGE("No fingerprint module class specified."); err = 1; } |