diff --git a/app/build.gradle b/app/build.gradle
index 18fedc719..b0f2970f1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -66,4 +66,5 @@ dependencies {
compile "com.madgag.spongycastle:core:$spongycastleVersion"
compile "com.madgag.spongycastle:prov:$spongycastleVersion"
compile "joda-time:joda-time:2.9.9"
+ compile "org.sufficientlysecure:html-textview:3.5"
}
diff --git a/app/src/main/java/com/keepassdroid/PasswordActivity.java b/app/src/main/java/com/keepassdroid/PasswordActivity.java
index 4ec59630a..bb4a2e0c5 100644
--- a/app/src/main/java/com/keepassdroid/PasswordActivity.java
+++ b/app/src/main/java/com/keepassdroid/PasswordActivity.java
@@ -44,11 +44,10 @@ import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
+import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
-import com.kunzisoft.keepass.KeePass;
-import com.kunzisoft.keepass.R;
import com.keepassdroid.app.App;
import com.keepassdroid.compat.BackupManagerCompat;
import com.keepassdroid.compat.ClipDataCompat;
@@ -58,13 +57,18 @@ import com.keepassdroid.database.edit.LoadDB;
import com.keepassdroid.database.edit.OnFinish;
import com.keepassdroid.dialog.PasswordEncodingDialogHelper;
import com.keepassdroid.fileselect.BrowserDialog;
+import com.keepassdroid.fingerprint.FingerPrintAnimatedVector;
import com.keepassdroid.fingerprint.FingerPrintHelper;
import com.keepassdroid.intents.Intents;
+import com.keepassdroid.settings.PrefsUtil;
import com.keepassdroid.utils.EmptyUtils;
import com.keepassdroid.utils.Interaction;
import com.keepassdroid.utils.MenuUtil;
import com.keepassdroid.utils.UriUtil;
import com.keepassdroid.utils.Util;
+import com.keepassdroid.view.FingerPrintDialog;
+import com.kunzisoft.keepass.KeePass;
+import com.kunzisoft.keepass.R;
import java.io.File;
import java.io.FileNotFoundException;
@@ -96,8 +100,10 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
private int mode;
private static final String PREF_KEY_VALUE_PREFIX = "valueFor_"; // key is a combination of db file name and this prefix
private static final String PREF_KEY_IV_PREFIX = "ivFor_"; // key is a combination of db file name and this prefix
- private View fingerprintView;
- private TextView confirmationView;
+ private View fingerprintContainerView;
+ private View fingerprintImageView;
+ private FingerPrintAnimatedVector fingerPrintAnimatedVector;
+ private TextView fingerprintTextView;
private EditText passwordView;
private Button confirmButton;
@@ -205,10 +211,16 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
getSupportActionBar().setDisplayShowHomeEnabled(true);
confirmButton = (Button) findViewById(R.id.pass_ok);
- fingerprintView = findViewById(R.id.fingerprint);
- confirmationView = (TextView) findViewById(R.id.fingerprint_label);
+ fingerprintContainerView = findViewById(R.id.fingerprint_container);
+ fingerprintImageView = findViewById(R.id.fingerprint_image);
+ fingerprintTextView = (TextView) findViewById(R.id.fingerprint_label);
passwordView = (EditText) findViewById(R.id.password);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
+ fingerPrintAnimatedVector = new FingerPrintAnimatedVector(this,
+ (ImageView) fingerprintImageView);
+ }
+
new InitTask().execute(i);
}
@@ -230,6 +242,9 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
initForFingerprint();
checkAvailability();
+ if (fingerPrintAnimatedVector != null) {
+ fingerPrintAnimatedVector.startScan();
+ }
}
}
@@ -287,7 +302,7 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
if ( !fingerprintMustBeConfigured ) {
final boolean validInput = s.length() > 0;
// encrypt or decrypt mode based on how much input or not
- confirmationView.setText(validInput ? R.string.store_with_fingerprint : R.string.scanning_fingerprint);
+ fingerprintTextView.setText(validInput ? R.string.store_with_fingerprint : R.string.scanning_fingerprint);
mode = validInput ? toggleMode(Cipher.ENCRYPT_MODE) : toggleMode(Cipher.DECRYPT_MODE);
}
}
@@ -304,7 +319,7 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
// errorCode = 5
// errString = "Fingerprint operation canceled."
//onFingerprintException();
- //confirmationView.setText(errString);
+ //fingerprintTextView.setText(errString);
// true false fingerprint readings are handled otherwise with the toast messages, see below in code
}
@@ -314,7 +329,7 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
final CharSequence helpString) {
onFingerprintException(new Exception("onAuthenticationHelp"));
- confirmationView.setText(helpString);
+ fingerprintTextView.setText(helpString);
}
@Override
@@ -370,6 +385,12 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
@Override
protected void onPause() {
super.onPause();
+
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M
+ && fingerPrintAnimatedVector != null) {
+ fingerPrintAnimatedVector.stopScan();
+ }
+
// stop listening when we go in background
if (fingerPrintHelper != null) {
fingerPrintHelper.stopListening();
@@ -377,42 +398,50 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
}
private void setFingerPrintVisibility(int vis) {
- fingerprintView.setVisibility(vis);
- confirmationView.setVisibility(vis);
+ fingerprintContainerView.setVisibility(vis);
}
@RequiresApi(api = Build.VERSION_CODES.M)
private void checkAvailability() {
+
// fingerprint not supported (by API level or hardware) so keep option hidden
- if (!fingerPrintHelper.isFingerprintSupported(FingerprintManagerCompat.from(this))) {
+ // or manually disable
+ if (!PrefsUtil.isFingerprintEnable(getApplicationContext())
+ || !fingerPrintHelper.isFingerprintSupported(FingerprintManagerCompat.from(this))) {
setFingerPrintVisibility(View.GONE);
}
// fingerprint is available but not configured show icon but in disabled state with some information
- else if (!fingerPrintHelper.hasEnrolledFingerprints()) {
-
- setFingerPrintVisibility(View.VISIBLE);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
- fingerprintView.setAlpha(0.3f);
- }
- // This happens when no fingerprints are registered. Listening won't start
- confirmationView.setText(R.string.configure_fingerprint);
- }
- // finally fingerprint available and configured so we can use it
else {
- fingerprintMustBeConfigured = false;
+ // show explanations
+ fingerprintContainerView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ FingerPrintDialog fingerPrintDialog = new FingerPrintDialog();
+ fingerPrintDialog.show(getSupportFragmentManager(), "fingerprintDialog");
+ }
+ });
setFingerPrintVisibility(View.VISIBLE);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
- fingerprintView.setAlpha(1f);
+
+ if (!fingerPrintHelper.hasEnrolledFingerprints()) {
+ fingerprintImageView.setAlpha(0.3f);
+ // This happens when no fingerprints are registered. Listening won't start
+ fingerprintTextView.setText(R.string.configure_fingerprint);
}
- // fingerprint available but no stored password found yet for this DB so show info don't listen
- if (prefsNoBackup.getString(getPreferenceKeyValue(), null) == null) {
- confirmationView.setText(R.string.no_password_stored);
- }
- // all is set here so we can confirm to user and start listening for fingerprints
+ // finally fingerprint available and configured so we can use it
else {
- confirmationView.setText(R.string.scanning_fingerprint);
- // listen for decryption by default
- toggleMode(Cipher.DECRYPT_MODE);
+ fingerprintMustBeConfigured = false;
+ fingerprintImageView.setAlpha(1f);
+
+ // fingerprint available but no stored password found yet for this DB so show info don't listen
+ if (prefsNoBackup.getString(getPreferenceKeyValue(), null) == null) {
+ fingerprintTextView.setText(R.string.no_password_stored);
+ }
+ // all is set here so we can confirm to user and start listening for fingerprints
+ else {
+ fingerprintTextView.setText(R.string.scanning_fingerprint);
+ // listen for decryption by default
+ toggleMode(Cipher.DECRYPT_MODE);
+ }
}
}
}
@@ -428,7 +457,7 @@ public class PasswordActivity extends LockingActivity implements FingerPrintHelp
.apply();
// and remove visual input to reset UI
confirmButton.performClick();
- confirmationView.setText(R.string.encrypted_value_stored);
+ fingerprintTextView.setText(R.string.encrypted_value_stored);
}
@Override
diff --git a/app/src/main/java/com/keepassdroid/UnavailableFeatureDialog.java b/app/src/main/java/com/keepassdroid/UnavailableFeatureDialog.java
new file mode 100644
index 000000000..1a310c39c
--- /dev/null
+++ b/app/src/main/java/com/keepassdroid/UnavailableFeatureDialog.java
@@ -0,0 +1,39 @@
+package com.keepassdroid;
+
+import android.app.Dialog;
+import android.content.DialogInterface;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.annotation.NonNull;
+import android.support.v4.app.DialogFragment;
+import android.support.v7.app.AlertDialog;
+
+import com.kunzisoft.keepass.R;
+
+public class UnavailableFeatureDialog extends DialogFragment {
+
+ private static final String MIN_REQUIRED_VERSION_ARG = "MIN_REQUIRED_VERSION_ARG";
+ private int minVersionRequired = Build.VERSION_CODES.M;
+
+ public static UnavailableFeatureDialog getInstance(int minVersionRequired) {
+ UnavailableFeatureDialog fragment = new UnavailableFeatureDialog();
+ Bundle args = new Bundle();
+ args.putInt(MIN_REQUIRED_VERSION_ARG, minVersionRequired);
+ fragment.setArguments(args);
+ return fragment;
+ }
+
+ @NonNull
+ @Override
+ public Dialog onCreateDialog(Bundle savedInstanceState) {
+ if (getArguments() != null && getArguments().containsKey(MIN_REQUIRED_VERSION_ARG))
+ minVersionRequired = getArguments().getInt(MIN_REQUIRED_VERSION_ARG);
+
+ AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
+ builder.setMessage(getString(R.string.unavailable_feature_text, Build.VERSION.SDK_INT, minVersionRequired))
+ .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
+ public void onClick(DialogInterface dialog, int id) { }
+ });
+ return builder.create();
+ }
+}
diff --git a/app/src/main/java/com/keepassdroid/fingerprint/FingerPrintAnimatedVector.java b/app/src/main/java/com/keepassdroid/fingerprint/FingerPrintAnimatedVector.java
new file mode 100644
index 000000000..1c15aa55d
--- /dev/null
+++ b/app/src/main/java/com/keepassdroid/fingerprint/FingerPrintAnimatedVector.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2017 Brian Jeremy Jamet / Kunzisoft.
+ *
+ * This file is part of KeePass DX.
+ *
+ * KeePass DX is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * KeePass DX is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with KeePass DX. If not, see .
+ *
+ */
+package com.keepassdroid.fingerprint;
+
+import android.content.Context;
+import android.graphics.drawable.Animatable2;
+import android.graphics.drawable.AnimatedVectorDrawable;
+import android.graphics.drawable.Drawable;
+import android.os.Build;
+import android.support.annotation.RequiresApi;
+import android.widget.ImageView;
+
+import com.kunzisoft.keepass.R;
+
+@RequiresApi(api = Build.VERSION_CODES.M)
+public class FingerPrintAnimatedVector {
+
+ private AnimatedVectorDrawable scanFingerprint;
+
+ public FingerPrintAnimatedVector(Context context, ImageView imageView) {
+ scanFingerprint = (AnimatedVectorDrawable) context.getDrawable(R.drawable.scan_fingerprint);
+ imageView.setImageDrawable(scanFingerprint);
+ }
+
+ public void startScan() {
+ scanFingerprint.registerAnimationCallback(new Animatable2.AnimationCallback() {
+ public void onAnimationEnd(Drawable drawable) {
+ scanFingerprint.start();
+ }
+ });
+ scanFingerprint.start();
+ }
+
+ public void stopScan() {
+ scanFingerprint.stop();
+ }
+}
diff --git a/app/src/main/java/com/keepassdroid/settings/NestedSettingsFragment.java b/app/src/main/java/com/keepassdroid/settings/NestedSettingsFragment.java
index 811e247c3..0ce114dc9 100644
--- a/app/src/main/java/com/keepassdroid/settings/NestedSettingsFragment.java
+++ b/app/src/main/java/com/keepassdroid/settings/NestedSettingsFragment.java
@@ -20,11 +20,14 @@
package com.keepassdroid.settings;
import android.content.res.Resources;
+import android.os.Build;
import android.os.Bundle;
+import android.support.v14.preference.SwitchPreference;
import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceFragmentCompat;
import android.util.Log;
+import com.keepassdroid.UnavailableFeatureDialog;
import com.kunzisoft.keepass.R;
import com.keepassdroid.Database;
import com.keepassdroid.app.App;
@@ -98,6 +101,21 @@ public class NestedSettingsFragment extends PreferenceFragmentCompat {
}
});
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
+ // False if under Marshmallow
+ SwitchPreference preference = (SwitchPreference) findPreference(getString(R.string.fingerprint_enable_key));
+ preference.setDefaultValue(false);
+ preference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
+ @Override
+ public boolean onPreferenceClick(Preference preference) {
+ ((SwitchPreference) preference).setChecked(false);
+ UnavailableFeatureDialog.getInstance(Build.VERSION_CODES.M)
+ .show(getFragmentManager(), "unavailableFeatureDialog");
+ return false;
+ }
+ });
+ }
+
break;
case NESTED_SCREEN_DB_KEY:
diff --git a/app/src/main/java/com/keepassdroid/settings/PrefsUtil.java b/app/src/main/java/com/keepassdroid/settings/PrefsUtil.java
index 1cd55ccf8..214fdb45a 100644
--- a/app/src/main/java/com/keepassdroid/settings/PrefsUtil.java
+++ b/app/src/main/java/com/keepassdroid/settings/PrefsUtil.java
@@ -57,8 +57,14 @@ public class PrefsUtil {
}
public static boolean isLockDatabaseWhenScreenShutOffEnable(Context ctx) {
- SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
- return prefs.getBoolean(ctx.getString(R.string.lock_database_screen_off_key),
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
+ return prefs.getBoolean(ctx.getString(R.string.lock_database_screen_off_key),
ctx.getResources().getBoolean(R.bool.lock_database_screen_off_default));
}
+
+ public static boolean isFingerprintEnable(Context ctx) {
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
+ return prefs.getBoolean(ctx.getString(R.string.fingerprint_enable_key),
+ ctx.getResources().getBoolean(R.bool.fingerprint_enable_default));
+ }
}
diff --git a/app/src/main/java/com/keepassdroid/view/FingerPrintDialog.java b/app/src/main/java/com/keepassdroid/view/FingerPrintDialog.java
new file mode 100644
index 000000000..f05c150be
--- /dev/null
+++ b/app/src/main/java/com/keepassdroid/view/FingerPrintDialog.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2017 Brian Pellin, Jeremy Jamet / Kunzisoft.
+ *
+ * This file is part of KeePass DX.
+ *
+ * KeePass DX is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * KeePass DX is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with KeePass DX. If not, see .
+ *
+ */
+package com.keepassdroid.view;
+
+import android.app.Dialog;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.annotation.NonNull;
+import android.support.annotation.RequiresApi;
+import android.support.v4.app.DialogFragment;
+import android.support.v7.app.AlertDialog;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.widget.ImageView;
+
+import com.keepassdroid.fingerprint.FingerPrintAnimatedVector;
+import com.kunzisoft.keepass.R;
+
+@RequiresApi(api = Build.VERSION_CODES.M)
+public class FingerPrintDialog extends DialogFragment {
+
+ private FingerPrintAnimatedVector fingerPrintAnimatedVector;
+
+ @NonNull
+ @Override
+ public Dialog onCreateDialog(Bundle savedInstanceState) {
+ AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
+ LayoutInflater inflater = getActivity().getLayoutInflater();
+
+ View rootView = inflater.inflate(R.layout.fingerprint_dialog, null);
+
+ View fingerprintSettingWayTextView = rootView.findViewById(R.id.fingerprint_setting_way_text);
+ fingerprintSettingWayTextView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ startActivity(new Intent(android.provider.Settings.ACTION_SECURITY_SETTINGS));
+ }
+ });
+
+ fingerPrintAnimatedVector =
+ new FingerPrintAnimatedVector(getContext(),
+ (ImageView) rootView.findViewById(R.id.fingerprint_image));
+
+ builder.setView(rootView)
+ .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
+ @Override
+ public void onClick(DialogInterface dialog, int id) {
+
+ }
+ });
+ return builder.create();
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ fingerPrintAnimatedVector.startScan();
+ }
+
+ @Override
+ public void onPause() {
+ super.onPause();
+ fingerPrintAnimatedVector.stopScan();
+ }
+}
diff --git a/app/src/main/res/animator-v23/scan.xml b/app/src/main/res/animator-v23/scan.xml
new file mode 100644
index 000000000..d4965f389
--- /dev/null
+++ b/app/src/main/res/animator-v23/scan.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable-v23/fingerprint.xml b/app/src/main/res/drawable-v23/fingerprint.xml
new file mode 100644
index 000000000..6794fb4af
--- /dev/null
+++ b/app/src/main/res/drawable-v23/fingerprint.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable-v23/fingerprint_scan.xml b/app/src/main/res/drawable-v23/fingerprint_scan.xml
new file mode 100644
index 000000000..a313e708b
--- /dev/null
+++ b/app/src/main/res/drawable-v23/fingerprint_scan.xml
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable-v23/lock_open.xml b/app/src/main/res/drawable-v23/lock_open.xml
new file mode 100644
index 000000000..d65cefb28
--- /dev/null
+++ b/app/src/main/res/drawable-v23/lock_open.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable-v23/scan_fingerprint.xml b/app/src/main/res/drawable-v23/scan_fingerprint.xml
new file mode 100644
index 000000000..248691440
--- /dev/null
+++ b/app/src/main/res/drawable-v23/scan_fingerprint.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/circle.xml b/app/src/main/res/drawable/circle.xml
new file mode 100644
index 000000000..bea663f9d
--- /dev/null
+++ b/app/src/main/res/drawable/circle.xml
@@ -0,0 +1,6 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_lock_open_white_24dp.xml b/app/src/main/res/drawable/ic_lock_open_white_24dp.xml
new file mode 100644
index 000000000..f54491132
--- /dev/null
+++ b/app/src/main/res/drawable/ic_lock_open_white_24dp.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/type_assword.png b/app/src/main/res/drawable/type_assword.png
new file mode 100644
index 000000000..7a6c072a8
Binary files /dev/null and b/app/src/main/res/drawable/type_assword.png differ
diff --git a/app/src/main/res/layout/fingerprint_dialog.xml b/app/src/main/res/layout/fingerprint_dialog.xml
new file mode 100644
index 000000000..418db9b0d
--- /dev/null
+++ b/app/src/main/res/layout/fingerprint_dialog.xml
@@ -0,0 +1,136 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/password.xml b/app/src/main/res/layout/password.xml
index 71bf5a64f..0812797c9 100644
--- a/app/src/main/res/layout/password.xml
+++ b/app/src/main/res/layout/password.xml
@@ -79,40 +79,46 @@
android:layout_height="wrap_content"
android:text="@string/entry_and_or" />
-
-
+
+ android:layout_below="@id/password_label">
+
+
+
+
+
-
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index a09adbeff..026a3613b 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -210,6 +210,17 @@
Activer les notifications du presse-papiers pour copier le nom d\'utilisateur et le mot de passe
Verrouillage d\'écran
Verrouiller la base de données quand l\'écran est éteint
+ Comment configurer l\'empreinte digitale pour un déverrouillage rapide?
+ Définissez votre empreinte digitale personnelle pour votre appareil dans
+ Paramètres -> Sécurité -> Empreinte digitale
+ Tapez votre mot de passe dans Keepass DX
+ Scannez votre empreinte digitale pour stocker votre mot de passe maître en toute sécurité
+ Il suffit de scanner votre empreinte digitale dans Keepass DX lorsque le champ mot de passe est vide pour ouvrir la base de données
+ Usage
+ Empreinte digitale
+ Écoute d\'empreintes digitales
+ Activer l\'ouverture de la base de données par empreinte digitale
+ Impossible de démarrer cette fonctionnalité\nVotre version Android %1$d n\'est pas la version minimale %2$d requise
- 30 secondes
diff --git a/app/src/main/res/values-v23/donottranslate.xml b/app/src/main/res/values-v23/donottranslate.xml
new file mode 100644
index 000000000..10e970345
--- /dev/null
+++ b/app/src/main/res/values-v23/donottranslate.xml
@@ -0,0 +1,22 @@
+
+
+
+ true
+
diff --git a/app/src/main/res/values-v23/fingerprint.xml b/app/src/main/res/values-v23/fingerprint.xml
new file mode 100644
index 000000000..bfef565a6
--- /dev/null
+++ b/app/src/main/res/values-v23/fingerprint.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+ 160
+ 160
+ 80
+ 5
+ 7
+ 80dp
+ 80dp
+
+
+ M56.2199243,45.3815903 C56.2199243,45.3815903 65.1913567,38.8543184 80.3604294,38.8543184 C95.5295022,38.8543184 103.720044,45.2851323 103.720044,45.2851323
+ M45.5181172,67.9181841 C49.9761548,62.7019025 59.122049,49.7790452 80.2279027,49.7790452 C101.333756,49.7790452 110.740506,62.0384399 114.937688,67.9181841
+ M51.7375623,107.718438 C51.7375623,107.718438 48.7129745,99.6302234 48.7129745,91.6334356 C48.7129745,81.3266864 55.9028711,60.2476586 80.4057228,60.2478671 C100.798248,60.2480407 112.457463,79.7942647 112.457463,88.386575 C112.457462,99.2963939 105.619846,103.039218 100.781849,102.18762 C95.9438519,101.336021 90.4490979,97.2187731 91.0639139,92.3178681 C91.67873,87.4169631 85.2177374,81.3265129 80.7504553,81.3266871 C73.0900115,81.3269859 69.8146331,85.3921834 69.8146329,92.2700585 C69.8146324,107.718437 83.7557525,121.02713 91.6787289,121.027128
+ M70.7357889,121.024995 C70.7357889,121.024995 57.4650216,106.018711 58.8888756,91.5596242 C60.5513085,74.6777941 73.9858126,70.313752 80.3788823,70.3807995 C86.771952,70.4478469 101.550994,76.8218704 101.550997,92.2895418
+ M80.1599645,91.1813411 C80.1599645,91.1813411 81.1144795,102.68333 86.7971146,107.529716 C93.2390527,113.023667 105.911091,112.342743 105.911091,112.342743
+
+ M52.2735573,79.0771904 C52.2735573,79.0771904 69.2403688,96.0440006 69.2403683,96.0440014 C69.2403679,96.0440021 109.820188,55.4641819 109.820188,55.4641819
+
+ M62,62 C62,62 80.5647617,80.5647617 80.564762,80.564762 C80.5647622,80.5647622 94.2921789,94.223714 98.5644262,98.5644262
+ M98.5644262,62 C98.5644251,62 81.1979242,79.366503 81.1979229,79.3665033 C81.1979216,79.3665035 62,98.5644262 62,98.5644262
+
+
+ M0 0 L160 0 L160 40 L0 40 Z
+ M0 120 L160 120 L160 160 L0 160 Z
+
+ #deffffff
+ #ffffffff
+
+ #ff607d8b
+
+
diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml
index d46cd5b35..47bb8659c 100644
--- a/app/src/main/res/values/donottranslate.xml
+++ b/app/src/main/res/values/donottranslate.xml
@@ -54,6 +54,7 @@
setting_style_key
clipboard_notifications_key
lock_database_screen_off_key
+ fingerprint_enable_key
true
true
@@ -63,6 +64,7 @@
false
true
true
+ false
300000
@@ -128,4 +130,10 @@
- @string/special
- @string/brackets
+
+ I
+ II
+ III
+ IV
+ V
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ca81b8fcd..05f2d3321 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -211,6 +211,17 @@
Lock
Screen lock
Lock the database when the screen is off
+ How to configure fingerprint for quick unlocking ?
+ Set your personnal fingerprint for your device in
+ Settings -> Security -> Fingerprint
+ Type your password in Keepass DX
+ Scan your fingerprint to store your master password securely
+ Just scan your fingerprint in Keepass DX when the password field is empty to open the database
+ Usage
+ Fingerprint
+ Fingerprint listening
+ Enable database opening by fingerprint
+ Can not start this feature\nYour Android version %1$d is not the minimum version %2$d required
- 30 seconds
diff --git a/app/src/main/res/xml/app_preferences.xml b/app/src/main/res/xml/app_preferences.xml
index 757d6fd5a..dc5bcf267 100644
--- a/app/src/main/res/xml/app_preferences.xml
+++ b/app/src/main/res/xml/app_preferences.xml
@@ -110,6 +110,17 @@
+
+
+
+
+
+
diff --git a/art/TypePassword.png b/art/TypePassword.png
new file mode 100644
index 000000000..7a6c072a8
Binary files /dev/null and b/art/TypePassword.png differ