From f89bf07b99c606af842663efd675c6012bd0386f Mon Sep 17 00:00:00 2001 From: Isaac Chen Date: Tue, 23 Oct 2018 00:47:53 +0800 Subject: wayne-common: biometric: Detect fingerprint from cmdline * Cleanup fingerprint logic --- biometrics/BiometricsFingerprint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'biometrics/BiometricsFingerprint.cpp') diff --git a/biometrics/BiometricsFingerprint.cpp b/biometrics/BiometricsFingerprint.cpp index c6e976e..ea3028f 100644 --- a/biometrics/BiometricsFingerprint.cpp +++ b/biometrics/BiometricsFingerprint.cpp @@ -221,7 +221,7 @@ fingerprint_device_t* getDeviceForVendor(const char *class_name) if (!strcmp(class_name, "fpc")) { err = load("/system/vendor/lib64/hw/fingerprint.fpc.so", &hw_module); - } else if (!strcmp(class_name, "goodix")) { + } else if (!strcmp(class_name, "gdx")) { err = load("/system/vendor/lib64/hw/fingerprint.goodix.so", &hw_module); } else { ALOGE("No fingerprint module class specified."); @@ -271,7 +271,7 @@ fingerprint_device_t* getFingerprintDevice() fingerprint_device_t *fp_device; char class_name[PROPERTY_VALUE_MAX]; - property_get("ro.boot.fingerprint", + property_get("ro.boot.fpsensor", class_name, NULL); fp_device = getDeviceForVendor(class_name); -- cgit v1.2.3