You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After app has forced kill, RxFingerPrint state is still save, how to reset it?
String encrypted = AppData.getFingerEncrypt(MainApplication.getAppContext());
fingerprintDisposable = RxFingerprint.decrypt(EncryptionMethod.RSA, getActivity(), AppData.APP_FINGER_KEY, encrypted)
.subscribe(fingerprintDecryptionResult -> {
switch (fingerprintDecryptionResult.getResult()) {
case FAILED:
bInitError = false;
ll_finger_form.setVisibility(View.GONE);
tv_finger_error_msg.setText(getString(R.string.str_finger_fail));
ll_finger_error.setVisibility(View.VISIBLE);
break;
case HELP:
ll_finger_form.setVisibility(View.GONE);
tv_finger_error_msg.setText(fingerprintDecryptionResult.getMessage());
ll_finger_error.setVisibility(View.VISIBLE);
break;
case AUTHENTICATED:
String pass = fingerprintDecryptionResult.getDecrypted();
fingerprintDisposable.dispose();
dismiss();
if (fingerPrintResultListener!= null)
fingerPrintResultListener.onSuccessFinger(pass);
Log.d("AUTHENTICATED", pass);
break;
}
}, throwable -> {
fingerprintDisposable.dispose();
//noinspection StatementWithEmptyBody
if (RxFingerprint.keyInvalidated(throwable)) {
// The keys you wanted to use are invalidated because the user has turned off his
// secure lock screen or changed the fingerprints stored on the device
// You have to re-encrypt the data to access it
}
if (isAdded()) {
ll_finger_form.setVisibility(View.GONE);
tv_finger_error_msg.setText(getString(R.string.str_finger_fail_attempt));
ll_finger_error.setVisibility(View.VISIBLE);
}
Log.e("ERROR", "decrypt", throwable);
});
Reproduce: Default can try 5 times
try decrypt something, using scan 2 times with error finger, kill app, next time we can try only 5 - 2 = 3 times.
Try 5 times error fingers, state will go to throwable, kill app, next time after init app, state will go to throwable again.
---> how to reset this state.
Thanks
The text was updated successfully, but these errors were encountered:
After app has forced kill, RxFingerPrint state is still save, how to reset it?
Reproduce: Default can try 5 times
---> how to reset this state.
Thanks
The text was updated successfully, but these errors were encountered: