mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Merge branch 'develop' into feature/EncryptionSettings
This commit is contained in:
commit
d5acd04a19
18 files changed
+100
-88
No files matched your search
+2
-2
@@ -8,8 +8,8 @@ android {
|
||||
applicationId "com.kunzisoft.keepass"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 27
|
||||
versionCode = 7
|
||||
versionName = "2.5.0.0beta7"
|
||||
versionCode = 8
|
||||
versionName = "2.5.0.0beta8"
|
||||
multiDexEnabled true
|
||||
|
||||
testApplicationId = "com.keepassdroid.tests"
|
||||
|
||||
@@ -304,10 +304,10 @@ public class EntryActivity extends LockingHideActivity {
|
||||
|
||||
MenuItem togglePassword = menu.findItem(R.id.menu_toggle_pass);
|
||||
if (entryContentsView != null && togglePassword != null) {
|
||||
if (!entryContentsView.isPasswordPresent()) {
|
||||
togglePassword.setVisible(false);
|
||||
} else {
|
||||
if (entryContentsView.isPasswordPresent() || entryContentsView.atLeastOneFieldProtectedPresent()) {
|
||||
changeShowPasswordIcon(togglePassword);
|
||||
} else {
|
||||
togglePassword.setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -135,21 +135,21 @@ public class FileSelectActivity extends StylishActivity implements
|
||||
setContentView(R.layout.file_selection);
|
||||
fileListTitle = findViewById(R.id.file_list_title);
|
||||
|
||||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
||||
toolbar.setTitle(getString(R.string.app_name));
|
||||
setSupportActionBar(toolbar);
|
||||
|
||||
openFileNameView = (EditText) findViewById(R.id.file_filename);
|
||||
fileNameView = (FileNameView) findViewById(R.id.file_select);
|
||||
openFileNameView = findViewById(R.id.file_filename);
|
||||
fileNameView = findViewById(R.id.file_select);
|
||||
|
||||
// Set the initial value of the filename
|
||||
defaultPath = Environment.getExternalStorageDirectory().getAbsolutePath()
|
||||
+ getString(R.string.database_file_path_default)
|
||||
+ getString(R.string.database_file_name_default)
|
||||
+ getString(R.string.database_file_extension_default);
|
||||
openFileNameView.setHint(defaultPath);
|
||||
openFileNameView.setHint(R.string.open_link_database);
|
||||
|
||||
RecyclerView mListFiles = (RecyclerView) findViewById(R.id.file_list);
|
||||
RecyclerView mListFiles = findViewById(R.id.file_list);
|
||||
mListFiles.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
// To retrieve info for AutoFill
|
||||
|
||||
@@ -21,7 +21,7 @@ package com.keepassdroid.utils;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.DateTimeZone;
|
||||
import org.joda.time.Seconds;
|
||||
import org.joda.time.Duration;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@@ -32,9 +32,6 @@ public class DateUtil {
|
||||
private static final long epochOffset;
|
||||
|
||||
static {
|
||||
Date dotNet = dotNetEpoch.toDate();
|
||||
Date java = javaEpoch.toDate();
|
||||
|
||||
epochOffset = (javaEpoch.getMillis() - dotNetEpoch.getMillis()) / 1000L;
|
||||
}
|
||||
|
||||
@@ -51,7 +48,8 @@ public class DateUtil {
|
||||
}
|
||||
|
||||
public static long convertDateToKDBX4Time(DateTime dt) {
|
||||
Seconds secs = Seconds.secondsBetween(javaEpoch, dt);
|
||||
return secs.getSeconds() + epochOffset;
|
||||
Duration duration = new Duration( javaEpoch, dt );
|
||||
long seconds = ( duration.getMillis() / 1000L );
|
||||
return seconds + epochOffset;
|
||||
}
|
||||
}
|
||||
@@ -52,9 +52,13 @@ public class Util {
|
||||
public static void copyStream(InputStream in, OutputStream out) throws IOException {
|
||||
byte[] buf = new byte[1024];
|
||||
int read;
|
||||
while ((read = in.read(buf)) != -1) {
|
||||
out.write(buf, 0, read);
|
||||
}
|
||||
try {
|
||||
while ((read = in.read(buf)) != -1) {
|
||||
out.write(buf, 0, read);
|
||||
}
|
||||
} catch (OutOfMemoryError error) {
|
||||
throw new IOException(error);
|
||||
}
|
||||
}
|
||||
|
||||
private final static String stringToStrikeThrough = "0";
|
||||
|
||||
@@ -146,6 +146,15 @@ public class EntryContentsView extends LinearLayout {
|
||||
return passwordContainerView.getVisibility() == VISIBLE;
|
||||
}
|
||||
|
||||
public boolean atLeastOneFieldProtectedPresent() {
|
||||
for (int i = 0; i < extrasView.getChildCount(); i++) {
|
||||
View childCustomView = extrasView.getChildAt(i);
|
||||
if (childCustomView instanceof EntryCustomFieldProtected)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setHiddenPasswordStyle(boolean hiddenStyle) {
|
||||
if ( !hiddenStyle ) {
|
||||
passwordView.setTransformationMethod(null);
|
||||
|
||||
@@ -54,19 +54,12 @@ public class FileNameView extends RelativeLayout {
|
||||
warning = R.string.warning_unmounted;
|
||||
}
|
||||
|
||||
TextView tv = (TextView) findViewById(R.id.label_warning);
|
||||
TextView label = (TextView) findViewById(R.id.label_open_by_filename);
|
||||
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
|
||||
|
||||
TextView tv = findViewById(R.id.label_warning);
|
||||
if (warning != -1) {
|
||||
tv.setText(warning);
|
||||
tv.setVisibility(VISIBLE);
|
||||
|
||||
lp.addRule(RelativeLayout.BELOW, R.id.label_warning);
|
||||
} else {
|
||||
tv.setVisibility(INVISIBLE);
|
||||
}
|
||||
|
||||
label.setLayoutParams(lp);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FF000000" android:pathData="M20,6h-8l-2,-2L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,8c0,-1.1 -0.9,-2 -2,-2zM20,18L4,18L4,8h16v10z"/>
|
||||
</vector>
|
||||
@@ -1,10 +0,0 @@
|
||||
<!-- drawable/folder_open.xml -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:pathData="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z" />
|
||||
</vector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFFFF" android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z"/>
|
||||
</vector>
|
||||
@@ -45,10 +45,12 @@
|
||||
app:contentScrim="?attr/colorPrimary"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
||||
|
||||
<com.keepassdroid.view.FileNameView android:id="@+id/file_select"
|
||||
<com.keepassdroid.view.FileNameView
|
||||
android:id="@+id/file_select"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="?attr/actionBarSize"/>
|
||||
android:layout_marginTop="?attr/actionBarSize"
|
||||
android:layout_marginBottom="24dp"/>
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
@@ -62,17 +64,14 @@
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/open_database"
|
||||
android:id="@+id/browse_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginLeft="24dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginRight="24dp"
|
||||
app:fabSize="mini"
|
||||
app:layout_anchor="@id/app_bar"
|
||||
app:layout_anchorGravity="bottom|end"
|
||||
android:src="@drawable/ic_open_folder_white_24dp" />
|
||||
android:src="@drawable/ic_folder_white_24dp"
|
||||
android:theme="?attr/whiteFab"
|
||||
app:useCompatPadding="true"
|
||||
app:layout_anchor="@+id/app_bar"
|
||||
app:layout_anchorGravity="end|bottom" />
|
||||
|
||||
<android.support.v4.widget.NestedScrollView
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
||||
@@ -86,11 +85,12 @@
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView android:id="@+id/file_list_title"
|
||||
android:layout_marginTop="@dimen/default_margin"
|
||||
android:layout_marginTop="22dp"
|
||||
android:layout_marginLeft="@dimen/default_margin"
|
||||
android:layout_marginStart="@dimen/default_margin"
|
||||
android:layout_marginRight="@dimen/default_margin"
|
||||
android:layout_marginEnd="@dimen/default_margin"
|
||||
android:layout_marginRight="72dp"
|
||||
android:layout_marginEnd="72dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/KeepassDXStyle.TextAppearance.Title"
|
||||
|
||||
@@ -31,51 +31,43 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/default_margin"
|
||||
android:layout_marginLeft="@dimen/default_margin"
|
||||
android:layout_marginStart="@dimen/default_margin"
|
||||
android:layout_marginRight="@dimen/default_margin"
|
||||
android:layout_marginEnd="@dimen/default_margin"
|
||||
android:layout_marginBottom="22dp">
|
||||
android:layout_marginBottom="@dimen/default_margin">
|
||||
|
||||
<TextView android:id="@+id/label_warning"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="20sp"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<TextView android:id="@+id/label_open_by_filename"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/KeepassDXStyle.TextAppearance.Inverse"
|
||||
android:text="@string/select_database_file"/>
|
||||
|
||||
<android.support.v7.widget.AppCompatImageView
|
||||
android:id="@+id/browse_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/file_filename"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_below="@id/label_open_by_filename"
|
||||
android:src="@drawable/ic_folder_white_24dp"
|
||||
android:tint="?attr/colorAccentCompat" />
|
||||
android:visibility="gone" />
|
||||
|
||||
<android.support.v7.widget.AppCompatEditText
|
||||
android:id="@+id/file_filename"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/label_open_by_filename"
|
||||
android:inputType="textUri"
|
||||
android:textColor="?attr/textColorInverse"
|
||||
android:textColorHint="?attr/android:textColorHintInverse"
|
||||
android:layout_toLeftOf="@+id/open_database"
|
||||
android:layout_toStartOf="@+id/open_database"
|
||||
android:layout_marginStart="2dp"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="2dp"
|
||||
android:layout_marginEnd="2dp"
|
||||
android:layout_toRightOf="@+id/browse_button"
|
||||
android:layout_toEndOf="@+id/browse_button"
|
||||
android:maxLines="1" />
|
||||
|
||||
<android.support.v7.widget.AppCompatImageView
|
||||
android:id="@+id/open_database"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignBottom="@+id/file_filename"
|
||||
android:paddingBottom="8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:src="@drawable/ic_send_white_24dp"
|
||||
android:tint="?attr/colorAccent" />
|
||||
</RelativeLayout>
|
||||
|
||||
</android.support.v7.widget.CardView>
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
<string name="no_results">Aucun résultat pour cette recherche.</string>
|
||||
<string name="no_url_handler">Impossible d\'ouvrir cette URL.</string>
|
||||
<string name="select_database_file">Sélectionner une base de données existante :</string>
|
||||
<string name="open_recent">Ouvrir une base de données récente :</string>
|
||||
<string name="open_recent">Bases de données récentes :</string>
|
||||
<string name="omitbackup_title">Ignorer les sauvegardes</string>
|
||||
<string name="omitbackup_summary">Ignorer le groupe Sauvegardes des résultats de recherche (uniquement pour .kdb)</string>
|
||||
<string name="progress_create">Création d\'une nouvelle base de données…</string>
|
||||
@@ -247,6 +247,7 @@
|
||||
<string name="allow_copy_password_title">Copie de mot de passe</string>
|
||||
<string name="allow_copy_password_summary">Autoriser la copie du mot de passe dans le presse-papiers.</string>
|
||||
<string name="warning_disabling_storage_access_framework">ATTENTION : désactiver cette fonctionnalité peut engendrer une impossibilité d\'ouvrir ou sauvegarder les bases de données</string>
|
||||
<string name="open_link_database">Lien du fichier Kdbx à ouvrir</string>
|
||||
|
||||
<string-array name="timeout_options">
|
||||
<item>5 secondes</item>
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
|
||||
<attr name="textColorInverse" format="reference|color" />
|
||||
|
||||
<attr name="whiteFab" format="reference" />
|
||||
|
||||
<declare-styleable name="RoundsDialog">
|
||||
<attr name="description" format="string" />
|
||||
</declare-styleable>
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
<string name="no_results">No search results</string>
|
||||
<string name="no_url_handler">No handler for this url.</string>
|
||||
<string name="select_database_file">Select an existing database :</string>
|
||||
<string name="open_recent">Open a recent database :</string>
|
||||
<string name="open_recent">Recent databases :</string>
|
||||
<string name="omitbackup_title">Don\'t search backup entries</string>
|
||||
<string name="omitbackup_summary">Omit \'Backup\' group from search results (applies to .kdb only)</string>
|
||||
<string name="progress_create">Creating new database…</string>
|
||||
@@ -251,6 +251,7 @@
|
||||
<string name="allow_copy_password_title">Copy of password</string>
|
||||
<string name="allow_copy_password_summary">Allow the copy of the password to the clipboard.</string>
|
||||
<string name="warning_disabling_storage_access_framework">WARNING : disabling this feature may result in an inability to open or save the databases</string>
|
||||
<string name="open_link_database">Link of the Kdbx file to open</string>
|
||||
|
||||
<string-array name="timeout_options">
|
||||
<item>5 seconds</item>
|
||||
|
||||
@@ -65,6 +65,9 @@
|
||||
<!-- Toolbar -->
|
||||
<item name="toolbarAppearance">@style/KeepassDXStyle.Toolbar</item>
|
||||
<item name="toolbarPopupAppearance">@style/KeepassDXStyle.Light.Toolbar.Popup</item>
|
||||
|
||||
<!-- White FAB -->
|
||||
<item name="whiteFab">@style/KeepassDXStyle.Fab.White</item>
|
||||
</style>
|
||||
<style name="KeepassDXStyle.Night.v21" parent="Theme.AppCompat">
|
||||
|
||||
@@ -115,6 +118,9 @@
|
||||
<!-- Toolbar -->
|
||||
<item name="toolbarAppearance">@style/KeepassDXStyle.Toolbar</item>
|
||||
<item name="toolbarPopupAppearance">@style/KeepassDXStyle.Night.Toolbar.Popup</item>
|
||||
|
||||
<!-- White FAB -->
|
||||
<item name="whiteFab">@style/KeepassDXStyle.Fab.White</item>
|
||||
</style>
|
||||
|
||||
<!-- Light Style -->
|
||||
@@ -224,6 +230,10 @@
|
||||
<style name="KeepassDXStyle.v21.Fab" parent="Theme.AppCompat" />
|
||||
<style name="KeepassDXStyle.Fab" parent="KeepassDXStyle.v21.Fab">
|
||||
</style>
|
||||
<style name="KeepassDXStyle.Fab.White" parent="KeepassDXStyle.v21.Fab">
|
||||
<item name="colorAccent">@color/white</item>
|
||||
<item name="tint">?attr/colorAccentCompat</item>
|
||||
</style>
|
||||
|
||||
<!-- Menu FAB -->
|
||||
<style name="KeepassDXStyle.v21.FabMenu" parent="KeepassDXStyle.TextAppearance.DefaultTextOnPrimary" />
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
If you want a light material design Keepass client to manage keys and passwords in secure database, you're in the right place !
|
||||
Multi-format KeePass manager, the application allows to create keys and passwords in a secure way by integrating perfectly with the Android design standards.
|
||||
|
||||
Features :
|
||||
* Create database files / entries and groups
|
||||
* Support for .kdb and .kdbx files (version 1 to 4)
|
||||
* Open database, copy username / password, open URI / URL
|
||||
* Support for .kdb and .kdbx files (version 1 to 4) with AES - Twofish - ChaCha20 - Argon2 algorithm
|
||||
* Compatible with the majority of alternative programs (KeePass, KeePassX, KeePass XC...)
|
||||
* Allows fast copy of fields and opening of URI / URL
|
||||
* Fingerprint for fast unlocking
|
||||
* Material design with themes
|
||||
* AutoFill and Integration (Development in progress)
|
||||
* AutoFill and Integration
|
||||
* Precise management of settings
|
||||
|
||||
Keepass DX is opensource and ad-free.
|
||||
You can donate for a better service and a quick development of your features.
|
||||
|
||||
Any issue : https://github.com/Kunzisoft/KeePassDX/issues
|
||||
Any issue : https://github.com/Kunzisoft/KeePassDX/issues
|
||||
@@ -1,15 +1,16 @@
|
||||
Si vous voulez un client Keepass material design pour gérer vos clés et mots de passe dans une base de données sécurisée, vous êtes au bon endroit !
|
||||
Gestionnaire KeePass multiformats, l'application permet de créer des clés et mots de passe de manière sécurisée en s'intégrant parfaitement aux normes de design Android.
|
||||
|
||||
Fonctionnalités :
|
||||
* Création de fichiers de base de données / entrées et groupes
|
||||
* Support des fichiers .kdb et .kdbx (version 1 à 4)
|
||||
* Ouverture de la base de données, copie du nom d'utilisateur / mot de passe, ouverture des URI / URL
|
||||
* Empreinte digitale pour déblocage rapide
|
||||
* Création de bases de données / entrées et groupes
|
||||
* Support des fichiers .kdb et .kdbx (version 1 à 4) avec algorithme AES - Twofish - ChaCha20 - Argon2
|
||||
* Compatible avec la majorité des programmes alternatifs (KeePass, KeePassX, KeePass XC...)
|
||||
* Permet la copie rapide de champs et l'ouverture d'URI /URL
|
||||
* Empreintes digitales pour un déblocage rapide des bases
|
||||
* Material design avec thèmes
|
||||
* AutoFill et Intégration (Développement en cours)
|
||||
* Remplissage automatique de champs
|
||||
* Gestion précise des paramètres
|
||||
|
||||
Keepass DX est opensource et sans publicité.
|
||||
Vous pouvez faire un don pour un meilleur service et un développement rapide de vos fonctionnalités.
|
||||
|
||||
Vous avez un bug : https://github.com/Kunzisoft/KeePassDX/issues
|
||||
Vous avez un bug : https://github.com/Kunzisoft/KeePassDX/issues
|
||||
Reference in new issue
Block a user