diff --git a/fod/FingerprintInscreen.cpp b/fod/FingerprintInscreen.cpp index 804c104..cb6d997 100644 --- a/fod/FingerprintInscreen.cpp +++ b/fod/FingerprintInscreen.cpp @@ -72,6 +72,7 @@ static hidl_vec stringToVec(const std::string& str) { FingerprintInscreen::FingerprintInscreen() { mSehBiometricsFingerprintService = ISehBiometricsFingerprint::getService(); set(MASK_BRIGHTNESS_PATH, "319"); + set(TSP_CMD_PATH, "fod_enable,1,1,0"); } void FingerprintInscreen::requestResult(int, const hidl_vec&) { @@ -87,7 +88,6 @@ Return FingerprintInscreen::onFinishEnroll() { } Return FingerprintInscreen::onPress() { - set(TSP_CMD_PATH, "fod_enable,1,1,0"); mSehBiometricsFingerprintService->sehRequest(SEM_FINGER_STATE, SEM_PARAM_PRESSED, stringToVec(SEM_AOSP_FQNAME), FingerprintInscreen::requestResult); return Void(); @@ -96,7 +96,6 @@ Return FingerprintInscreen::onPress() { Return FingerprintInscreen::onRelease() { mSehBiometricsFingerprintService->sehRequest(SEM_FINGER_STATE, SEM_PARAM_RELEASED, stringToVec(SEM_AOSP_FQNAME), FingerprintInscreen::requestResult); - set(TSP_CMD_PATH, "fod_enable,0"); return Void(); } @@ -105,7 +104,6 @@ Return FingerprintInscreen::onShowFODView() { } Return FingerprintInscreen::onHideFODView() { - set(TSP_CMD_PATH, "fod_enable,0"); return Void(); }