mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Compare commits
99 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8baae8b801 | ||
|
|
9f16f26347 | ||
|
|
69b4cacab4 | ||
|
|
b74b5040b1 | ||
|
|
a28decc854 | ||
|
|
cb59cef1b8 | ||
|
|
d9b600466c | ||
|
|
4edf2f8cd1 | ||
|
|
c60dfdf0d7 | ||
|
|
006afc6841 | ||
|
|
f70879581d | ||
|
|
db1d71af9f | ||
|
|
6b03ef35a6 | ||
|
|
2afd02d86f | ||
|
|
6de88bfe11 | ||
|
|
6d7236249f | ||
|
|
69fbaba8a6 | ||
|
|
6d88737505 | ||
|
|
9869cfc736 | ||
|
|
8505326a68 | ||
|
|
3a4af88384 | ||
|
|
5b2e7d0f70 | ||
|
|
ddeea6bee3 | ||
|
|
0cfe3a7634 | ||
|
|
727463e4d1 | ||
|
|
d42abfdc56 | ||
|
|
e01ea1df4c | ||
|
|
078bfac5f5 | ||
|
|
111b07b9e6 | ||
|
|
dfbc89addc | ||
|
|
bf44da9a14 | ||
|
|
d75d13965b | ||
|
|
8aedebdc94 | ||
|
|
9388c4bb0d | ||
|
|
77d4f601af | ||
|
|
7fae590848 | ||
|
|
bc41558a26 | ||
|
|
f6651face4 | ||
|
|
345f00f7f2 | ||
|
|
e876d02118 | ||
|
|
5b7018f71b | ||
|
|
f45b3fc50a | ||
|
|
01196be30d | ||
|
|
0a2999bffb | ||
|
|
8f097096e7 | ||
|
|
cd97fc046a | ||
|
|
eeb10f31a6 | ||
|
|
9df5e116e8 | ||
|
|
1228a03d39 | ||
|
|
a5e1b3096e | ||
|
|
b41ae67128 | ||
|
|
ddfbe20125 | ||
|
|
0bfe9291dd | ||
|
|
622b2e1edc | ||
|
|
4a40719534 | ||
|
|
384993d363 | ||
|
|
01b7d28154 | ||
|
|
d7c4f5577f | ||
|
|
a69d23ca64 | ||
|
|
e2f8b7a6e3 | ||
|
|
171a0b012f | ||
|
|
5c04b15433 | ||
|
|
6397feffff | ||
|
|
e73b9b7f1c | ||
|
|
0d82e40c67 | ||
|
|
b75d6d02fa | ||
|
|
76d4542716 | ||
|
|
87955de849 | ||
|
|
6df60cf5da | ||
|
|
3c23a314f0 | ||
|
|
8fda6b04a4 | ||
|
|
9fa98e6b76 | ||
|
|
deb685f39b | ||
|
|
d7851d3a18 | ||
|
|
44946fc54a | ||
|
|
a033d10adc | ||
|
|
5a3e599fe0 | ||
|
|
a9f645f389 | ||
|
|
d662f0903a | ||
|
|
beaa947eb7 | ||
|
|
48006b64d6 | ||
|
|
8f195ba66f | ||
|
|
5866e95d49 | ||
|
|
e79f395424 | ||
|
|
999ca87fec | ||
|
|
1217266d88 | ||
|
|
bb262198be | ||
|
|
6d860c5cb7 | ||
|
|
d8be832858 | ||
|
|
afcb9fcf41 | ||
|
|
3c7ae0aaf0 | ||
|
|
6b7f93dbfe | ||
|
|
3240e0bcae | ||
|
|
80f00aba0a | ||
|
|
232682f4a8 | ||
|
|
de3b690d60 | ||
|
|
a5cd6d5ac0 | ||
|
|
a6803bf0e3 | ||
|
|
df9a71a63d |
18
CHANGELOG
18
CHANGELOG
@@ -1,3 +1,21 @@
|
||||
KeePassDX(3.0.0)
|
||||
* Fix search with non-latin chars #971
|
||||
* Fix action mode with search #972 (rollback ignore accents #945)
|
||||
* Fix timeout with 0s #974
|
||||
|
||||
KeePassDX(2.9.19)
|
||||
* Fix search slowdown #964
|
||||
* Fix closing notification after lock request #965
|
||||
* Better temp advanced unlocking code implementation #965
|
||||
* Fix OTP token generation #967
|
||||
|
||||
KeePassDX(2.9.18)
|
||||
* Move groups #658
|
||||
* Improve autofill recognition #960
|
||||
* Remove diacritical marks in search string #945
|
||||
* Fix search in references #962
|
||||
* Fix themes in Libre version
|
||||
|
||||
KeePassDX(2.9.17)
|
||||
* Import / Export app properties #839
|
||||
* Force twofish padding compatibility #955
|
||||
|
||||
@@ -11,8 +11,8 @@ android {
|
||||
applicationId "com.kunzisoft.keepass"
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 30
|
||||
versionCode = 71
|
||||
versionName = "2.9.17"
|
||||
versionCode = 75
|
||||
versionName = "2.9.20"
|
||||
multiDexEnabled true
|
||||
|
||||
testApplicationId = "com.kunzisoft.keepass.tests"
|
||||
@@ -109,7 +109,7 @@ dependencies {
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||||
implementation 'androidx.viewpager2:viewpager2:1.1.0-alpha01'
|
||||
implementation 'androidx.documentfile:documentfile:1.0.1'
|
||||
implementation 'androidx.biometric:biometric:1.1.0-rc01'
|
||||
implementation 'androidx.biometric:biometric:1.1.0'
|
||||
// Lifecycle - LiveData - ViewModel - Coroutines
|
||||
implementation "androidx.core:core-ktx:1.3.2"
|
||||
implementation 'androidx.fragment:fragment-ktx:1.2.5'
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.kunzisoft.keepass.tests.utils
|
||||
|
||||
import com.kunzisoft.keepass.utils.UuidUtil
|
||||
import junit.framework.TestCase
|
||||
import java.util.*
|
||||
|
||||
class UUIDTest: TestCase() {
|
||||
|
||||
fun testUUID() {
|
||||
val randomUUID = UUID.randomUUID()
|
||||
val hexStringUUID = UuidUtil.toHexString(randomUUID)
|
||||
val retrievedUUID = UuidUtil.fromHexString(hexStringUUID)
|
||||
assertEquals(randomUUID, retrievedUUID)
|
||||
}
|
||||
}
|
||||
@@ -382,6 +382,7 @@ class GroupActivity : LockingActivity(),
|
||||
Log.d(TAG, "setNewIntent: $intentNotNull")
|
||||
setIntent(intentNotNull)
|
||||
if (Intent.ACTION_SEARCH == intentNotNull.action) {
|
||||
finishNodeAction()
|
||||
// only one instance of search in backstack
|
||||
deletePreviousSearchGroup()
|
||||
openGroup(retrieveCurrentGroup(intentNotNull, null), true)
|
||||
@@ -812,74 +813,75 @@ class GroupActivity : LockingActivity(),
|
||||
|
||||
override fun onPasteMenuClick(pasteMode: ListNodesFragment.PasteMode?,
|
||||
nodes: List<Node>): Boolean {
|
||||
// Move or copy only if allowed (in root if allowed)
|
||||
if (mCurrentGroup != mDatabase?.rootGroup
|
||||
|| mDatabase?.rootCanContainsEntry() == true) {
|
||||
|
||||
when (pasteMode) {
|
||||
ListNodesFragment.PasteMode.PASTE_FROM_COPY -> {
|
||||
// Copy
|
||||
mCurrentGroup?.let { newParent ->
|
||||
mProgressDatabaseTaskProvider?.startDatabaseCopyNodes(
|
||||
nodes,
|
||||
newParent,
|
||||
!mReadOnly && mAutoSaveEnable
|
||||
)
|
||||
}
|
||||
}
|
||||
ListNodesFragment.PasteMode.PASTE_FROM_MOVE -> {
|
||||
// Move
|
||||
mCurrentGroup?.let { newParent ->
|
||||
mProgressDatabaseTaskProvider?.startDatabaseMoveNodes(
|
||||
nodes,
|
||||
newParent,
|
||||
!mReadOnly && mAutoSaveEnable
|
||||
)
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
when (pasteMode) {
|
||||
ListNodesFragment.PasteMode.PASTE_FROM_COPY -> {
|
||||
// Copy
|
||||
mCurrentGroup?.let { newParent ->
|
||||
mProgressDatabaseTaskProvider?.startDatabaseCopyNodes(
|
||||
nodes,
|
||||
newParent,
|
||||
!mReadOnly && mAutoSaveEnable
|
||||
)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
coordinatorLayout?.let { coordinatorLayout ->
|
||||
Snackbar.make(coordinatorLayout,
|
||||
R.string.error_copy_entry_here,
|
||||
Snackbar.LENGTH_LONG).asError().show()
|
||||
ListNodesFragment.PasteMode.PASTE_FROM_MOVE -> {
|
||||
// Move
|
||||
mCurrentGroup?.let { newParent ->
|
||||
mProgressDatabaseTaskProvider?.startDatabaseMoveNodes(
|
||||
nodes,
|
||||
newParent,
|
||||
!mReadOnly && mAutoSaveEnable
|
||||
)
|
||||
}
|
||||
}
|
||||
else -> {}
|
||||
}
|
||||
finishNodeAction()
|
||||
return true
|
||||
}
|
||||
|
||||
private fun eachNodeRecyclable(nodes: List<Node>): Boolean {
|
||||
mDatabase?.let { database ->
|
||||
return nodes.find { node ->
|
||||
var cannotRecycle = true
|
||||
if (node is Entry) {
|
||||
cannotRecycle = !database.canRecycle(node)
|
||||
} else if (node is Group) {
|
||||
cannotRecycle = !database.canRecycle(node)
|
||||
}
|
||||
cannotRecycle
|
||||
} == null
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun deleteNodes(nodes: List<Node>, recycleBin: Boolean = false): Boolean {
|
||||
val database = mDatabase
|
||||
mDatabase?.let { database ->
|
||||
|
||||
// If recycle bin enabled, ensure it exists
|
||||
if (database != null && database.isRecycleBinEnabled) {
|
||||
database.ensureRecycleBinExists(resources)
|
||||
}
|
||||
|
||||
// If recycle bin enabled and not in recycle bin, move in recycle bin
|
||||
if (database != null
|
||||
&& database.isRecycleBinEnabled
|
||||
&& database.recycleBin != mCurrentGroup) {
|
||||
|
||||
mProgressDatabaseTaskProvider?.startDatabaseDeleteNodes(
|
||||
nodes,
|
||||
!mReadOnly && mAutoSaveEnable
|
||||
)
|
||||
}
|
||||
// else open the dialog to confirm deletion
|
||||
else {
|
||||
val deleteNodesDialogFragment: DeleteNodesDialogFragment =
|
||||
if (recycleBin) {
|
||||
EmptyRecycleBinDialogFragment.getInstance(nodes)
|
||||
} else {
|
||||
DeleteNodesDialogFragment.getInstance(nodes)
|
||||
// If recycle bin enabled, ensure it exists
|
||||
if (database.isRecycleBinEnabled) {
|
||||
database.ensureRecycleBinExists(resources)
|
||||
}
|
||||
deleteNodesDialogFragment.show(supportFragmentManager, "deleteNodesDialogFragment")
|
||||
|
||||
// If recycle bin enabled and not in recycle bin, move in recycle bin
|
||||
if (eachNodeRecyclable(nodes)) {
|
||||
mProgressDatabaseTaskProvider?.startDatabaseDeleteNodes(
|
||||
nodes,
|
||||
!mReadOnly && mAutoSaveEnable
|
||||
)
|
||||
}
|
||||
// else open the dialog to confirm deletion
|
||||
else {
|
||||
val deleteNodesDialogFragment: DeleteNodesDialogFragment =
|
||||
if (recycleBin) {
|
||||
EmptyRecycleBinDialogFragment.getInstance(nodes)
|
||||
} else {
|
||||
DeleteNodesDialogFragment.getInstance(nodes)
|
||||
}
|
||||
deleteNodesDialogFragment.show(supportFragmentManager, "deleteNodesDialogFragment")
|
||||
}
|
||||
finishNodeAction()
|
||||
}
|
||||
finishNodeAction()
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -1076,6 +1078,16 @@ class GroupActivity : LockingActivity(),
|
||||
}
|
||||
}
|
||||
|
||||
override fun isValidGroupName(name: String): GroupEditDialogFragment.Error {
|
||||
if (name.isEmpty()) {
|
||||
return GroupEditDialogFragment.Error(true, R.string.error_no_name)
|
||||
}
|
||||
if (mDatabase?.groupNamesNotAllowed?.find { it.equals(name, ignoreCase = true) } != null) {
|
||||
return GroupEditDialogFragment.Error(true, R.string.error_word_reserved)
|
||||
}
|
||||
return GroupEditDialogFragment.Error(false, null)
|
||||
}
|
||||
|
||||
override fun approveEditGroup(action: GroupEditDialogFragment.EditGroupDialogAction,
|
||||
groupInfo: GroupInfo) {
|
||||
|
||||
|
||||
@@ -219,14 +219,19 @@ class GroupEditDialogFragment : DialogFragment() {
|
||||
}
|
||||
|
||||
private fun isValid(): Boolean {
|
||||
if (nameTextView.text.toString().isEmpty()) {
|
||||
nameTextLayoutView.error = getString(R.string.error_no_name)
|
||||
return false
|
||||
val error = mEditGroupListener?.isValidGroupName(nameTextView.text.toString()) ?: Error(false, null)
|
||||
error.messageId?.let { messageId ->
|
||||
nameTextLayoutView.error = getString(messageId)
|
||||
} ?: kotlin.run {
|
||||
nameTextLayoutView.error = null
|
||||
}
|
||||
return true
|
||||
return !error.isError
|
||||
}
|
||||
|
||||
data class Error(val isError: Boolean, val messageId: Int?)
|
||||
|
||||
interface EditGroupListener {
|
||||
fun isValidGroupName(name: String): Error
|
||||
fun approveEditGroup(action: EditGroupDialogAction,
|
||||
groupInfo: GroupInfo)
|
||||
fun cancelEditGroup(action: EditGroupDialogAction,
|
||||
|
||||
@@ -311,13 +311,17 @@ class ListNodesFragment : StylishFragment(), SortDialogFragment.SortSelectionLis
|
||||
menu?.removeItem(R.id.menu_edit)
|
||||
}
|
||||
|
||||
// Copy and Move (not for groups)
|
||||
// Move
|
||||
if (readOnly
|
||||
|| isASearchResult) {
|
||||
menu?.removeItem(R.id.menu_move)
|
||||
}
|
||||
|
||||
// Copy (not allowed for group)
|
||||
if (readOnly
|
||||
|| isASearchResult
|
||||
|| nodes.any { it.type == Type.GROUP }) {
|
||||
// TODO Copy For Group
|
||||
menu?.removeItem(R.id.menu_copy)
|
||||
menu?.removeItem(R.id.menu_move)
|
||||
}
|
||||
|
||||
// Deletion
|
||||
|
||||
@@ -106,7 +106,6 @@ class SearchEntryCursorAdapter(private val context: Context,
|
||||
|
||||
private fun getEntryFrom(cursor: Cursor): Entry? {
|
||||
return database.createEntry()?.apply {
|
||||
database.startManageEntry(this)
|
||||
entryKDB?.let { entryKDB ->
|
||||
(cursor as EntryCursorKDB).populateEntry(entryKDB,
|
||||
{ standardIconId ->
|
||||
@@ -127,7 +126,6 @@ class SearchEntryCursorAdapter(private val context: Context,
|
||||
}
|
||||
)
|
||||
}
|
||||
database.stopManageEntry(this)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,12 +148,14 @@ class SearchEntryCursorAdapter(private val context: Context,
|
||||
if (searchGroup != null) {
|
||||
// Search in hide entries but not meta-stream
|
||||
for (entry in searchGroup.getFilteredChildEntries(Group.ChildFilter.getDefaults(context))) {
|
||||
database.startManageEntry(entry)
|
||||
entry.entryKDB?.let {
|
||||
cursorKDB?.addEntry(it)
|
||||
}
|
||||
entry.entryKDBX?.let {
|
||||
cursorKDBX?.addEntry(it)
|
||||
}
|
||||
database.stopManageEntry(entry)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,10 +19,7 @@
|
||||
*/
|
||||
package com.kunzisoft.keepass.app.database
|
||||
|
||||
import android.content.ComponentName
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.ServiceConnection
|
||||
import android.content.*
|
||||
import android.net.Uri
|
||||
import android.os.IBinder
|
||||
import android.util.Log
|
||||
@@ -42,66 +39,95 @@ class CipherDatabaseAction(context: Context) {
|
||||
// Temp DAO to easily remove content if object no longer in memory
|
||||
private var useTempDao = PreferencesUtil.isTempAdvancedUnlockEnable(applicationContext)
|
||||
|
||||
private val mIntentAdvancedUnlockService = Intent(applicationContext,
|
||||
AdvancedUnlockNotificationService::class.java)
|
||||
private var mBinder: AdvancedUnlockNotificationService.AdvancedUnlockBinder? = null
|
||||
private var mServiceConnection: ServiceConnection? = null
|
||||
|
||||
private var mDatabaseListeners = LinkedList<DatabaseListener>()
|
||||
private var mDatabaseListeners = LinkedList<CipherDatabaseListener>()
|
||||
private var mAdvancedUnlockBroadcastReceiver = AdvancedUnlockNotificationService.AdvancedUnlockReceiver {
|
||||
deleteAll()
|
||||
removeAllDataAndDetach()
|
||||
}
|
||||
|
||||
fun reloadPreferences() {
|
||||
useTempDao = PreferencesUtil.isTempAdvancedUnlockEnable(applicationContext)
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
private fun attachService(performedAction: () -> Unit) {
|
||||
// Check if a service is currently running else do nothing
|
||||
if (mBinder != null) {
|
||||
private fun serviceActionTask(startService: Boolean = false, performedAction: () -> Unit) {
|
||||
// Check if a service is currently running else call action without info
|
||||
if (startService && mServiceConnection == null) {
|
||||
attachService(performedAction)
|
||||
} else {
|
||||
performedAction.invoke()
|
||||
} else if (mServiceConnection == null) {
|
||||
mServiceConnection = object : ServiceConnection {
|
||||
override fun onServiceConnected(name: ComponentName?, serviceBinder: IBinder?) {
|
||||
mBinder = (serviceBinder as AdvancedUnlockNotificationService.AdvancedUnlockBinder)
|
||||
performedAction.invoke()
|
||||
}
|
||||
|
||||
override fun onServiceDisconnected(name: ComponentName?) {
|
||||
mBinder = null
|
||||
mServiceConnection = null
|
||||
mDatabaseListeners.forEach {
|
||||
it.onDatabaseCleared()
|
||||
}
|
||||
}
|
||||
}
|
||||
applicationContext.bindService(mIntentAdvancedUnlockService,
|
||||
mServiceConnection!!,
|
||||
Context.BIND_ABOVE_CLIENT)
|
||||
if (mBinder == null) {
|
||||
try {
|
||||
applicationContext.startService(mIntentAdvancedUnlockService)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Unable to start cipher action", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun registerDatabaseListener(listener: DatabaseListener) {
|
||||
mDatabaseListeners.add(listener)
|
||||
@Synchronized
|
||||
private fun attachService(performedAction: () -> Unit) {
|
||||
applicationContext.registerReceiver(mAdvancedUnlockBroadcastReceiver, IntentFilter().apply {
|
||||
addAction(AdvancedUnlockNotificationService.REMOVE_ADVANCED_UNLOCK_KEY_ACTION)
|
||||
})
|
||||
|
||||
mServiceConnection = object : ServiceConnection {
|
||||
override fun onServiceConnected(name: ComponentName?, serviceBinder: IBinder?) {
|
||||
mBinder = (serviceBinder as AdvancedUnlockNotificationService.AdvancedUnlockBinder)
|
||||
performedAction.invoke()
|
||||
}
|
||||
|
||||
override fun onServiceDisconnected(name: ComponentName?) {
|
||||
onClear()
|
||||
}
|
||||
}
|
||||
try {
|
||||
AdvancedUnlockNotificationService.bindService(applicationContext,
|
||||
mServiceConnection!!,
|
||||
Context.BIND_AUTO_CREATE)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Unable to start cipher action", e)
|
||||
performedAction.invoke()
|
||||
}
|
||||
}
|
||||
|
||||
fun unregisterDatabaseListener(listener: DatabaseListener) {
|
||||
mDatabaseListeners.remove(listener)
|
||||
@Synchronized
|
||||
private fun detachService() {
|
||||
try {
|
||||
applicationContext.unregisterReceiver(mAdvancedUnlockBroadcastReceiver)
|
||||
} catch (e: Exception) {}
|
||||
|
||||
mServiceConnection?.let {
|
||||
AdvancedUnlockNotificationService.unbindService(applicationContext, it)
|
||||
}
|
||||
}
|
||||
|
||||
interface DatabaseListener {
|
||||
fun onDatabaseCleared()
|
||||
private fun removeAllDataAndDetach() {
|
||||
detachService()
|
||||
onClear()
|
||||
}
|
||||
|
||||
fun registerDatabaseListener(listenerCipher: CipherDatabaseListener) {
|
||||
mDatabaseListeners.add(listenerCipher)
|
||||
}
|
||||
|
||||
fun unregisterDatabaseListener(listenerCipher: CipherDatabaseListener) {
|
||||
mDatabaseListeners.remove(listenerCipher)
|
||||
}
|
||||
|
||||
private fun onClear() {
|
||||
mBinder = null
|
||||
mServiceConnection = null
|
||||
mDatabaseListeners.forEach {
|
||||
it.onCipherDatabaseCleared()
|
||||
}
|
||||
}
|
||||
|
||||
interface CipherDatabaseListener {
|
||||
fun onCipherDatabaseCleared()
|
||||
}
|
||||
|
||||
fun getCipherDatabase(databaseUri: Uri,
|
||||
cipherDatabaseResultListener: (CipherDatabaseEntity?) -> Unit) {
|
||||
if (useTempDao) {
|
||||
attachService {
|
||||
serviceActionTask {
|
||||
cipherDatabaseResultListener.invoke(mBinder?.getCipherDatabase(databaseUri))
|
||||
}
|
||||
} else {
|
||||
@@ -126,7 +152,8 @@ class CipherDatabaseAction(context: Context) {
|
||||
fun addOrUpdateCipherDatabase(cipherDatabaseEntity: CipherDatabaseEntity,
|
||||
cipherDatabaseResultListener: (() -> Unit)? = null) {
|
||||
if (useTempDao) {
|
||||
attachService {
|
||||
// The only case to create service (not needed to get an info)
|
||||
serviceActionTask(true) {
|
||||
mBinder?.addOrUpdateCipherDatabase(cipherDatabaseEntity)
|
||||
cipherDatabaseResultListener?.invoke()
|
||||
}
|
||||
@@ -151,7 +178,7 @@ class CipherDatabaseAction(context: Context) {
|
||||
fun deleteByDatabaseUri(databaseUri: Uri,
|
||||
cipherDatabaseResultListener: (() -> Unit)? = null) {
|
||||
if (useTempDao) {
|
||||
attachService {
|
||||
serviceActionTask {
|
||||
mBinder?.deleteByDatabaseUri(databaseUri)
|
||||
cipherDatabaseResultListener?.invoke()
|
||||
}
|
||||
@@ -168,14 +195,19 @@ class CipherDatabaseAction(context: Context) {
|
||||
}
|
||||
|
||||
fun deleteAll() {
|
||||
attachService {
|
||||
mBinder?.deleteAll()
|
||||
if (useTempDao) {
|
||||
serviceActionTask {
|
||||
mBinder?.deleteAll()
|
||||
}
|
||||
}
|
||||
// To erase the residues
|
||||
IOActionTask(
|
||||
{
|
||||
cipherDatabaseDao.deleteAll()
|
||||
}
|
||||
).execute()
|
||||
// Unbind
|
||||
removeAllDataAndDetach()
|
||||
}
|
||||
|
||||
companion object : SingletonHolderParameter<CipherDatabaseAction, Context>(::CipherDatabaseAction) {
|
||||
|
||||
@@ -223,9 +223,22 @@ class StructureParser(private val structure: AssistStructure) {
|
||||
usernameValueCandidate = node.autofillValue
|
||||
Log.d(TAG, "Autofill username candidate android text type: ${showHexInputType(inputType)}")
|
||||
}
|
||||
inputIsVariationType(inputType,
|
||||
InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD) -> {
|
||||
// Some forms used visible password as username
|
||||
if (usernameCandidate == null && usernameValueCandidate == null) {
|
||||
usernameCandidate = autofillId
|
||||
usernameValueCandidate = node.autofillValue
|
||||
Log.d(TAG, "Autofill visible password android text type (as username): ${showHexInputType(inputType)}")
|
||||
} else if (result?.passwordId == null && result?.passwordValue == null) {
|
||||
result?.passwordId = autofillId
|
||||
result?.passwordValue = node.autofillValue
|
||||
Log.d(TAG, "Autofill visible password android text type (as password): ${showHexInputType(inputType)}")
|
||||
usernameNeeded = false
|
||||
}
|
||||
}
|
||||
inputIsVariationType(inputType,
|
||||
InputType.TYPE_TEXT_VARIATION_PASSWORD,
|
||||
InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD,
|
||||
InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD) -> {
|
||||
result?.passwordId = autofillId
|
||||
result?.passwordValue = node.autofillValue
|
||||
|
||||
@@ -36,7 +36,6 @@ import com.kunzisoft.keepass.activities.stylish.StylishFragment
|
||||
import com.kunzisoft.keepass.app.database.CipherDatabaseAction
|
||||
import com.kunzisoft.keepass.database.exception.IODatabaseException
|
||||
import com.kunzisoft.keepass.education.PasswordActivityEducation
|
||||
import com.kunzisoft.keepass.services.AdvancedUnlockNotificationService
|
||||
import com.kunzisoft.keepass.settings.PreferencesUtil
|
||||
import com.kunzisoft.keepass.view.AdvancedUnlockInfoView
|
||||
|
||||
@@ -68,7 +67,7 @@ class AdvancedUnlockFragment: StylishFragment(), AdvancedUnlockManager.AdvancedU
|
||||
|
||||
private lateinit var cipherDatabaseAction : CipherDatabaseAction
|
||||
|
||||
private var cipherDatabaseListener: CipherDatabaseAction.DatabaseListener? = null
|
||||
private var cipherDatabaseListener: CipherDatabaseAction.CipherDatabaseListener? = null
|
||||
|
||||
// Only to fix multiple fingerprint menu #332
|
||||
private var mAllowAdvancedUnlockMenu = false
|
||||
@@ -402,9 +401,10 @@ class AdvancedUnlockFragment: StylishFragment(), AdvancedUnlockManager.AdvancedU
|
||||
fun connect(databaseUri: Uri) {
|
||||
showViews(true)
|
||||
this.databaseFileUri = databaseUri
|
||||
cipherDatabaseListener = object: CipherDatabaseAction.DatabaseListener {
|
||||
override fun onDatabaseCleared() {
|
||||
deleteEncryptedDatabaseKey()
|
||||
cipherDatabaseListener = object: CipherDatabaseAction.CipherDatabaseListener {
|
||||
override fun onCipherDatabaseCleared() {
|
||||
advancedUnlockManager?.closeBiometricPrompt()
|
||||
checkUnlockAvailability()
|
||||
}
|
||||
}
|
||||
cipherDatabaseAction.apply {
|
||||
@@ -435,14 +435,12 @@ class AdvancedUnlockFragment: StylishFragment(), AdvancedUnlockManager.AdvancedU
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.M)
|
||||
fun deleteEncryptedDatabaseKey() {
|
||||
allowOpenBiometricPrompt = false
|
||||
mAdvancedUnlockInfoView?.setIconViewClickListener(false, null)
|
||||
advancedUnlockManager?.closeBiometricPrompt()
|
||||
databaseFileUri?.let { databaseUri ->
|
||||
cipherDatabaseAction.deleteByDatabaseUri(databaseUri) {
|
||||
checkUnlockAvailability()
|
||||
}
|
||||
}
|
||||
} ?: checkUnlockAvailability()
|
||||
}
|
||||
|
||||
override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {
|
||||
@@ -479,7 +477,6 @@ class AdvancedUnlockFragment: StylishFragment(), AdvancedUnlockManager.AdvancedU
|
||||
mBuilderListener?.retrieveCredentialForEncryption()?.let { credential ->
|
||||
advancedUnlockManager?.encryptData(credential)
|
||||
}
|
||||
AdvancedUnlockNotificationService.startServiceForTimeout(requireContext())
|
||||
}
|
||||
Mode.EXTRACT_CREDENTIAL -> {
|
||||
// retrieve the encrypted value from preferences
|
||||
|
||||
@@ -24,7 +24,7 @@ import android.util.Log
|
||||
import com.kunzisoft.keepass.database.element.*
|
||||
import com.kunzisoft.keepass.database.element.node.Node
|
||||
import com.kunzisoft.keepass.database.element.node.Type
|
||||
import com.kunzisoft.keepass.database.exception.EntryDatabaseException
|
||||
import com.kunzisoft.keepass.database.exception.MoveEntryDatabaseException
|
||||
import com.kunzisoft.keepass.database.exception.MoveGroupDatabaseException
|
||||
|
||||
class MoveNodesRunnable constructor(
|
||||
@@ -47,8 +47,10 @@ class MoveNodesRunnable constructor(
|
||||
when (nodeToMove.type) {
|
||||
Type.GROUP -> {
|
||||
val groupToMove = nodeToMove as Group
|
||||
// Move group in new parent if not in the current group
|
||||
if (groupToMove != mNewParent
|
||||
// Move group if the parent change
|
||||
if (mOldParent != mNewParent
|
||||
// and if not in the current group
|
||||
&& groupToMove != mNewParent
|
||||
&& !mNewParent.isContainedIn(groupToMove)) {
|
||||
nodeToMove.touch(modified = true, touchParents = true)
|
||||
database.moveGroupTo(groupToMove, mNewParent)
|
||||
@@ -68,7 +70,7 @@ class MoveNodesRunnable constructor(
|
||||
database.moveEntryTo(entryToMove, mNewParent)
|
||||
} else {
|
||||
// Only finish thread
|
||||
setError(EntryDatabaseException())
|
||||
setError(MoveEntryDatabaseException())
|
||||
break@foreachNode
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ import android.content.ContentResolver
|
||||
import android.content.res.Resources
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import com.kunzisoft.keepass.utils.readBytes4ToUInt
|
||||
import com.kunzisoft.keepass.database.action.node.NodeHandler
|
||||
import com.kunzisoft.keepass.database.crypto.EncryptionAlgorithm
|
||||
import com.kunzisoft.keepass.database.crypto.kdf.KdfEngine
|
||||
@@ -55,6 +54,7 @@ import com.kunzisoft.keepass.model.MainCredential
|
||||
import com.kunzisoft.keepass.tasks.ProgressTaskUpdater
|
||||
import com.kunzisoft.keepass.utils.SingletonHolder
|
||||
import com.kunzisoft.keepass.utils.UriUtil
|
||||
import com.kunzisoft.keepass.utils.readBytes4ToUInt
|
||||
import java.io.*
|
||||
import java.util.*
|
||||
import kotlin.collections.ArrayList
|
||||
@@ -359,15 +359,10 @@ class Database {
|
||||
return null
|
||||
}
|
||||
|
||||
fun ensureRecycleBinExists(resources: Resources) {
|
||||
mDatabaseKDB?.ensureBackupExists()
|
||||
mDatabaseKDBX?.ensureRecycleBinExists(resources)
|
||||
}
|
||||
|
||||
fun removeRecycleBin() {
|
||||
// Don't allow remove backup in KDB
|
||||
mDatabaseKDBX?.removeRecycleBin()
|
||||
}
|
||||
val groupNamesNotAllowed: List<String>
|
||||
get() {
|
||||
return mDatabaseKDB?.groupNamesNotAllowed ?: ArrayList()
|
||||
}
|
||||
|
||||
private fun setDatabaseKDB(databaseKDB: DatabaseKDB) {
|
||||
this.mDatabaseKDB = databaseKDB
|
||||
@@ -542,25 +537,27 @@ class Database {
|
||||
omitBackup: Boolean,
|
||||
max: Int = Integer.MAX_VALUE): Group? {
|
||||
return mSearchHelper?.createVirtualGroupWithSearchResult(this,
|
||||
searchQuery, SearchParameters(), omitBackup, max)
|
||||
SearchParameters().apply {
|
||||
this.searchQuery = searchQuery
|
||||
}, omitBackup, max)
|
||||
}
|
||||
|
||||
fun createVirtualGroupFromSearchInfo(searchInfoString: String,
|
||||
omitBackup: Boolean,
|
||||
max: Int = Integer.MAX_VALUE): Group? {
|
||||
return mSearchHelper?.createVirtualGroupWithSearchResult(this,
|
||||
searchInfoString, SearchParameters().apply {
|
||||
searchInTitles = true
|
||||
searchInUserNames = false
|
||||
searchInPasswords = false
|
||||
searchInUrls = true
|
||||
searchInNotes = true
|
||||
searchInOTP = false
|
||||
searchInOther = true
|
||||
searchInUUIDs = false
|
||||
searchInTags = false
|
||||
ignoreCase = true
|
||||
}, omitBackup, max)
|
||||
SearchParameters().apply {
|
||||
searchQuery = searchInfoString
|
||||
searchInTitles = true
|
||||
searchInUserNames = false
|
||||
searchInPasswords = false
|
||||
searchInUrls = true
|
||||
searchInNotes = true
|
||||
searchInOTP = false
|
||||
searchInOther = true
|
||||
searchInUUIDs = false
|
||||
searchInTags = false
|
||||
}, omitBackup, max)
|
||||
}
|
||||
|
||||
val attachmentPool: AttachmentPool
|
||||
@@ -790,11 +787,11 @@ class Database {
|
||||
}
|
||||
|
||||
fun addGroupTo(group: Group, parent: Group) {
|
||||
group.groupKDB?.let { entryKDB ->
|
||||
mDatabaseKDB?.addGroupTo(entryKDB, parent.groupKDB)
|
||||
group.groupKDB?.let { groupKDB ->
|
||||
mDatabaseKDB?.addGroupTo(groupKDB, parent.groupKDB)
|
||||
}
|
||||
group.groupKDBX?.let { entryKDBX ->
|
||||
mDatabaseKDBX?.addGroupTo(entryKDBX, parent.groupKDBX)
|
||||
group.groupKDBX?.let { groupKDBX ->
|
||||
mDatabaseKDBX?.addGroupTo(groupKDBX, parent.groupKDBX)
|
||||
}
|
||||
group.afterAssignNewParent()
|
||||
}
|
||||
@@ -809,11 +806,11 @@ class Database {
|
||||
}
|
||||
|
||||
fun removeGroupFrom(group: Group, parent: Group) {
|
||||
group.groupKDB?.let { entryKDB ->
|
||||
mDatabaseKDB?.removeGroupFrom(entryKDB, parent.groupKDB)
|
||||
group.groupKDB?.let { groupKDB ->
|
||||
mDatabaseKDB?.removeGroupFrom(groupKDB, parent.groupKDB)
|
||||
}
|
||||
group.groupKDBX?.let { entryKDBX ->
|
||||
mDatabaseKDBX?.removeGroupFrom(entryKDBX, parent.groupKDBX)
|
||||
group.groupKDBX?.let { groupKDBX ->
|
||||
mDatabaseKDBX?.removeGroupFrom(groupKDBX, parent.groupKDBX)
|
||||
}
|
||||
group.afterAssignNewParent()
|
||||
}
|
||||
@@ -888,6 +885,16 @@ class Database {
|
||||
}
|
||||
}
|
||||
|
||||
fun ensureRecycleBinExists(resources: Resources) {
|
||||
mDatabaseKDB?.ensureBackupExists()
|
||||
mDatabaseKDBX?.ensureRecycleBinExists(resources)
|
||||
}
|
||||
|
||||
fun removeRecycleBin() {
|
||||
// Don't allow remove backup in KDB
|
||||
mDatabaseKDBX?.removeRecycleBin()
|
||||
}
|
||||
|
||||
fun canRecycle(entry: Entry): Boolean {
|
||||
var canRecycle: Boolean? = null
|
||||
entry.entryKDB?.let {
|
||||
|
||||
@@ -368,14 +368,6 @@ class Group : Node, GroupVersionedInterface<Group, Entry> {
|
||||
groupKDB?.nodeId = id
|
||||
}
|
||||
|
||||
fun getLevel(): Int {
|
||||
return groupKDB?.level ?: -1
|
||||
}
|
||||
|
||||
fun setLevel(level: Int) {
|
||||
groupKDB?.level = level
|
||||
}
|
||||
|
||||
/*
|
||||
------------
|
||||
KDBX Methods
|
||||
|
||||
@@ -38,8 +38,6 @@ import kotlin.collections.ArrayList
|
||||
|
||||
class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
|
||||
private var backupGroupId: Int = BACKUP_FOLDER_UNDEFINED_ID
|
||||
|
||||
private var kdfListV3: MutableList<KdfEngine> = ArrayList()
|
||||
|
||||
override val version: String
|
||||
@@ -55,13 +53,14 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
return getGroupById(NodeIdInt(groupId))
|
||||
}
|
||||
|
||||
// Retrieve backup group in index
|
||||
val backupGroup: GroupKDB?
|
||||
get() {
|
||||
return if (backupGroupId == BACKUP_FOLDER_UNDEFINED_ID)
|
||||
null
|
||||
else
|
||||
getGroupById(backupGroupId)
|
||||
return retrieveBackup()
|
||||
}
|
||||
|
||||
val groupNamesNotAllowed: List<String>
|
||||
get() {
|
||||
return listOf(BACKUP_FOLDER_TITLE)
|
||||
}
|
||||
|
||||
override val kdfEngine: KdfEngine
|
||||
@@ -80,12 +79,7 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
|
||||
val rootGroups: List<GroupKDB>
|
||||
get() {
|
||||
val kids = ArrayList<GroupKDB>()
|
||||
doForEachGroupInIndex { group ->
|
||||
if (group.level == 0)
|
||||
kids.add(group)
|
||||
}
|
||||
return kids
|
||||
return rootGroup?.getChildGroups() ?: ArrayList()
|
||||
}
|
||||
|
||||
override val passwordEncoding: String
|
||||
@@ -169,21 +163,14 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
|
||||
override fun isInRecycleBin(group: GroupKDB): Boolean {
|
||||
var currentGroup: GroupKDB? = group
|
||||
val currentBackupGroup = backupGroup ?: return false
|
||||
|
||||
// Init backup group variable
|
||||
if (backupGroupId == BACKUP_FOLDER_UNDEFINED_ID)
|
||||
findBackupGroupId()
|
||||
|
||||
if (backupGroup == null)
|
||||
return false
|
||||
|
||||
if (currentGroup == backupGroup)
|
||||
if (currentGroup == currentBackupGroup)
|
||||
return true
|
||||
|
||||
val backupGroupId = currentBackupGroup.id
|
||||
while (currentGroup != null) {
|
||||
if (currentGroup.level == 0
|
||||
&& currentGroup.title.equals(BACKUP_FOLDER_TITLE, ignoreCase = true)) {
|
||||
backupGroupId = currentGroup.id
|
||||
if (backupGroupId == currentGroup.id) {
|
||||
return true
|
||||
}
|
||||
currentGroup = currentGroup.parent
|
||||
@@ -191,12 +178,12 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
return false
|
||||
}
|
||||
|
||||
private fun findBackupGroupId() {
|
||||
rootGroups.forEach { currentGroup ->
|
||||
if (currentGroup.level == 0
|
||||
&& currentGroup.title.equals(BACKUP_FOLDER_TITLE, ignoreCase = true)) {
|
||||
backupGroupId = currentGroup.id
|
||||
}
|
||||
/**
|
||||
* Retrieve backup group with his name
|
||||
*/
|
||||
private fun retrieveBackup(): GroupKDB? {
|
||||
return rootGroup?.searchChildGroup {
|
||||
it.title.equals(BACKUP_FOLDER_TITLE, ignoreCase = true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,8 +192,6 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
* if it doesn't exist
|
||||
*/
|
||||
fun ensureBackupExists() {
|
||||
findBackupGroupId()
|
||||
|
||||
if (backupGroup == null) {
|
||||
// Create recycle bin
|
||||
val recycleBinGroup = createGroup().apply {
|
||||
@@ -214,7 +199,6 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
icon.standard = getStandardIcon(IconImageStandard.TRASH_ID)
|
||||
}
|
||||
addGroupTo(recycleBinGroup, rootGroup)
|
||||
backupGroupId = recycleBinGroup.id
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,6 +252,5 @@ class DatabaseKDB : DatabaseVersioned<Int, UUID, GroupKDB, EntryKDB>() {
|
||||
val TYPE = DatabaseKDB::class.java
|
||||
|
||||
const val BACKUP_FOLDER_TITLE = "Backup"
|
||||
private const val BACKUP_FOLDER_UNDEFINED_ID = -1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,8 +23,6 @@ import android.content.res.Resources
|
||||
import android.util.Base64
|
||||
import android.util.Log
|
||||
import com.kunzisoft.encrypt.HashManager
|
||||
import com.kunzisoft.keepass.utils.UnsignedInt
|
||||
import com.kunzisoft.keepass.utils.longTo8Bytes
|
||||
import com.kunzisoft.keepass.R
|
||||
import com.kunzisoft.keepass.database.action.node.NodeHandler
|
||||
import com.kunzisoft.keepass.database.crypto.AesEngine
|
||||
@@ -39,6 +37,7 @@ import com.kunzisoft.keepass.database.element.DeletedObject
|
||||
import com.kunzisoft.keepass.database.element.binary.BinaryData
|
||||
import com.kunzisoft.keepass.database.element.database.DatabaseKDB.Companion.BACKUP_FOLDER_TITLE
|
||||
import com.kunzisoft.keepass.database.element.entry.EntryKDBX
|
||||
import com.kunzisoft.keepass.database.element.entry.FieldReferencesEngine
|
||||
import com.kunzisoft.keepass.database.element.group.GroupKDBX
|
||||
import com.kunzisoft.keepass.database.element.icon.IconImageCustom
|
||||
import com.kunzisoft.keepass.database.element.icon.IconImageStandard
|
||||
@@ -50,6 +49,8 @@ import com.kunzisoft.keepass.database.file.DatabaseHeaderKDBX.Companion.FILE_VER
|
||||
import com.kunzisoft.keepass.database.file.DatabaseHeaderKDBX.Companion.FILE_VERSION_32_4
|
||||
import com.kunzisoft.keepass.utils.StringUtil.removeSpaceChars
|
||||
import com.kunzisoft.keepass.utils.StringUtil.toHexString
|
||||
import com.kunzisoft.keepass.utils.UnsignedInt
|
||||
import com.kunzisoft.keepass.utils.longTo8Bytes
|
||||
import org.apache.commons.codec.binary.Hex
|
||||
import org.w3c.dom.Node
|
||||
import java.io.IOException
|
||||
@@ -75,6 +76,7 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
private var kdfList: MutableList<KdfEngine> = ArrayList()
|
||||
private var numKeyEncRounds: Long = 0
|
||||
var publicCustomData = VariantDictionary()
|
||||
private val mFieldReferenceEngine = FieldReferencesEngine(this)
|
||||
|
||||
var kdbxVersion = UnsignedInt(0)
|
||||
var name = ""
|
||||
@@ -132,7 +134,6 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
icon.standard = getStandardIcon(IconImageStandard.FOLDER_ID)
|
||||
}
|
||||
rootGroup = group
|
||||
addGroupIndex(group)
|
||||
}
|
||||
|
||||
override val version: String
|
||||
@@ -334,6 +335,19 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
return customData.isNotEmpty()
|
||||
}
|
||||
|
||||
fun getEntryByCustomData(customDataValue: String): EntryKDBX? {
|
||||
return entryIndexes.values.find { entry ->
|
||||
entry.customData.containsValue(customDataValue)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the value of a field reference
|
||||
*/
|
||||
fun getFieldReferenceValue(textReference: String, recursionLevel: Int): String {
|
||||
return mFieldReferenceEngine.compile(textReference, recursionLevel)
|
||||
}
|
||||
|
||||
@Throws(IOException::class)
|
||||
public override fun getMasterKey(key: String?, keyInputStream: InputStream?): ByteArray {
|
||||
|
||||
@@ -615,6 +629,9 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
return false
|
||||
if (recycleBin == null)
|
||||
return false
|
||||
if (node is GroupKDBX
|
||||
&& recycleBin!!.isContainedIn(node))
|
||||
return false
|
||||
if (!node.isContainedIn(recycleBin!!))
|
||||
return true
|
||||
return false
|
||||
@@ -652,9 +669,20 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
this.deletedObjects.add(deletedObject)
|
||||
}
|
||||
|
||||
override fun addEntryTo(newEntry: EntryKDBX, parent: GroupKDBX?) {
|
||||
super.addEntryTo(newEntry, parent)
|
||||
mFieldReferenceEngine.clear()
|
||||
}
|
||||
|
||||
override fun updateEntry(entry: EntryKDBX) {
|
||||
super.updateEntry(entry)
|
||||
mFieldReferenceEngine.clear()
|
||||
}
|
||||
|
||||
override fun removeEntryFrom(entryToRemove: EntryKDBX, parent: GroupKDBX?) {
|
||||
super.removeEntryFrom(entryToRemove, parent)
|
||||
deletedObjects.add(DeletedObject(entryToRemove.id))
|
||||
mFieldReferenceEngine.clear()
|
||||
}
|
||||
|
||||
override fun undoDeleteEntryFrom(entry: EntryKDBX, origParent: GroupKDBX?) {
|
||||
@@ -725,6 +753,7 @@ class DatabaseKDBX : DatabaseVersioned<UUID, UUID, GroupKDBX, EntryKDBX> {
|
||||
override fun clearCache() {
|
||||
try {
|
||||
super.clearCache()
|
||||
mFieldReferenceEngine.clear()
|
||||
attachmentPool.clear()
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Unable to clear cache", e)
|
||||
|
||||
@@ -35,7 +35,6 @@ import java.io.ByteArrayInputStream
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
import java.io.UnsupportedEncodingException
|
||||
import java.security.MessageDigest
|
||||
import java.util.*
|
||||
|
||||
abstract class DatabaseVersioned<
|
||||
@@ -68,7 +67,7 @@ abstract class DatabaseVersioned<
|
||||
var changeDuplicateId = false
|
||||
|
||||
private var groupIndexes = LinkedHashMap<NodeId<GroupId>, Group>()
|
||||
private var entryIndexes = LinkedHashMap<NodeId<EntryId>, Entry>()
|
||||
protected var entryIndexes = LinkedHashMap<NodeId<EntryId>, Entry>()
|
||||
|
||||
abstract val version: String
|
||||
|
||||
@@ -87,6 +86,12 @@ abstract class DatabaseVersioned<
|
||||
abstract val availableEncryptionAlgorithms: List<EncryptionAlgorithm>
|
||||
|
||||
var rootGroup: Group? = null
|
||||
set(value) {
|
||||
field = value
|
||||
value?.let {
|
||||
addGroupIndex(it)
|
||||
}
|
||||
}
|
||||
|
||||
@Throws(IOException::class)
|
||||
protected abstract fun getMasterKey(key: String?, keyInputStream: InputStream?): ByteArray
|
||||
@@ -266,6 +271,26 @@ abstract class DatabaseVersioned<
|
||||
return this.entryIndexes[id]
|
||||
}
|
||||
|
||||
fun getEntryByTitle(title: String): Entry? {
|
||||
return this.entryIndexes.values.find { entry -> entry.title.equals(title, true) }
|
||||
}
|
||||
|
||||
fun getEntryByUsername(username: String): Entry? {
|
||||
return this.entryIndexes.values.find { entry -> entry.username.equals(username, true) }
|
||||
}
|
||||
|
||||
fun getEntryByURL(url: String): Entry? {
|
||||
return this.entryIndexes.values.find { entry -> entry.url.equals(url, true) }
|
||||
}
|
||||
|
||||
fun getEntryByPassword(password: String): Entry? {
|
||||
return this.entryIndexes.values.find { entry -> entry.password.equals(password, true) }
|
||||
}
|
||||
|
||||
fun getEntryByNotes(notes: String): Entry? {
|
||||
return this.entryIndexes.values.find { entry -> entry.notes.equals(notes, true) }
|
||||
}
|
||||
|
||||
fun addEntryIndex(entry: Entry) {
|
||||
val entryId = entry.nodeId
|
||||
if (entryIndexes.containsKey(entryId)) {
|
||||
@@ -331,14 +356,14 @@ abstract class DatabaseVersioned<
|
||||
removeGroupIndex(groupToRemove)
|
||||
}
|
||||
|
||||
fun addEntryTo(newEntry: Entry, parent: Group?) {
|
||||
open fun addEntryTo(newEntry: Entry, parent: Group?) {
|
||||
// Add entry to parent
|
||||
parent?.addChildEntry(newEntry)
|
||||
newEntry.parent = parent
|
||||
addEntryIndex(newEntry)
|
||||
}
|
||||
|
||||
fun updateEntry(entry: Entry) {
|
||||
open fun updateEntry(entry: Entry) {
|
||||
updateEntryIndex(entry)
|
||||
}
|
||||
|
||||
|
||||
@@ -146,53 +146,73 @@ class EntryKDBX : EntryVersioned<UUID, UUID, GroupKDBX, EntryKDBX>, NodeKDBXInte
|
||||
return NodeIdUUID(nodeId.id)
|
||||
}
|
||||
|
||||
override val type: Type
|
||||
get() = Type.ENTRY
|
||||
|
||||
/**
|
||||
* Decode a reference key with the FieldReferencesEngine
|
||||
* @param decodeRef
|
||||
* @param key
|
||||
* @return
|
||||
*/
|
||||
private fun decodeRefKey(decodeRef: Boolean, key: String): String {
|
||||
private fun decodeRefKey(decodeRef: Boolean, key: String, recursionLevel: Int): String {
|
||||
return fields[key]?.toString()?.let { text ->
|
||||
return if (decodeRef) {
|
||||
if (mDatabase == null) text else FieldReferencesEngine().compile(text, this, mDatabase!!)
|
||||
mDatabase?.getFieldReferenceValue(text, recursionLevel) ?: text
|
||||
} else text
|
||||
} ?: ""
|
||||
}
|
||||
|
||||
fun decodeTitleKey(recursionLevel: Int): String {
|
||||
return decodeRefKey(mDecodeRef, STR_TITLE, recursionLevel)
|
||||
}
|
||||
|
||||
override var title: String
|
||||
get() = decodeRefKey(mDecodeRef, STR_TITLE)
|
||||
get() = decodeTitleKey(0)
|
||||
set(value) {
|
||||
val protect = mDatabase != null && mDatabase!!.memoryProtection.protectTitle
|
||||
fields[STR_TITLE] = ProtectedString(protect, value)
|
||||
}
|
||||
|
||||
override val type: Type
|
||||
get() = Type.ENTRY
|
||||
fun decodeUsernameKey(recursionLevel: Int): String {
|
||||
return decodeRefKey(mDecodeRef, STR_USERNAME, recursionLevel)
|
||||
}
|
||||
|
||||
override var username: String
|
||||
get() = decodeRefKey(mDecodeRef, STR_USERNAME)
|
||||
get() = decodeUsernameKey(0)
|
||||
set(value) {
|
||||
val protect = mDatabase != null && mDatabase!!.memoryProtection.protectUserName
|
||||
fields[STR_USERNAME] = ProtectedString(protect, value)
|
||||
}
|
||||
|
||||
fun decodePasswordKey(recursionLevel: Int): String {
|
||||
return decodeRefKey(mDecodeRef, STR_PASSWORD, recursionLevel)
|
||||
}
|
||||
|
||||
override var password: String
|
||||
get() = decodeRefKey(mDecodeRef, STR_PASSWORD)
|
||||
get() = decodePasswordKey(0)
|
||||
set(value) {
|
||||
val protect = mDatabase != null && mDatabase!!.memoryProtection.protectPassword
|
||||
fields[STR_PASSWORD] = ProtectedString(protect, value)
|
||||
}
|
||||
|
||||
fun decodeUrlKey(recursionLevel: Int): String {
|
||||
return decodeRefKey(mDecodeRef, STR_URL, recursionLevel)
|
||||
}
|
||||
|
||||
override var url
|
||||
get() = decodeRefKey(mDecodeRef, STR_URL)
|
||||
get() = decodeUrlKey(0)
|
||||
set(value) {
|
||||
val protect = mDatabase != null && mDatabase!!.memoryProtection.protectUrl
|
||||
fields[STR_URL] = ProtectedString(protect, value)
|
||||
}
|
||||
|
||||
fun decodeNotesKey(recursionLevel: Int): String {
|
||||
return decodeRefKey(mDecodeRef, STR_NOTES, recursionLevel)
|
||||
}
|
||||
|
||||
override var notes: String
|
||||
get() = decodeRefKey(mDecodeRef, STR_NOTES)
|
||||
get() = decodeNotesKey(0)
|
||||
set(value) {
|
||||
val protect = mDatabase != null && mDatabase!!.memoryProtection.protectNotes
|
||||
fields[STR_NOTES] = ProtectedString(protect, value)
|
||||
@@ -245,7 +265,7 @@ class EntryKDBX : EntryVersioned<UUID, UUID, GroupKDBX, EntryKDBX>, NodeKDBXInte
|
||||
field.clear()
|
||||
for ((key, value) in fields) {
|
||||
if (!isStandardField(key)) {
|
||||
field[key] = ProtectedString(value.isProtected, decodeRefKey(mDecodeRef, key))
|
||||
field[key] = ProtectedString(value.isProtected, decodeRefKey(mDecodeRef, key, 0))
|
||||
}
|
||||
}
|
||||
return field
|
||||
|
||||
@@ -20,267 +20,123 @@
|
||||
package com.kunzisoft.keepass.database.element.entry
|
||||
|
||||
import com.kunzisoft.keepass.database.element.database.DatabaseKDBX
|
||||
import com.kunzisoft.keepass.database.element.group.GroupKDBX
|
||||
import com.kunzisoft.keepass.database.search.EntryKDBXSearchHandler
|
||||
import com.kunzisoft.keepass.database.search.SearchParameters
|
||||
import com.kunzisoft.keepass.database.element.node.NodeIdUUID
|
||||
import com.kunzisoft.keepass.utils.UuidUtil
|
||||
import java.util.*
|
||||
|
||||
class FieldReferencesEngine {
|
||||
class FieldReferencesEngine(private val mDatabase: DatabaseKDBX) {
|
||||
|
||||
inner class TargetResult(var entry: EntryKDBX?, var wanted: Char)
|
||||
// Key : <WantedField>@<SearchIn>:<Text>
|
||||
// Value : content
|
||||
private var refsCache: MutableMap<String, String?> = HashMap()
|
||||
|
||||
private inner class SprContextV4 {
|
||||
|
||||
var databaseV4: DatabaseKDBX? = null
|
||||
var entry: EntryKDBX
|
||||
var refsCache: MutableMap<String, String> = HashMap()
|
||||
|
||||
internal constructor(db: DatabaseKDBX, entry: EntryKDBX) {
|
||||
this.databaseV4 = db
|
||||
this.entry = entry
|
||||
}
|
||||
|
||||
internal constructor(source: SprContextV4) {
|
||||
this.databaseV4 = source.databaseV4
|
||||
this.entry = source.entry
|
||||
this.refsCache = source.refsCache
|
||||
}
|
||||
fun clear() {
|
||||
refsCache.clear()
|
||||
}
|
||||
|
||||
fun compile(text: String, entry: EntryKDBX, database: DatabaseKDBX): String {
|
||||
return compileInternal(text, SprContextV4(database, entry), 0)
|
||||
}
|
||||
|
||||
private fun compileInternal(text: String?, sprContextV4: SprContextV4?, recursionLevel: Int): String {
|
||||
if (text == null) {
|
||||
return ""
|
||||
}
|
||||
if (sprContextV4 == null) {
|
||||
return ""
|
||||
}
|
||||
fun compile(textReference: String, recursionLevel: Int): String {
|
||||
return if (recursionLevel >= MAX_RECURSION_DEPTH) {
|
||||
""
|
||||
} else fillRefPlaceholders(text, sprContextV4, recursionLevel)
|
||||
|
||||
} else
|
||||
fillReferencesPlaceholders(textReference, recursionLevel)
|
||||
}
|
||||
|
||||
private fun fillRefPlaceholders(textReference: String, contextV4: SprContextV4, recursionLevel: Int): String {
|
||||
var text = textReference
|
||||
|
||||
if (contextV4.databaseV4 == null) {
|
||||
return text
|
||||
}
|
||||
/**
|
||||
* Manage placeholders with {REF:<WantedField>@<SearchIn>:<Text>}
|
||||
*/
|
||||
private fun fillReferencesPlaceholders(textReference: String, recursionLevel: Int): String {
|
||||
var textValue = textReference
|
||||
|
||||
var offset = 0
|
||||
for (i in 0..19) {
|
||||
text = fillRefsUsingCache(text, contextV4)
|
||||
var numberInlineRef = 0
|
||||
while (textValue.contains(STR_REF_START)
|
||||
&& numberInlineRef <= MAX_INLINE_REF) {
|
||||
numberInlineRef++
|
||||
|
||||
val start = text.indexOf(STR_REF_START, offset, true)
|
||||
textValue = fillReferencesUsingCache(textValue)
|
||||
|
||||
val start = textValue.indexOf(STR_REF_START, offset, true)
|
||||
if (start < 0) {
|
||||
break
|
||||
}
|
||||
val end = text.indexOf(STR_REF_END, start + 1, true)
|
||||
val end = textValue.indexOf(STR_REF_END, offset, true)
|
||||
if (end <= start) {
|
||||
break
|
||||
}
|
||||
|
||||
val fullRef = text.substring(start, end + 1)
|
||||
val result = findRefTarget(fullRef, contextV4)
|
||||
val reference = textValue.substring(start + STR_REF_START.length, end)
|
||||
val fullReference = "$STR_REF_START$reference$STR_REF_END"
|
||||
|
||||
if (result != null) {
|
||||
val found = result.entry
|
||||
found?.stopToManageFieldReferences()
|
||||
val wanted = result.wanted
|
||||
|
||||
var data: String? = null
|
||||
when (wanted) {
|
||||
'T' -> data = found?.title
|
||||
'U' -> data = found?.username
|
||||
'A' -> data = found?.url
|
||||
'P' -> data = found?.password
|
||||
'N' -> data = found?.notes
|
||||
'I' -> data = found?.nodeId.toString()
|
||||
}
|
||||
|
||||
if (data != null && found != null) {
|
||||
val subCtx = SprContextV4(contextV4)
|
||||
subCtx.entry = found
|
||||
|
||||
val innerContent = compileInternal(data, subCtx, recursionLevel + 1)
|
||||
addRefsToCache(fullRef, innerContent, contextV4)
|
||||
text = fillRefsUsingCache(text, contextV4)
|
||||
} else {
|
||||
offset = start + 1
|
||||
if (!refsCache.containsKey(fullReference)) {
|
||||
val result = findReferenceTarget(reference)
|
||||
val entryFound = result.entry
|
||||
val newRecursionLevel = recursionLevel + 1
|
||||
val data: String? = when (result.wanted) {
|
||||
'T' -> entryFound?.decodeTitleKey(newRecursionLevel)
|
||||
'U' -> entryFound?.decodeUsernameKey(newRecursionLevel)
|
||||
'A' -> entryFound?.decodeUrlKey(newRecursionLevel)
|
||||
'P' -> entryFound?.decodePasswordKey(newRecursionLevel)
|
||||
'N' -> entryFound?.decodeNotesKey(newRecursionLevel)
|
||||
'I' -> UuidUtil.toHexString(entryFound?.nodeId?.id)
|
||||
else -> null
|
||||
}
|
||||
refsCache[fullReference] = data
|
||||
textValue = fillReferencesUsingCache(textValue)
|
||||
}
|
||||
|
||||
offset = end
|
||||
}
|
||||
|
||||
return text
|
||||
return textValue
|
||||
}
|
||||
|
||||
private fun findRefTarget(fullReference: String?, contextV4: SprContextV4): TargetResult? {
|
||||
var fullRef: String? = fullReference ?: return null
|
||||
|
||||
fullRef = fullRef!!.toUpperCase(Locale.ENGLISH)
|
||||
if (!fullRef.startsWith(STR_REF_START) || !fullRef.endsWith(STR_REF_END)) {
|
||||
return null
|
||||
}
|
||||
|
||||
val ref = fullRef.substring(STR_REF_START.length, fullRef.length - STR_REF_END.length)
|
||||
if (ref.length <= 4) {
|
||||
return null
|
||||
}
|
||||
if (ref[1] != '@') {
|
||||
return null
|
||||
}
|
||||
if (ref[3] != ':') {
|
||||
return null
|
||||
}
|
||||
|
||||
val scan = Character.toUpperCase(ref[2])
|
||||
val wanted = Character.toUpperCase(ref[0])
|
||||
|
||||
val searchParameters = SearchParameters()
|
||||
searchParameters.setupNone()
|
||||
|
||||
searchParameters.searchString = ref.substring(4)
|
||||
when (scan) {
|
||||
'T' -> searchParameters.searchInTitles = true
|
||||
'U' -> searchParameters.searchInUserNames = true
|
||||
'A' -> searchParameters.searchInUrls = true
|
||||
'P' -> searchParameters.searchInPasswords = true
|
||||
'N' -> searchParameters.searchInNotes = true
|
||||
'I' -> searchParameters.searchInUUIDs = true
|
||||
'O' -> searchParameters.searchInOther = true
|
||||
else -> return null
|
||||
}
|
||||
|
||||
val list = ArrayList<EntryKDBX>()
|
||||
searchEntries(contextV4.databaseV4?.rootGroup, searchParameters, list)
|
||||
|
||||
return if (list.size > 0) {
|
||||
TargetResult(list[0], wanted)
|
||||
} else null
|
||||
|
||||
}
|
||||
|
||||
private fun addRefsToCache(ref: String?, value: String?, ctx: SprContextV4?) {
|
||||
if (ref == null) {
|
||||
return
|
||||
}
|
||||
if (value == null) {
|
||||
return
|
||||
}
|
||||
if (ctx == null) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!ctx.refsCache.containsKey(ref)) {
|
||||
ctx.refsCache[ref] = value
|
||||
}
|
||||
}
|
||||
|
||||
private fun fillRefsUsingCache(text: String, sprContextV4: SprContextV4): String {
|
||||
private fun fillReferencesUsingCache(text: String): String {
|
||||
var newText = text
|
||||
for ((key, value) in sprContextV4.refsCache) {
|
||||
newText = text.replace(key, value, true)
|
||||
for ((key, value) in refsCache) {
|
||||
// Replace by key if value not found
|
||||
newText = newText.replace(key, value ?: key, true)
|
||||
}
|
||||
return newText
|
||||
}
|
||||
|
||||
private fun searchEntries(root: GroupKDBX?, searchParameters: SearchParameters?, listStorage: MutableList<EntryKDBX>?) {
|
||||
if (searchParameters == null) {
|
||||
return
|
||||
private fun findReferenceTarget(reference: String): TargetResult {
|
||||
|
||||
val targetResult = TargetResult(null, 'J')
|
||||
|
||||
if (reference.length <= 4) {
|
||||
return targetResult
|
||||
}
|
||||
if (listStorage == null) {
|
||||
return
|
||||
if (reference[1] != '@') {
|
||||
return targetResult
|
||||
}
|
||||
if (reference[3] != ':') {
|
||||
return targetResult
|
||||
}
|
||||
|
||||
val terms = splitStringTerms(searchParameters.searchString)
|
||||
if (terms.size <= 1 || searchParameters.regularExpression) {
|
||||
root!!.doForEachChild(EntryKDBXSearchHandler(searchParameters, listStorage), null)
|
||||
return
|
||||
}
|
||||
|
||||
// Search longest term first
|
||||
val stringLengthComparator = Comparator<String> { lhs, rhs -> lhs.length - rhs.length }
|
||||
Collections.sort(terms, stringLengthComparator)
|
||||
|
||||
val fullSearch = searchParameters.searchString
|
||||
var childEntries: List<EntryKDBX>? = root!!.getChildEntries()
|
||||
for (i in terms.indices) {
|
||||
val pgNew = ArrayList<EntryKDBX>()
|
||||
|
||||
searchParameters.searchString = terms[i]
|
||||
|
||||
var negate = false
|
||||
if (searchParameters.searchString.startsWith("-")) {
|
||||
searchParameters.searchString = searchParameters.searchString.substring(1)
|
||||
negate = searchParameters.searchString.isNotEmpty()
|
||||
}
|
||||
|
||||
if (!root.doForEachChild(EntryKDBXSearchHandler(searchParameters, pgNew), null)) {
|
||||
childEntries = null
|
||||
break
|
||||
}
|
||||
|
||||
childEntries = if (negate) {
|
||||
val complement = ArrayList<EntryKDBX>()
|
||||
for (entry in childEntries!!) {
|
||||
if (!pgNew.contains(entry)) {
|
||||
complement.add(entry)
|
||||
}
|
||||
}
|
||||
complement
|
||||
} else {
|
||||
pgNew
|
||||
}
|
||||
}
|
||||
|
||||
if (childEntries != null) {
|
||||
listStorage.addAll(childEntries)
|
||||
}
|
||||
searchParameters.searchString = fullSearch
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a list of String by split text when ' ', '\t', '\r' or '\n' is found
|
||||
*/
|
||||
private fun splitStringTerms(text: String?): List<String> {
|
||||
val list = ArrayList<String>()
|
||||
if (text == null) {
|
||||
return list
|
||||
}
|
||||
|
||||
val stringBuilder = StringBuilder()
|
||||
var quoted = false
|
||||
|
||||
for (element in text) {
|
||||
|
||||
if ((element == ' ' || element == '\t' || element == '\r' || element == '\n') && !quoted) {
|
||||
|
||||
val len = stringBuilder.length
|
||||
when {
|
||||
len > 0 -> {
|
||||
list.add(stringBuilder.toString())
|
||||
stringBuilder.delete(0, len)
|
||||
}
|
||||
element == '\"' -> quoted = !quoted
|
||||
else -> stringBuilder.append(element)
|
||||
targetResult.wanted = Character.toUpperCase(reference[0])
|
||||
val searchIn = Character.toUpperCase(reference[2])
|
||||
val searchQuery = reference.substring(4)
|
||||
targetResult.entry = when (searchIn) {
|
||||
'T' -> mDatabase.getEntryByTitle(searchQuery)
|
||||
'U' -> mDatabase.getEntryByUsername(searchQuery)
|
||||
'A' -> mDatabase.getEntryByURL(searchQuery)
|
||||
'P' -> mDatabase.getEntryByPassword(searchQuery)
|
||||
'N' -> mDatabase.getEntryByNotes(searchQuery)
|
||||
'I' -> {
|
||||
UuidUtil.fromHexString(searchQuery)?.let { uuid ->
|
||||
mDatabase.getEntryById(NodeIdUUID(uuid))
|
||||
}
|
||||
}
|
||||
'O' -> mDatabase.getEntryByCustomData(searchQuery)
|
||||
else -> null
|
||||
}
|
||||
|
||||
if (stringBuilder.isNotEmpty()) {
|
||||
list.add(stringBuilder.toString())
|
||||
}
|
||||
|
||||
return list
|
||||
return targetResult
|
||||
}
|
||||
|
||||
private data class TargetResult(var entry: EntryKDBX?, var wanted: Char)
|
||||
|
||||
companion object {
|
||||
private const val MAX_RECURSION_DEPTH = 12
|
||||
private const val MAX_RECURSION_DEPTH = 10
|
||||
private const val MAX_INLINE_REF = 10
|
||||
private const val STR_REF_START = "{REF:"
|
||||
private const val STR_REF_END = "}"
|
||||
}
|
||||
|
||||
@@ -31,14 +31,12 @@ import java.util.*
|
||||
|
||||
class GroupKDB : GroupVersioned<Int, UUID, GroupKDB, EntryKDB>, NodeKDBInterface {
|
||||
|
||||
var level = 0 // short
|
||||
// Used by KeePass internally, don't use
|
||||
var groupFlags = 0
|
||||
|
||||
constructor() : super()
|
||||
|
||||
constructor(parcel: Parcel) : super(parcel) {
|
||||
level = parcel.readInt()
|
||||
groupFlags = parcel.readInt()
|
||||
}
|
||||
|
||||
@@ -52,13 +50,11 @@ class GroupKDB : GroupVersioned<Int, UUID, GroupKDB, EntryKDB>, NodeKDBInterface
|
||||
|
||||
override fun writeToParcel(dest: Parcel, flags: Int) {
|
||||
super.writeToParcel(dest, flags)
|
||||
dest.writeInt(level)
|
||||
dest.writeInt(groupFlags)
|
||||
}
|
||||
|
||||
fun updateWith(source: GroupKDB) {
|
||||
super.updateWith(source)
|
||||
level = source.level
|
||||
groupFlags = source.groupFlags
|
||||
}
|
||||
|
||||
@@ -73,15 +69,12 @@ class GroupKDB : GroupVersioned<Int, UUID, GroupKDB, EntryKDB>, NodeKDBInterface
|
||||
return NodeIdInt(nodeId.id)
|
||||
}
|
||||
|
||||
override fun afterAssignNewParent() {
|
||||
if (parent != null)
|
||||
level = parent!!.level + 1
|
||||
}
|
||||
|
||||
fun setGroupId(groupId: Int) {
|
||||
this.nodeId = NodeIdInt(groupId)
|
||||
}
|
||||
|
||||
override fun afterAssignNewParent() {}
|
||||
|
||||
companion object {
|
||||
|
||||
@JvmField
|
||||
|
||||
@@ -63,6 +63,17 @@ abstract class GroupVersioned
|
||||
get() = titleGroup
|
||||
set(value) { titleGroup = value }
|
||||
|
||||
/**
|
||||
* To determine the level from the root group (root group level is -1)
|
||||
*/
|
||||
fun getLevel(): Int {
|
||||
var level = -1
|
||||
parent?.let { parent ->
|
||||
level = parent.getLevel() + 1
|
||||
}
|
||||
return level
|
||||
}
|
||||
|
||||
override fun getChildGroups(): List<Group> {
|
||||
return childGroups
|
||||
}
|
||||
|
||||
@@ -45,23 +45,64 @@ interface GroupVersionedInterface<Group: GroupVersionedInterface<Group, Entry>,
|
||||
groupHandler.operate(this as Group)
|
||||
}
|
||||
|
||||
fun doForEachChild(entryHandler: NodeHandler<Entry>,
|
||||
fun doForEachChild(entryHandler: NodeHandler<Entry>?,
|
||||
groupHandler: NodeHandler<Group>?,
|
||||
stopIterationWhenGroupHandlerFails: Boolean = true): Boolean {
|
||||
for (entry in this.getChildEntries()) {
|
||||
if (!entryHandler.operate(entry))
|
||||
return false
|
||||
stopIterationWhenGroupHandlerOperateFalse: Boolean = true): Boolean {
|
||||
if (entryHandler != null) {
|
||||
for (entry in this.getChildEntries()) {
|
||||
if (!entryHandler.operate(entry))
|
||||
return false
|
||||
}
|
||||
}
|
||||
for (group in this.getChildGroups()) {
|
||||
var doActionForChild = true
|
||||
if (groupHandler != null && !groupHandler.operate(group)) {
|
||||
doActionForChild = false
|
||||
if (stopIterationWhenGroupHandlerFails)
|
||||
if (stopIterationWhenGroupHandlerOperateFalse)
|
||||
return false
|
||||
}
|
||||
if (doActionForChild)
|
||||
group.doForEachChild(entryHandler, groupHandler)
|
||||
group.doForEachChild(entryHandler, groupHandler, stopIterationWhenGroupHandlerOperateFalse)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
fun searchChildEntry(criteria: (entry: Entry) -> Boolean): Entry? {
|
||||
return searchChildEntry(this, criteria)
|
||||
}
|
||||
|
||||
private fun searchChildEntry(rootGroup: GroupVersionedInterface<Group, Entry>,
|
||||
criteria: (entry: Entry) -> Boolean): Entry? {
|
||||
for (childEntry in rootGroup.getChildEntries()) {
|
||||
if (criteria.invoke(childEntry)) {
|
||||
return childEntry
|
||||
}
|
||||
}
|
||||
for (group in rootGroup.getChildGroups()) {
|
||||
val searchChildEntry = searchChildEntry(group, criteria)
|
||||
if (searchChildEntry != null) {
|
||||
return searchChildEntry
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
fun searchChildGroup(criteria: (group: Group) -> Boolean): Group? {
|
||||
return searchChildGroup(this, criteria)
|
||||
}
|
||||
|
||||
private fun searchChildGroup(rootGroup: GroupVersionedInterface<Group, Entry>,
|
||||
criteria: (group: Group) -> Boolean): Group? {
|
||||
for (childGroup in rootGroup.getChildGroups()) {
|
||||
if (criteria.invoke(childGroup)) {
|
||||
return childGroup
|
||||
} else {
|
||||
val subGroup = searchChildGroup(childGroup, criteria)
|
||||
if (subGroup != null) {
|
||||
return subGroup
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ class NoMemoryDatabaseException: LoadDatabaseException {
|
||||
constructor(exception: Throwable) : super(exception)
|
||||
}
|
||||
|
||||
class EntryDatabaseException: LoadDatabaseException {
|
||||
class MoveEntryDatabaseException: LoadDatabaseException {
|
||||
@StringRes
|
||||
override var errorId: Int = R.string.error_move_entry_here
|
||||
constructor() : super()
|
||||
@@ -123,7 +123,7 @@ class EntryDatabaseException: LoadDatabaseException {
|
||||
|
||||
class MoveGroupDatabaseException: LoadDatabaseException {
|
||||
@StringRes
|
||||
override var errorId: Int = R.string.error_move_folder_in_itself
|
||||
override var errorId: Int = R.string.error_move_group_here
|
||||
constructor() : super()
|
||||
constructor(exception: Throwable) : super(exception)
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ import java.security.MessageDigest
|
||||
import java.util.*
|
||||
import javax.crypto.Cipher
|
||||
import javax.crypto.CipherInputStream
|
||||
import kotlin.collections.HashMap
|
||||
|
||||
|
||||
/**
|
||||
@@ -154,11 +155,10 @@ class DatabaseInputKDB(cacheDirectory: File,
|
||||
|
||||
// New manual root because KDB contains multiple root groups (here available with getRootGroups())
|
||||
val newRoot = mDatabase.createGroup()
|
||||
newRoot.level = -1
|
||||
mDatabase.rootGroup = newRoot
|
||||
mDatabase.addGroupIndex(newRoot)
|
||||
|
||||
// Import all nodes
|
||||
val groupLevelList = HashMap<GroupKDB, Int>()
|
||||
var newGroup: GroupKDB? = null
|
||||
var newEntry: EntryKDB? = null
|
||||
var currentGroupNumber = 0
|
||||
@@ -248,7 +248,7 @@ class DatabaseInputKDB(cacheDirectory: File,
|
||||
}
|
||||
0x0008 -> {
|
||||
newGroup?.let { group ->
|
||||
group.level = cipherInputStream.readBytes2ToUShort()
|
||||
groupLevelList.put(group, cipherInputStream.readBytes2ToUShort())
|
||||
} ?:
|
||||
newEntry?.let { entry ->
|
||||
entry.notes = cipherInputStream.readBytesToString(fieldSize)
|
||||
@@ -318,7 +318,7 @@ class DatabaseInputKDB(cacheDirectory: File,
|
||||
if (!Arrays.equals(messageDigest.digest(), header.contentsHash)) {
|
||||
throw InvalidCredentialsDatabaseException()
|
||||
}
|
||||
constructTreeFromIndex()
|
||||
constructTreeFromIndex(groupLevelList)
|
||||
|
||||
stopContentTimer()
|
||||
|
||||
@@ -339,34 +339,40 @@ class DatabaseInputKDB(cacheDirectory: File,
|
||||
return mDatabase
|
||||
}
|
||||
|
||||
private fun buildTreeGroups(previousGroup: GroupKDB, currentGroup: GroupKDB, groupIterator: Iterator<GroupKDB>) {
|
||||
private fun buildTreeGroups(groupLevelList: HashMap<GroupKDB, Int>,
|
||||
previousGroup: GroupKDB,
|
||||
currentGroup: GroupKDB,
|
||||
groupIterator: Iterator<GroupKDB>) {
|
||||
|
||||
if (currentGroup.parent == null && (previousGroup.level + 1) == currentGroup.level) {
|
||||
val previousGroupLevel = groupLevelList[previousGroup] ?: -1
|
||||
val currentGroupLevel = groupLevelList[currentGroup] ?: -1
|
||||
|
||||
if (currentGroup.parent == null && (previousGroupLevel + 1) == currentGroupLevel) {
|
||||
// Current group has an increment level compare to the previous, current group is a child
|
||||
previousGroup.addChildGroup(currentGroup)
|
||||
currentGroup.parent = previousGroup
|
||||
} else if (previousGroup.parent != null && previousGroup.level == currentGroup.level) {
|
||||
} else if (previousGroup.parent != null && previousGroupLevel == currentGroupLevel) {
|
||||
// In the same level, previous parent is the same as previous group
|
||||
previousGroup.parent!!.addChildGroup(currentGroup)
|
||||
currentGroup.parent = previousGroup.parent
|
||||
} else if (previousGroup.parent != null) {
|
||||
// Previous group has a higher level than the current group, check it's parent
|
||||
buildTreeGroups(previousGroup.parent!!, currentGroup, groupIterator)
|
||||
buildTreeGroups(groupLevelList, previousGroup.parent!!, currentGroup, groupIterator)
|
||||
}
|
||||
|
||||
// Next current group
|
||||
if (groupIterator.hasNext()){
|
||||
buildTreeGroups(currentGroup, groupIterator.next(), groupIterator)
|
||||
buildTreeGroups(groupLevelList, currentGroup, groupIterator.next(), groupIterator)
|
||||
}
|
||||
}
|
||||
|
||||
private fun constructTreeFromIndex() {
|
||||
mDatabase.rootGroup?.let {
|
||||
private fun constructTreeFromIndex(groupLevelList: HashMap<GroupKDB, Int>) {
|
||||
mDatabase.rootGroup?.let { root ->
|
||||
|
||||
// add each group
|
||||
val groupIterator = mDatabase.getGroupIndexes().iterator()
|
||||
if (groupIterator.hasNext())
|
||||
buildTreeGroups(it, groupIterator.next(), groupIterator)
|
||||
buildTreeGroups(groupLevelList, root, groupIterator.next(), groupIterator)
|
||||
|
||||
// add each child
|
||||
for (currentEntry in mDatabase.getEntryIndexes()) {
|
||||
|
||||
@@ -20,15 +20,15 @@
|
||||
package com.kunzisoft.keepass.database.file.output
|
||||
|
||||
import com.kunzisoft.encrypt.HashManager
|
||||
import com.kunzisoft.keepass.utils.UnsignedInt
|
||||
import com.kunzisoft.keepass.utils.write2BytesUShort
|
||||
import com.kunzisoft.keepass.utils.write4BytesUInt
|
||||
import com.kunzisoft.keepass.database.crypto.EncryptionAlgorithm
|
||||
import com.kunzisoft.keepass.database.element.database.DatabaseKDB
|
||||
import com.kunzisoft.keepass.database.element.group.GroupKDB
|
||||
import com.kunzisoft.keepass.database.exception.DatabaseOutputException
|
||||
import com.kunzisoft.keepass.database.file.DatabaseHeader
|
||||
import com.kunzisoft.keepass.database.file.DatabaseHeaderKDB
|
||||
import com.kunzisoft.keepass.utils.UnsignedInt
|
||||
import com.kunzisoft.keepass.utils.write2BytesUShort
|
||||
import com.kunzisoft.keepass.utils.write4BytesUInt
|
||||
import java.io.BufferedOutputStream
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.IOException
|
||||
@@ -59,6 +59,8 @@ class DatabaseOutputKDB(private val mDatabaseKDB: DatabaseKDB,
|
||||
override fun output() {
|
||||
// Before we output the header, we should sort our list of groups
|
||||
// and remove any orphaned nodes that are no longer part of the tree hierarchy
|
||||
// also remove the virtual root not present in kdb
|
||||
val rootGroup = mDatabaseKDB.rootGroup
|
||||
sortGroupsForOutput()
|
||||
|
||||
val header = outputHeader(mOutputStream)
|
||||
@@ -86,8 +88,10 @@ class DatabaseOutputKDB(private val mDatabaseKDB: DatabaseKDB,
|
||||
throw DatabaseOutputException("Invalid algorithm parameter.", e)
|
||||
} catch (e: IOException) {
|
||||
throw DatabaseOutputException("Failed to output final encrypted part.", e)
|
||||
} finally {
|
||||
// Add again the virtual root group for better management
|
||||
mDatabaseKDB.rootGroup = rootGroup
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Throws(DatabaseOutputException::class)
|
||||
@@ -201,7 +205,7 @@ class DatabaseOutputKDB(private val mDatabaseKDB: DatabaseKDB,
|
||||
|
||||
private fun sortGroupsForOutput() {
|
||||
val groupList = ArrayList<GroupKDB>()
|
||||
// Rebuild list according to coalation sorting order removing any orphaned groups
|
||||
// Rebuild list according to sorting order removing any orphaned groups
|
||||
for (rootGroup in mDatabaseKDB.rootGroups) {
|
||||
sortGroup(rootGroup, groupList)
|
||||
}
|
||||
|
||||
@@ -19,13 +19,9 @@
|
||||
*/
|
||||
package com.kunzisoft.keepass.database.file.output
|
||||
|
||||
import com.kunzisoft.keepass.utils.UnsignedInt
|
||||
import com.kunzisoft.keepass.utils.dateTo5Bytes
|
||||
import com.kunzisoft.keepass.utils.uIntTo4Bytes
|
||||
import com.kunzisoft.keepass.utils.uShortTo2Bytes
|
||||
import com.kunzisoft.keepass.utils.writeStringToStream
|
||||
import com.kunzisoft.keepass.database.element.group.GroupKDB
|
||||
import com.kunzisoft.keepass.database.exception.DatabaseOutputException
|
||||
import com.kunzisoft.keepass.utils.*
|
||||
import java.io.IOException
|
||||
import java.io.OutputStream
|
||||
|
||||
@@ -77,7 +73,7 @@ class GroupOutputKDB(private val mGroup: GroupKDB,
|
||||
// Level
|
||||
mOutputStream.write(LEVEL_FIELD_TYPE)
|
||||
mOutputStream.write(LEVEL_FIELD_SIZE)
|
||||
mOutputStream.write(uShortTo2Bytes(mGroup.level))
|
||||
mOutputStream.write(uShortTo2Bytes(mGroup.getLevel()))
|
||||
|
||||
// Flags
|
||||
mOutputStream.write(FLAGS_FIELD_TYPE)
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* Copyright 2020 Jeremy Jamet / Kunzisoft.
|
||||
*
|
||||
* This file is part of KeePassDX.
|
||||
*
|
||||
* KeePassDX 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* KeePassDX 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 KeePassDX. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package com.kunzisoft.keepass.database.search
|
||||
|
||||
import com.kunzisoft.keepass.database.action.node.NodeHandler
|
||||
import com.kunzisoft.keepass.database.element.entry.EntryKDBX
|
||||
import com.kunzisoft.keepass.database.search.iterator.EntrySearchStringIteratorKDBX
|
||||
|
||||
class EntryKDBXSearchHandler(private val mSearchParametersKDBX: SearchParameters,
|
||||
private val mListStorage: MutableList<EntryKDBX>)
|
||||
: NodeHandler<EntryKDBX>() {
|
||||
|
||||
override fun operate(node: EntryKDBX): Boolean {
|
||||
|
||||
if (mSearchParametersKDBX.excludeExpired
|
||||
&& node.isCurrentlyExpires) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (searchStrings(node)) {
|
||||
mListStorage.add(node)
|
||||
return true
|
||||
}
|
||||
|
||||
if (searchInGroupNames(node)) {
|
||||
mListStorage.add(node)
|
||||
return true
|
||||
}
|
||||
|
||||
if (searchInUUID(node)) {
|
||||
mListStorage.add(node)
|
||||
return true
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
private fun searchInGroupNames(entry: EntryKDBX): Boolean {
|
||||
if (mSearchParametersKDBX.searchInGroupNames) {
|
||||
val parent = entry.parent
|
||||
if (parent != null) {
|
||||
return parent.title
|
||||
.contains(mSearchParametersKDBX.searchString, mSearchParametersKDBX.ignoreCase)
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
private fun searchInUUID(entry: EntryKDBX): Boolean {
|
||||
if (mSearchParametersKDBX.searchInUUIDs) {
|
||||
return UuidUtil.toHexString(entry.id)
|
||||
.contains(mSearchParametersKDBX.searchString, true)
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
private fun searchStrings(entry: EntryKDBX): Boolean {
|
||||
val iterator = EntrySearchStringIteratorKDBX(entry, mSearchParametersKDBX)
|
||||
while (iterator.hasNext()) {
|
||||
val stringValue = iterator.next()
|
||||
if (stringValue.isNotEmpty()) {
|
||||
if (stringValue.contains(mSearchParametersKDBX.searchString, mSearchParametersKDBX.ignoreCase)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
@@ -24,15 +24,67 @@ import com.kunzisoft.keepass.database.action.node.NodeHandler
|
||||
import com.kunzisoft.keepass.database.element.Database
|
||||
import com.kunzisoft.keepass.database.element.Entry
|
||||
import com.kunzisoft.keepass.database.element.Group
|
||||
import com.kunzisoft.keepass.database.search.iterator.EntrySearchStringIteratorKDB
|
||||
import com.kunzisoft.keepass.database.search.iterator.EntrySearchStringIteratorKDBX
|
||||
import com.kunzisoft.keepass.model.EntryInfo
|
||||
import com.kunzisoft.keepass.model.SearchInfo
|
||||
import com.kunzisoft.keepass.otp.OtpEntryFields.OTP_FIELD
|
||||
import com.kunzisoft.keepass.settings.PreferencesUtil
|
||||
import com.kunzisoft.keepass.timeout.TimeoutHelper
|
||||
import com.kunzisoft.keepass.utils.UuidUtil
|
||||
|
||||
class SearchHelper {
|
||||
|
||||
private var incrementEntry = 0
|
||||
|
||||
fun createVirtualGroupWithSearchResult(database: Database,
|
||||
searchParameters: SearchParameters,
|
||||
omitBackup: Boolean,
|
||||
max: Int): Group? {
|
||||
|
||||
val searchGroup = database.createGroup()
|
||||
searchGroup?.isVirtual = true
|
||||
searchGroup?.title = "\"" + searchParameters.searchQuery + "\""
|
||||
|
||||
// Search all entries
|
||||
incrementEntry = 0
|
||||
database.rootGroup?.doForEachChild(
|
||||
object : NodeHandler<Entry>() {
|
||||
override fun operate(node: Entry): Boolean {
|
||||
if (incrementEntry >= max)
|
||||
return false
|
||||
if (entryContainsString(database, node, searchParameters)) {
|
||||
searchGroup?.addChildEntry(node)
|
||||
incrementEntry++
|
||||
}
|
||||
// Stop searching when we have max entries
|
||||
return incrementEntry < max
|
||||
}
|
||||
},
|
||||
object : NodeHandler<Group>() {
|
||||
override fun operate(node: Group): Boolean {
|
||||
return when {
|
||||
incrementEntry >= max -> false
|
||||
database.isGroupSearchable(node, omitBackup) -> true
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
},
|
||||
false)
|
||||
|
||||
return searchGroup
|
||||
}
|
||||
|
||||
private fun entryContainsString(database: Database,
|
||||
entry: Entry,
|
||||
searchParameters: SearchParameters): Boolean {
|
||||
// To search in field references
|
||||
database.startManageEntry(entry)
|
||||
// Search all strings in the entry
|
||||
val searchFound = searchInEntry(entry, searchParameters)
|
||||
database.stopManageEntry(entry)
|
||||
|
||||
return searchFound
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val MAX_SEARCH_ENTRY = 10
|
||||
|
||||
@@ -70,75 +122,67 @@ class SearchHelper {
|
||||
onDatabaseClosed.invoke()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var incrementEntry = 0
|
||||
/**
|
||||
* Return true if the search query in search parameters is found in available parameters
|
||||
*/
|
||||
fun searchInEntry(entry: Entry,
|
||||
searchParameters: SearchParameters): Boolean {
|
||||
val searchQuery = searchParameters.searchQuery
|
||||
// Entry don't contains string if the search string is empty
|
||||
if (searchQuery.isEmpty())
|
||||
return false
|
||||
|
||||
fun createVirtualGroupWithSearchResult(database: Database,
|
||||
searchQuery: String,
|
||||
searchParameters: SearchParameters,
|
||||
omitBackup: Boolean,
|
||||
max: Int): Group? {
|
||||
|
||||
val searchGroup = database.createGroup()
|
||||
searchGroup?.isVirtual = true
|
||||
searchGroup?.title = "\"" + searchQuery + "\""
|
||||
|
||||
// Search all entries
|
||||
incrementEntry = 0
|
||||
database.rootGroup?.doForEachChild(
|
||||
object : NodeHandler<Entry>() {
|
||||
override fun operate(node: Entry): Boolean {
|
||||
if (incrementEntry >= max)
|
||||
return false
|
||||
if (entryContainsString(node, searchQuery, searchParameters)) {
|
||||
searchGroup?.addChildEntry(node)
|
||||
incrementEntry++
|
||||
}
|
||||
// Stop searching when we have max entries
|
||||
return incrementEntry < max
|
||||
// Search all strings in the KDBX entry
|
||||
if (searchParameters.searchInTitles) {
|
||||
if (checkSearchQuery(entry.title, searchParameters))
|
||||
return true
|
||||
}
|
||||
if (searchParameters.searchInUserNames) {
|
||||
if (checkSearchQuery(entry.username, searchParameters))
|
||||
return true
|
||||
}
|
||||
if (searchParameters.searchInPasswords) {
|
||||
if (checkSearchQuery(entry.password, searchParameters))
|
||||
return true
|
||||
}
|
||||
if (searchParameters.searchInUrls) {
|
||||
if (checkSearchQuery(entry.url, searchParameters))
|
||||
return true
|
||||
}
|
||||
if (searchParameters.searchInNotes) {
|
||||
if (checkSearchQuery(entry.notes, searchParameters))
|
||||
return true
|
||||
}
|
||||
if (searchParameters.searchInUUIDs) {
|
||||
val hexString = UuidUtil.toHexString(entry.nodeId.id)
|
||||
if (hexString != null && hexString.contains(searchQuery, true))
|
||||
return true
|
||||
}
|
||||
if (searchParameters.searchInOther) {
|
||||
entry.getExtraFields().forEach { field ->
|
||||
if (field.name != OTP_FIELD
|
||||
|| (field.name == OTP_FIELD && searchParameters.searchInOTP)) {
|
||||
if (checkSearchQuery(field.protectedValue.toString(), searchParameters))
|
||||
return true
|
||||
}
|
||||
},
|
||||
object : NodeHandler<Group>() {
|
||||
override fun operate(node: Group): Boolean {
|
||||
return when {
|
||||
incrementEntry >= max -> false
|
||||
database.isGroupSearchable(node, omitBackup) -> true
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
},
|
||||
false)
|
||||
|
||||
return searchGroup
|
||||
}
|
||||
|
||||
private fun entryContainsString(entry: Entry,
|
||||
searchQuery: String,
|
||||
searchParameters: SearchParameters): Boolean {
|
||||
|
||||
// Entry don't contains string if the search string is empty
|
||||
if (searchQuery.isEmpty())
|
||||
return false
|
||||
|
||||
// Search all strings in the entry
|
||||
var iterator: Iterator<String>? = null
|
||||
entry.entryKDB?.let {
|
||||
iterator = EntrySearchStringIteratorKDB(it, searchParameters)
|
||||
}
|
||||
entry.entryKDBX?.let {
|
||||
iterator = EntrySearchStringIteratorKDBX(it, searchParameters)
|
||||
}
|
||||
|
||||
iterator?.let {
|
||||
while (it.hasNext()) {
|
||||
val currentString = it.next()
|
||||
if (currentString.isNotEmpty()
|
||||
&& currentString.contains(searchQuery, true)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private fun checkSearchQuery(stringToCheck: String, searchParameters: SearchParameters): Boolean {
|
||||
/*
|
||||
// TODO Search settings
|
||||
var regularExpression = false
|
||||
var ignoreCase = true
|
||||
var removeAccents = true <- Too much time, to study
|
||||
var excludeExpired = false
|
||||
var searchOnlyInCurrentGroup = false
|
||||
*/
|
||||
return stringToCheck.isNotEmpty()
|
||||
&& stringToCheck.contains(
|
||||
searchParameters.searchQuery, true)
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,57 +23,15 @@ package com.kunzisoft.keepass.database.search
|
||||
* Parameters for searching strings in the database.
|
||||
*/
|
||||
class SearchParameters {
|
||||
var searchQuery: String = ""
|
||||
|
||||
var searchString: String = ""
|
||||
|
||||
var regularExpression = false
|
||||
var searchInTitles = true
|
||||
var searchInUserNames = true
|
||||
var searchInPasswords = false
|
||||
var searchInUrls = true
|
||||
var searchInGroupNames = false
|
||||
var searchInNotes = true
|
||||
var searchInOTP = false
|
||||
var searchInOther = true
|
||||
var searchInUUIDs = false
|
||||
var searchInTags = true
|
||||
var ignoreCase = true
|
||||
var ignoreExpired = false
|
||||
var excludeExpired = false
|
||||
|
||||
constructor()
|
||||
|
||||
/**
|
||||
* Copy search parameters
|
||||
* @param source
|
||||
*/
|
||||
constructor(source: SearchParameters) {
|
||||
this.regularExpression = source.regularExpression
|
||||
this.searchInTitles = source.searchInTitles
|
||||
this.searchInUserNames = source.searchInUserNames
|
||||
this.searchInPasswords = source.searchInPasswords
|
||||
this.searchInUrls = source.searchInUrls
|
||||
this.searchInGroupNames = source.searchInGroupNames
|
||||
this.searchInNotes = source.searchInNotes
|
||||
this.searchInOTP = source.searchInOTP
|
||||
this.searchInOther = source.searchInOther
|
||||
this.searchInUUIDs = source.searchInUUIDs
|
||||
this.searchInTags = source.searchInTags
|
||||
this.ignoreCase = source.ignoreCase
|
||||
this.ignoreExpired = source.ignoreExpired
|
||||
this.excludeExpired = source.excludeExpired
|
||||
}
|
||||
|
||||
fun setupNone() {
|
||||
searchInTitles = false
|
||||
searchInUserNames = false
|
||||
searchInPasswords = false
|
||||
searchInUrls = false
|
||||
searchInGroupNames = false
|
||||
searchInNotes = false
|
||||
searchInOTP = false
|
||||
searchInOther = false
|
||||
searchInUUIDs = false
|
||||
searchInTags = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019 Jeremy Jamet / Kunzisoft.
|
||||
*
|
||||
* This file is part of KeePassDX.
|
||||
*
|
||||
* KeePassDX 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* KeePassDX 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 KeePassDX. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package com.kunzisoft.keepass.database.search;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import static com.kunzisoft.keepass.utils.StreamBytesUtilsKt.uuidTo16Bytes;
|
||||
|
||||
public class UuidUtil {
|
||||
|
||||
public static String toHexString(UUID uuid) {
|
||||
if (uuid == null) { return null; }
|
||||
|
||||
byte[] buf = uuidTo16Bytes(uuid);
|
||||
|
||||
int len = buf.length;
|
||||
if (len == 0) { return ""; }
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
short bt;
|
||||
char high, low;
|
||||
for (byte b : buf) {
|
||||
bt = (short) (b & 0xFF);
|
||||
high = (char) (bt >>> 4);
|
||||
low = (char) (bt & 0x0F);
|
||||
sb.append(byteToChar(high));
|
||||
sb.append(byteToChar(low));
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
// Use short to represent unsigned byte
|
||||
private static char byteToChar(char bt) {
|
||||
if (bt >= 10) {
|
||||
return (char)('A' + bt - 10);
|
||||
}
|
||||
else {
|
||||
return (char)('0' + bt);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
/*
|
||||
* Copyright 2020 Jeremy Jamet / Kunzisoft.
|
||||
*
|
||||
* This file is part of KeePassDX.
|
||||
*
|
||||
* KeePassDX 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* KeePassDX 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 KeePassDX. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package com.kunzisoft.keepass.database.search.iterator
|
||||
|
||||
import com.kunzisoft.keepass.database.element.entry.EntryKDB
|
||||
import com.kunzisoft.keepass.database.search.SearchParameters
|
||||
|
||||
import java.util.NoSuchElementException
|
||||
|
||||
class EntrySearchStringIteratorKDB(
|
||||
private val mEntry: EntryKDB,
|
||||
private val mSearchParameters: SearchParameters)
|
||||
: Iterator<String> {
|
||||
|
||||
private var current = 0
|
||||
|
||||
private val currentString: String
|
||||
get() {
|
||||
return when (current) {
|
||||
title -> mEntry.title
|
||||
url -> mEntry.url
|
||||
username -> mEntry.username
|
||||
notes -> mEntry.notes
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
|
||||
override fun hasNext(): Boolean {
|
||||
return current < maxEntries
|
||||
}
|
||||
|
||||
override fun next(): String {
|
||||
// Past the end of the list
|
||||
if (current == maxEntries) {
|
||||
throw NoSuchElementException("Past final string")
|
||||
}
|
||||
|
||||
useSearchParameters()
|
||||
|
||||
val str = currentString
|
||||
current++
|
||||
return str
|
||||
}
|
||||
|
||||
private fun useSearchParameters() {
|
||||
var found = false
|
||||
while (!found) {
|
||||
found = when (current) {
|
||||
title -> mSearchParameters.searchInTitles
|
||||
url -> mSearchParameters.searchInUrls
|
||||
username -> mSearchParameters.searchInUserNames
|
||||
notes -> mSearchParameters.searchInNotes
|
||||
else -> true
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
current++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val title = 0
|
||||
private const val url = 1
|
||||
private const val username = 2
|
||||
private const val notes = 3
|
||||
private const val maxEntries = 4
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2019 Jeremy Jamet / Kunzisoft.
|
||||
*
|
||||
* This file is part of KeePassDX.
|
||||
*
|
||||
* KeePassDX 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* KeePassDX 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 KeePassDX. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package com.kunzisoft.keepass.database.search.iterator
|
||||
|
||||
import com.kunzisoft.keepass.database.element.entry.EntryKDBX
|
||||
import com.kunzisoft.keepass.database.element.security.ProtectedString
|
||||
import com.kunzisoft.keepass.database.search.SearchParameters
|
||||
import com.kunzisoft.keepass.otp.OtpEntryFields
|
||||
import java.util.*
|
||||
import kotlin.collections.Map.Entry
|
||||
|
||||
class EntrySearchStringIteratorKDBX(
|
||||
entry: EntryKDBX,
|
||||
private val mSearchParameters: SearchParameters)
|
||||
: Iterator<String> {
|
||||
|
||||
private var mCurrent: String? = null
|
||||
private var mSetIterator: Iterator<Entry<String, ProtectedString>>? = null
|
||||
|
||||
init {
|
||||
mSetIterator = entry.fields.entries.iterator()
|
||||
advance()
|
||||
}
|
||||
|
||||
override fun hasNext(): Boolean {
|
||||
return mCurrent != null
|
||||
}
|
||||
|
||||
override fun next(): String {
|
||||
if (mCurrent == null) {
|
||||
throw NoSuchElementException("Past the end of the list.")
|
||||
}
|
||||
|
||||
val next:String = mCurrent!!
|
||||
advance()
|
||||
return next
|
||||
}
|
||||
|
||||
private fun advance() {
|
||||
mSetIterator?.let {
|
||||
while (it.hasNext()) {
|
||||
val entry = it.next()
|
||||
val key = entry.key
|
||||
|
||||
if (searchInField(key)) {
|
||||
mCurrent = entry.value.toString()
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mCurrent = null
|
||||
}
|
||||
|
||||
private fun searchInField(key: String): Boolean {
|
||||
return when (key) {
|
||||
EntryKDBX.STR_TITLE -> mSearchParameters.searchInTitles
|
||||
EntryKDBX.STR_USERNAME -> mSearchParameters.searchInUserNames
|
||||
EntryKDBX.STR_PASSWORD -> mSearchParameters.searchInPasswords
|
||||
EntryKDBX.STR_URL -> mSearchParameters.searchInUrls
|
||||
EntryKDBX.STR_NOTES -> mSearchParameters.searchInNotes
|
||||
OtpEntryFields.OTP_FIELD -> mSearchParameters.searchInOTP
|
||||
else -> mSearchParameters.searchInOther
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -93,7 +93,7 @@ data class OtpElement(var otpModel: OtpModel = OtpModel()) {
|
||||
value
|
||||
} else {
|
||||
TokenCalculator.HOTP_INITIAL_COUNTER
|
||||
throw IllegalArgumentException()
|
||||
throw NumberFormatException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ data class OtpElement(var otpModel: OtpModel = OtpModel()) {
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val MIN_HOTP_COUNTER = 1
|
||||
const val MIN_HOTP_COUNTER = 0
|
||||
const val MAX_HOTP_COUNTER = Long.MAX_VALUE
|
||||
|
||||
const val MIN_TOTP_PERIOD = 1
|
||||
|
||||
@@ -295,22 +295,30 @@ object OtpEntryFields {
|
||||
secretHexField != null -> otpElement.setHexSecret(secretHexField)
|
||||
secretBase32Field != null -> otpElement.setBase32Secret(secretBase32Field)
|
||||
secretBase64Field != null -> otpElement.setBase64Secret(secretBase64Field)
|
||||
lengthField != null -> otpElement.digits = lengthField.toIntOrNull() ?: OTP_DEFAULT_DIGITS
|
||||
periodField != null -> otpElement.period = periodField.toIntOrNull() ?: TOTP_DEFAULT_PERIOD
|
||||
algorithmField != null -> otpElement.algorithm =
|
||||
when (algorithmField.toUpperCase(Locale.ENGLISH)) {
|
||||
TIMEOTP_ALGORITHM_SHA1_VALUE -> HashAlgorithm.SHA1
|
||||
TIMEOTP_ALGORITHM_SHA256_VALUE -> HashAlgorithm.SHA256
|
||||
TIMEOTP_ALGORITHM_SHA512_VALUE -> HashAlgorithm.SHA512
|
||||
else -> HashAlgorithm.SHA1
|
||||
}
|
||||
else -> return false
|
||||
}
|
||||
otpElement.type = OtpType.TOTP
|
||||
if (lengthField != null) {
|
||||
otpElement.digits = lengthField.toIntOrNull() ?: OTP_DEFAULT_DIGITS
|
||||
}
|
||||
if (lengthField != null) {
|
||||
otpElement.digits = lengthField.toIntOrNull() ?: OTP_DEFAULT_DIGITS
|
||||
}
|
||||
if (periodField != null) {
|
||||
otpElement.period = periodField.toIntOrNull() ?: TOTP_DEFAULT_PERIOD
|
||||
}
|
||||
if (algorithmField != null) {
|
||||
otpElement.algorithm =
|
||||
when (algorithmField.toUpperCase(Locale.ENGLISH)) {
|
||||
TIMEOTP_ALGORITHM_SHA1_VALUE -> HashAlgorithm.SHA1
|
||||
TIMEOTP_ALGORITHM_SHA256_VALUE -> HashAlgorithm.SHA256
|
||||
TIMEOTP_ALGORITHM_SHA512_VALUE -> HashAlgorithm.SHA512
|
||||
else -> HashAlgorithm.SHA1
|
||||
}
|
||||
}
|
||||
} catch (exception: Exception) {
|
||||
return false
|
||||
}
|
||||
|
||||
otpElement.type = OtpType.TOTP
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -321,10 +329,10 @@ object OtpEntryFields {
|
||||
return try {
|
||||
// KeeOtp string format
|
||||
val query = breakDownKeyValuePairs(plainText)
|
||||
otpElement.type = OtpType.TOTP
|
||||
otpElement.setBase32Secret(query[SEED_KEY] ?: "")
|
||||
otpElement.digits = query[DIGITS_KEY]?.toIntOrNull() ?: OTP_DEFAULT_DIGITS
|
||||
otpElement.period = query[STEP_KEY]?.toIntOrNull() ?: TOTP_DEFAULT_PERIOD
|
||||
otpElement.type = OtpType.TOTP
|
||||
true
|
||||
} catch (exception: Exception) {
|
||||
false
|
||||
@@ -351,6 +359,7 @@ object OtpEntryFields {
|
||||
// malformed
|
||||
return false
|
||||
}
|
||||
otpElement.type = OtpType.TOTP
|
||||
otpElement.period = matcher.group(1)?.toIntOrNull() ?: TOTP_DEFAULT_PERIOD
|
||||
matcher.group(2)?.let { secondMatcher ->
|
||||
try {
|
||||
@@ -365,7 +374,6 @@ object OtpEntryFields {
|
||||
} catch (exception: Exception) {
|
||||
return false
|
||||
}
|
||||
otpElement.type = OtpType.TOTP
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -374,6 +382,7 @@ object OtpEntryFields {
|
||||
val secretHexField = getField(HMACOTP_SECRET_HEX_FIELD)
|
||||
val secretBase32Field = getField(HMACOTP_SECRET_BASE32_FIELD)
|
||||
val secretBase64Field = getField(HMACOTP_SECRET_BASE64_FIELD)
|
||||
val secretCounterField = getField(HMACOTP_SECRET_COUNTER_FIELD)
|
||||
try {
|
||||
when {
|
||||
secretField != null -> otpElement.setUTF8Secret(secretField)
|
||||
@@ -382,16 +391,13 @@ object OtpEntryFields {
|
||||
secretBase64Field != null -> otpElement.setBase64Secret(secretBase64Field)
|
||||
else -> return false
|
||||
}
|
||||
|
||||
val secretCounterField = getField(HMACOTP_SECRET_COUNTER_FIELD)
|
||||
otpElement.type = OtpType.HOTP
|
||||
if (secretCounterField != null) {
|
||||
otpElement.counter = secretCounterField.toLongOrNull() ?: HOTP_INITIAL_COUNTER
|
||||
}
|
||||
} catch (exception: Exception) {
|
||||
return false
|
||||
}
|
||||
|
||||
otpElement.type = OtpType.HOTP
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package com.kunzisoft.keepass.services
|
||||
|
||||
import android.app.PendingIntent
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.*
|
||||
import android.net.Uri
|
||||
import android.os.Binder
|
||||
import android.os.IBinder
|
||||
@@ -46,58 +45,46 @@ class AdvancedUnlockNotificationService : NotificationService() {
|
||||
return getString(R.string.advanced_unlock)
|
||||
}
|
||||
|
||||
override fun onBind(intent: Intent): IBinder? {
|
||||
super.onBind(intent)
|
||||
return mActionTaskBinder
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
mTempCipherDao = ArrayList()
|
||||
}
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
super.onStartCommand(intent, flags, startId)
|
||||
override fun onBind(intent: Intent): IBinder {
|
||||
super.onBind(intent)
|
||||
|
||||
val deleteIntent = Intent(this, AdvancedUnlockNotificationService::class.java).apply {
|
||||
action = ACTION_REMOVE_KEYS
|
||||
}
|
||||
val pendingDeleteIntent = PendingIntent.getService(this, 0, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
val pendingDeleteIntent = PendingIntent.getBroadcast(this,
|
||||
4577, Intent(REMOVE_ADVANCED_UNLOCK_KEY_ACTION), 0)
|
||||
val biometricUnlockEnabled = PreferencesUtil.isBiometricUnlockEnable(this)
|
||||
val notificationBuilder = buildNewNotification().apply {
|
||||
val notificationBuilder = buildNewNotification().apply {
|
||||
setSmallIcon(if (biometricUnlockEnabled) {
|
||||
R.drawable.notification_ic_fingerprint_unlock_24dp
|
||||
} else {
|
||||
R.drawable.notification_ic_device_unlock_24dp
|
||||
})
|
||||
intent?.let {
|
||||
setContentTitle(getString(R.string.advanced_unlock))
|
||||
}
|
||||
setContentTitle(getString(R.string.advanced_unlock))
|
||||
setContentText(getString(R.string.advanced_unlock_tap_delete))
|
||||
setContentIntent(pendingDeleteIntent)
|
||||
// Unfortunately swipe is disabled in lollipop+
|
||||
setDeleteIntent(pendingDeleteIntent)
|
||||
}
|
||||
|
||||
when (intent?.action) {
|
||||
ACTION_TIMEOUT -> {
|
||||
val notificationTimeoutMilliSecs = PreferencesUtil.getAdvancedUnlockTimeout(this)
|
||||
// Not necessarily a foreground service
|
||||
if (mTimerJob == null && notificationTimeoutMilliSecs != TimeoutHelper.NEVER) {
|
||||
defineTimerJob(notificationBuilder, notificationTimeoutMilliSecs) {
|
||||
stopSelf()
|
||||
}
|
||||
} else {
|
||||
startForeground(notificationId, notificationBuilder.build())
|
||||
}
|
||||
val notificationTimeoutMilliSecs = PreferencesUtil.getAdvancedUnlockTimeout(this)
|
||||
// Not necessarily a foreground service
|
||||
if (mTimerJob == null && notificationTimeoutMilliSecs != TimeoutHelper.NEVER) {
|
||||
defineTimerJob(notificationBuilder, notificationTimeoutMilliSecs) {
|
||||
sendBroadcast(Intent(REMOVE_ADVANCED_UNLOCK_KEY_ACTION))
|
||||
}
|
||||
ACTION_REMOVE_KEYS -> {
|
||||
stopSelf()
|
||||
}
|
||||
else -> {}
|
||||
} else {
|
||||
startForeground(notificationId, notificationBuilder.build())
|
||||
}
|
||||
|
||||
return START_STICKY
|
||||
return mActionTaskBinder
|
||||
}
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
mTempCipherDao = ArrayList()
|
||||
override fun onUnbind(intent: Intent?): Boolean {
|
||||
stopSelf()
|
||||
return super.onUnbind(intent)
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
@@ -105,22 +92,32 @@ class AdvancedUnlockNotificationService : NotificationService() {
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val CHANNEL_ADVANCED_UNLOCK_ID = "com.kunzisoft.keepass.notification.channel.unlock"
|
||||
|
||||
private const val ACTION_TIMEOUT = "ACTION_TIMEOUT"
|
||||
private const val ACTION_REMOVE_KEYS = "ACTION_REMOVE_KEYS"
|
||||
|
||||
fun startServiceForTimeout(context: Context) {
|
||||
if (PreferencesUtil.isTempAdvancedUnlockEnable(context)) {
|
||||
context.startService(Intent(context, AdvancedUnlockNotificationService::class.java).apply {
|
||||
action = ACTION_TIMEOUT
|
||||
})
|
||||
class AdvancedUnlockReceiver(var removeKeyAction: () -> Unit): BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
intent.action?.let {
|
||||
when (it) {
|
||||
REMOVE_ADVANCED_UNLOCK_KEY_ACTION -> {
|
||||
removeKeyAction.invoke()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun stopService(context: Context) {
|
||||
context.stopService(Intent(context, AdvancedUnlockNotificationService::class.java))
|
||||
companion object {
|
||||
private const val CHANNEL_ADVANCED_UNLOCK_ID = "com.kunzisoft.keepass.notification.channel.unlock"
|
||||
const val REMOVE_ADVANCED_UNLOCK_KEY_ACTION = "com.kunzisoft.keepass.REMOVE_ADVANCED_UNLOCK_KEY"
|
||||
|
||||
// Only one service connection
|
||||
fun bindService(context: Context, serviceConnection: ServiceConnection, flags: Int) {
|
||||
context.bindService(Intent(context,
|
||||
AdvancedUnlockNotificationService::class.java),
|
||||
serviceConnection,
|
||||
flags)
|
||||
}
|
||||
|
||||
fun unbindService(context: Context, serviceConnection: ServiceConnection) {
|
||||
context.unbindService(serviceConnection)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,7 +37,6 @@ class ClipboardEntryNotificationService : LockNotificationService() {
|
||||
override val notificationId = 485
|
||||
private var mEntryInfo: EntryInfo? = null
|
||||
private var clipboardHelper: ClipboardHelper? = null
|
||||
private var mNotificationTimeoutMilliSecs: Long = 0
|
||||
|
||||
override fun retrieveChannelId(): String {
|
||||
return CHANNEL_CLIPBOARD_ID
|
||||
@@ -68,9 +67,6 @@ class ClipboardEntryNotificationService : LockNotificationService() {
|
||||
// Get entry info from intent
|
||||
mEntryInfo = intent?.getParcelableExtra(EXTRA_ENTRY_INFO)
|
||||
|
||||
//Get settings
|
||||
mNotificationTimeoutMilliSecs = PreferencesUtil.getClipboardTimeout(this)
|
||||
|
||||
when {
|
||||
intent == null -> Log.w(TAG, "null intent")
|
||||
ACTION_NEW_NOTIFICATION == intent.action -> {
|
||||
@@ -169,8 +165,10 @@ class ClipboardEntryNotificationService : LockNotificationService() {
|
||||
this, 0, cleanIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
builder.setDeleteIntent(cleanPendingIntent)
|
||||
|
||||
if (mNotificationTimeoutMilliSecs != NEVER) {
|
||||
defineTimerJob(builder, mNotificationTimeoutMilliSecs, {
|
||||
//Get settings
|
||||
val notificationTimeoutMilliSecs = PreferencesUtil.getClipboardTimeout(this)
|
||||
if (notificationTimeoutMilliSecs != NEVER) {
|
||||
defineTimerJob(builder, notificationTimeoutMilliSecs, {
|
||||
val newGeneratedValue = fieldToCopy.getGeneratedValue(mEntryInfo)
|
||||
// New auto generated value
|
||||
if (generatedValue != newGeneratedValue) {
|
||||
|
||||
@@ -200,10 +200,6 @@ open class DatabaseTaskNotificationService : LockNotificationService(), Progress
|
||||
if (intentAction == null && !mDatabase.loaded) {
|
||||
stopSelf()
|
||||
}
|
||||
if (intentAction == ACTION_DATABASE_CLOSE) {
|
||||
// Send lock action
|
||||
sendBroadcast(Intent(LOCK_ACTION))
|
||||
}
|
||||
|
||||
val actionRunnable: ActionRunnable? = when (intentAction) {
|
||||
ACTION_DATABASE_CREATE_TASK -> buildDatabaseCreateActionTask(intent)
|
||||
@@ -378,10 +374,8 @@ open class DatabaseTaskNotificationService : LockNotificationService(), Progress
|
||||
ReadOnlyHelper.putReadOnlyInIntent(this, mDatabase.isReadOnly)
|
||||
},
|
||||
PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
val deleteIntent = Intent(this, DatabaseTaskNotificationService::class.java).apply {
|
||||
action = ACTION_DATABASE_CLOSE
|
||||
}
|
||||
val pendingDeleteIntent = PendingIntent.getService(this, 0, deleteIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
val pendingDeleteIntent = PendingIntent.getBroadcast(this,
|
||||
4576, Intent(LOCK_ACTION), 0)
|
||||
// Add actions in notifications
|
||||
notificationBuilder.apply {
|
||||
setContentText(mDatabase.name + " (" + mDatabase.version + ")")
|
||||
@@ -877,7 +871,6 @@ open class DatabaseTaskNotificationService : LockNotificationService(), Progress
|
||||
const val ACTION_DATABASE_UPDATE_PARALLELISM_TASK = "ACTION_DATABASE_UPDATE_PARALLELISM_TASK"
|
||||
const val ACTION_DATABASE_UPDATE_ITERATIONS_TASK = "ACTION_DATABASE_UPDATE_ITERATIONS_TASK"
|
||||
const val ACTION_DATABASE_SAVE = "ACTION_DATABASE_SAVE"
|
||||
const val ACTION_DATABASE_CLOSE = "ACTION_DATABASE_CLOSE"
|
||||
|
||||
const val DATABASE_TASK_TITLE_KEY = "DATABASE_TASK_TITLE_KEY"
|
||||
const val DATABASE_TASK_MESSAGE_KEY = "DATABASE_TASK_MESSAGE_KEY"
|
||||
|
||||
@@ -57,8 +57,8 @@ abstract class LockNotificationService : NotificationService() {
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
||||
unregisterLockReceiver(mLockReceiver)
|
||||
mLockReceiver = null
|
||||
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
@@ -80,17 +80,22 @@ abstract class NotificationService : Service() {
|
||||
actionEnd: () -> Unit) {
|
||||
mTimerJob?.cancel()
|
||||
mTimerJob = CoroutineScope(Dispatchers.Main).launch {
|
||||
val timeoutInSeconds = timeoutMilliseconds / 1000L
|
||||
for (currentTime in timeoutInSeconds downTo 0) {
|
||||
actionAfterASecond?.invoke()
|
||||
builder.setProgress(100,
|
||||
(currentTime * 100 / timeoutInSeconds).toInt(),
|
||||
false)
|
||||
startForeground(notificationId, builder.build())
|
||||
delay(1000)
|
||||
if (currentTime <= 0) {
|
||||
actionEnd()
|
||||
if (timeoutMilliseconds > 0) {
|
||||
val timeoutInSeconds = timeoutMilliseconds / 1000L
|
||||
for (currentTime in timeoutInSeconds downTo 0) {
|
||||
actionAfterASecond?.invoke()
|
||||
builder.setProgress(100,
|
||||
(currentTime * 100 / timeoutInSeconds).toInt(),
|
||||
false)
|
||||
startForeground(notificationId, builder.build())
|
||||
delay(1000)
|
||||
if (currentTime <= 0) {
|
||||
actionEnd()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// If timeout is 0, run action once
|
||||
actionEnd()
|
||||
}
|
||||
notificationManager?.cancel(notificationId)
|
||||
mTimerJob = null
|
||||
|
||||
@@ -45,7 +45,6 @@ import com.kunzisoft.keepass.app.database.FileDatabaseHistoryAction
|
||||
import com.kunzisoft.keepass.biometric.AdvancedUnlockManager
|
||||
import com.kunzisoft.keepass.education.Education
|
||||
import com.kunzisoft.keepass.icons.IconPackChooser
|
||||
import com.kunzisoft.keepass.services.AdvancedUnlockNotificationService
|
||||
import com.kunzisoft.keepass.settings.preference.IconPackListPreference
|
||||
import com.kunzisoft.keepass.settings.preferencedialogfragment.DurationDialogFragmentCompat
|
||||
import com.kunzisoft.keepass.utils.UriUtil
|
||||
@@ -374,7 +373,6 @@ class NestedAppSettingsFragment : NestedSettingsFragment() {
|
||||
}
|
||||
})
|
||||
}
|
||||
AdvancedUnlockNotificationService.stopService(activity.applicationContext)
|
||||
CipherDatabaseAction.getInstance(activity.applicationContext).deleteAll()
|
||||
}
|
||||
.setNegativeButton(resources.getString(android.R.string.cancel)
|
||||
|
||||
@@ -147,8 +147,10 @@ object PreferencesUtil {
|
||||
|
||||
fun setStyle(context: Context, styleString: String) {
|
||||
var tempThemeString = styleString
|
||||
if (tempThemeString in BuildConfig.STYLES_DISABLED) {
|
||||
tempThemeString = Stylish.defaultStyle(context)
|
||||
if (BuildConfig.CLOSED_STORE || !Education.isEducationScreenReclickedPerformed(context)) {
|
||||
if (tempThemeString in BuildConfig.STYLES_DISABLED) {
|
||||
tempThemeString = Stylish.defaultStyle(context)
|
||||
}
|
||||
}
|
||||
// Store light style to show selection in array list
|
||||
tempThemeString = Stylish.retrieveEquivalentLightStyle(context, tempThemeString)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.kunzisoft.keepass.utils
|
||||
|
||||
import java.text.Normalizer
|
||||
|
||||
object StringUtil {
|
||||
|
||||
fun String.removeLineChars(): String {
|
||||
|
||||
101
app/src/main/java/com/kunzisoft/keepass/utils/UuidUtil.java
Normal file
101
app/src/main/java/com/kunzisoft/keepass/utils/UuidUtil.java
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2019 Jeremy Jamet / Kunzisoft.
|
||||
*
|
||||
* This file is part of KeePassDX.
|
||||
*
|
||||
* KeePassDX 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* KeePassDX 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 KeePassDX. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
package com.kunzisoft.keepass.utils;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import static com.kunzisoft.keepass.utils.StreamBytesUtilsKt.uuidTo16Bytes;
|
||||
|
||||
public class UuidUtil {
|
||||
|
||||
public static @Nullable String toHexString(@Nullable UUID uuid) {
|
||||
if (uuid == null) { return null; }
|
||||
try {
|
||||
byte[] buf = uuidTo16Bytes(uuid);
|
||||
|
||||
int len = buf.length;
|
||||
if (len == 0) {
|
||||
return "";
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
short bt;
|
||||
char high, low;
|
||||
for (byte b : buf) {
|
||||
bt = (short) (b & 0xFF);
|
||||
high = (char) (bt >>> 4);
|
||||
low = (char) (bt & 0x0F);
|
||||
sb.append(byteToChar(high));
|
||||
sb.append(byteToChar(low));
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static @Nullable UUID fromHexString(@Nullable String hexString) {
|
||||
if (hexString == null)
|
||||
return null;
|
||||
|
||||
if (hexString.length() != 32)
|
||||
return null;
|
||||
|
||||
char[] charArray = hexString.toLowerCase().toCharArray();
|
||||
char[] leastSignificantChars = new char[16];
|
||||
char[] mostSignificantChars = new char[16];
|
||||
|
||||
for (int i = 31; i >= 0; i = i-2) {
|
||||
if (i >= 16) {
|
||||
mostSignificantChars[32-i] = charArray[i];
|
||||
mostSignificantChars[31-i] = charArray[i-1];
|
||||
} else {
|
||||
leastSignificantChars[16-i] = charArray[i];
|
||||
leastSignificantChars[15-i] = charArray[i-1];
|
||||
}
|
||||
}
|
||||
StringBuilder standardUUIDString = new StringBuilder();
|
||||
standardUUIDString.append(leastSignificantChars);
|
||||
standardUUIDString.append(mostSignificantChars);
|
||||
standardUUIDString.insert(8, '-');
|
||||
standardUUIDString.insert(13, '-');
|
||||
standardUUIDString.insert(18, '-');
|
||||
standardUUIDString.insert(23, '-');
|
||||
try {
|
||||
return UUID.fromString(standardUUIDString.toString());
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Use short to represent unsigned byte
|
||||
private static char byteToChar(char bt) {
|
||||
if (bt >= 10) {
|
||||
return (char)('A' + bt - 10);
|
||||
}
|
||||
else {
|
||||
return (char)('0' + bt);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@ import com.kunzisoft.keepass.database.element.Database
|
||||
import com.kunzisoft.keepass.database.element.DateInstant
|
||||
import com.kunzisoft.keepass.database.element.Entry
|
||||
import com.kunzisoft.keepass.database.element.security.ProtectedString
|
||||
import com.kunzisoft.keepass.database.search.UuidUtil
|
||||
import com.kunzisoft.keepass.utils.UuidUtil
|
||||
import com.kunzisoft.keepass.model.EntryAttachmentState
|
||||
import com.kunzisoft.keepass.model.StreamDirection
|
||||
import com.kunzisoft.keepass.otp.OtpElement
|
||||
|
||||
@@ -137,7 +137,6 @@
|
||||
<string name="error_string_key">يجب أن يكون لكل سلسلة اسم حقل.</string>
|
||||
<string name="error_wrong_length">أدخل عددًا صحيحًا موجبًا في حقل «الطول».</string>
|
||||
<string name="error_autofill_enable_service">تعذر تمكين خدمة الملء التلقائي.</string>
|
||||
<string name="error_move_folder_in_itself">لا يمكن نقل مجموعة إلى نفسها.</string>
|
||||
<string name="file_not_found_content">تعذر إيجاد الملف. جرِّب فتحه من متصفح ملفات.</string>
|
||||
<string name="file_browser">مدير الملفات</string>
|
||||
<string name="invalid_credentials">تعذر قراءة الإعتمادات.</string>
|
||||
|
||||
@@ -85,7 +85,6 @@
|
||||
<string name="error_copy_group_here">Ovde ne možete kopirati grupu.</string>
|
||||
<string name="error_copy_entry_here">Ovde ne možete kopirati unos.</string>
|
||||
<string name="error_move_entry_here">Ovde ne možete premestiti unos.</string>
|
||||
<string name="error_move_folder_in_itself">Ne možete premestiti grupu u samu sebe.</string>
|
||||
<string name="error_autofill_enable_service">Nije moguće omogućiti uslugu automatskog popunjavanja.</string>
|
||||
<string name="error_wrong_length">Unesite pozitivan ceo broj u polje \"Dužina\".</string>
|
||||
<string name="error_label_exists">Ova oznaka već postoji.</string>
|
||||
|
||||
@@ -288,6 +288,5 @@
|
||||
<string name="error_string_type">Aquest text no coincideix amb l\'element sol·licitat.</string>
|
||||
<string name="error_otp_type">L\'OTP existent no està reconegut per aquest formulari, la seva validació ja no pot generar correctament el token.</string>
|
||||
<string name="error_create_database_file">No s\'ha pogut crear una base de dades amb aquesta contrasenya i arxiu de clau.</string>
|
||||
<string name="error_move_folder_in_itself">No pots moure un grup dintre d\'ell mateix.</string>
|
||||
<string name="error_autofill_enable_service">No s\'ha pogut habilitar el servei d\'autocompletat.</string>
|
||||
</resources>
|
||||
@@ -146,7 +146,6 @@
|
||||
<string name="error_load_database">Databázi se nepodařilo načíst.</string>
|
||||
<string name="error_load_database_KDF_memory">Klíč se nepodařilo načíst, zkuste snížit \"využití paměti\" pro KDF.</string>
|
||||
<string name="error_autofill_enable_service">Službu automatického vyplňování se nepodařilo zapnout.</string>
|
||||
<string name="error_move_folder_in_itself">Není možné přesunout skupinu do ní samotné.</string>
|
||||
<string name="file_not_found_content">Soubor nenalezen. Zkuste jej otevřít ze správce souborů.</string>
|
||||
<string name="list_entries_show_username_title">Zobrazit uživatelská jména</string>
|
||||
<string name="list_entries_show_username_summary">V seznamech záznamů zobrazit uživatelská jména</string>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<string name="add_entry">Tilføj post</string>
|
||||
<string name="add_group">Tilføj gruppe</string>
|
||||
<string name="encryption_algorithm">Krypteringsalgoritme</string>
|
||||
<string name="app_timeout">Timeout</string>
|
||||
<string name="app_timeout">Tid udløbet</string>
|
||||
<string name="app_timeout_summary">Inaktiv tid, før databasen låses</string>
|
||||
<string name="application">Program</string>
|
||||
<string name="menu_app_settings">Indstillinger</string>
|
||||
@@ -145,7 +145,6 @@
|
||||
<string name="error_load_database">Databasen kunne ikke indlæses.</string>
|
||||
<string name="error_load_database_KDF_memory">Kunne ikke indlæse nøglen. Prøv at reducere KDF \"hukommelsesforbrug\".</string>
|
||||
<string name="error_autofill_enable_service">Kunne ikke aktivere autofyld tjenesten.</string>
|
||||
<string name="error_move_folder_in_itself">Kan ikke flytte en gruppe til sig selv.</string>
|
||||
<string name="file_not_found_content">Kunne ikke finde filen. Prøv at åbne den fra filhåndtering.</string>
|
||||
<string name="list_entries_show_username_title">Vis brugernavne</string>
|
||||
<string name="list_entries_show_username_summary">Vis brugernavne i postlister</string>
|
||||
@@ -221,7 +220,7 @@
|
||||
<string name="database_description_title">Database beskrivelse</string>
|
||||
<string name="database_version_title">Databaseversion</string>
|
||||
<string name="text_appearance">Tekst</string>
|
||||
<string name="application_appearance">Program</string>
|
||||
<string name="application_appearance">Brugerflade</string>
|
||||
<string name="other">Øvrige</string>
|
||||
<string name="keyboard">Tastatur</string>
|
||||
<string name="magic_keyboard_title">Magikeyboard</string>
|
||||
@@ -253,9 +252,9 @@
|
||||
<string name="education_entry_new_field_summary">Registrer et ekstra felt, tilføj en værdi og beskyt det eventuelt.</string>
|
||||
<string name="education_unlock_title">Lås databasen op</string>
|
||||
<string name="education_read_only_title">Skrivebeskyt databasen</string>
|
||||
<string name="education_read_only_summary">Skift åbningstilstanden for sessionen.
|
||||
\n
|
||||
\nI \"skrivebeskyttet\" tilstand forhindres utilsigtede ændringer i databasen.
|
||||
<string name="education_read_only_summary">Skift åbningstilstanden for sessionen.
|
||||
\n
|
||||
\nI \"skrivebeskyttet\" tilstand forhindres utilsigtede ændringer i databasen.
|
||||
\nI \"skrivetilstand\" kan man tilføje, slette eller redigere alle elementerne, som det ønskes.</string>
|
||||
<string name="education_field_copy_title">Kopier et felt</string>
|
||||
<string name="education_field_copy_summary">Kopier nemt et felt og indsæt det hvor det ønskes
|
||||
@@ -270,14 +269,14 @@
|
||||
<string name="html_text_ad_free">I modsætning til andre programmer til adgangskodeadministration er denne <strong>annoncefri</strong>, <strong>copyleft fri software</strong>, og indsamler ikke personlige data, uanset hvilken version der bruges.</string>
|
||||
<string name="html_text_buy_pro">Ved at købe pro-versionen, er der adgang til <strong>visuel stil</strong>, og det vil især hjælpe <strong>gennemførelsen af lokale projekter.</strong></string>
|
||||
<string name="html_text_feature_generosity">Denne <strong>visuelle stil</strong> er tilgængelige takket være bidrag.</string>
|
||||
<string name="html_text_donation">For at bevare uafhængighed og altid at være aktiv, regner vi med <strong>bidrag.</strong></string>
|
||||
<string name="html_text_donation">For at bevare uafhængighed og altid at være aktiv, håber vi på dit <strong>bidrag.</strong></string>
|
||||
<string name="html_text_dev_feature">Funktionen er <strong>under udvikling</strong>, og det kræver <strong>bidrag</strong>, for snart at være tilgængelig.</string>
|
||||
<string name="html_text_dev_feature_buy_pro">Ved at købe <strong>pro</strong> versionen,</string>
|
||||
<string name="html_text_dev_feature_contibute">Ved at <strong>bidrage</strong>,</string>
|
||||
<string name="html_text_dev_feature_encourage">tilskyndes udviklerne til at lave <strong>nye funktioner</strong> og <strong>rette fejl</strong> i henhold bemærkninger.</string>
|
||||
<string name="html_text_dev_feature_thanks">Tak for bidrag.</string>
|
||||
<string name="html_text_dev_feature_work_hard">Vi arbejder hårdt på hurtigt at frigive denne funktion.</string>
|
||||
<string name="html_text_dev_feature_upgrade">Glem ikke at holde appen opdateret ved at installere nye versioner.</string>
|
||||
<string name="html_text_dev_feature_upgrade">Husk at holde din app opdateret ved at installere den nyeste version.</string>
|
||||
<string name="download">Hent</string>
|
||||
<string name="contribute">Bidrag</string>
|
||||
<string name="style_choose_title">Tema</string>
|
||||
@@ -341,7 +340,7 @@
|
||||
<string name="menu_advanced_unlock_settings">Avanceret oplåsning</string>
|
||||
<string name="biometric">Biometrisk</string>
|
||||
<string name="biometric_auto_open_prompt_title">Åbn automatisk biometrisk prompt</string>
|
||||
<string name="biometric_auto_open_prompt_summary">Spørg automatisk efter biometri, hvis databasen er konfigureret til at bruge den</string>
|
||||
<string name="biometric_auto_open_prompt_summary">Spørg automatisk efter biometrisk oplåsning, hvis databasen er konfigureret til at bruge det</string>
|
||||
<string name="enable">Aktiver</string>
|
||||
<string name="disable">Deaktiver</string>
|
||||
<string name="master_key">Hovednøgle</string>
|
||||
@@ -427,7 +426,7 @@
|
||||
<string name="hide_broken_locations_title">Skjule brudte databaselinks</string>
|
||||
<string name="hide_broken_locations_summary">Skjul brudte links på listen over seneste databaser</string>
|
||||
<string name="warning_database_read_only">Giv fil skriveadgang for at gemme databasændringer</string>
|
||||
<string name="education_setup_OTP_summary">Opsætning af engangsadgangskodestyring (HOTP / TOTP) for at generere et token anmodet om tofaktorautentisering (2FA).</string>
|
||||
<string name="education_setup_OTP_summary">Opsætning af engangs-adgangskode-styring (HOTP / TOTP) for at generere et token anmodet af tofaktor-autentisering (2FA).</string>
|
||||
<string name="education_setup_OTP_title">Opsætning af OTP</string>
|
||||
<string name="error_create_database">Databasefilen kunne ikke oprettes.</string>
|
||||
<string name="entry_add_attachment">Tilføj vedhæng</string>
|
||||
@@ -531,4 +530,35 @@
|
||||
<string name="error_rebuild_list">Listen kan ikke genopbygges korrekt.</string>
|
||||
<string name="error_database_uri_null">Database-URI kan ikke hentes.</string>
|
||||
<string name="content_description_otp_information">Oplysninger om engangsadgangskode</string>
|
||||
<string name="advanced_unlock_prompt_extract_credential_message">Uddrag databasens legitimationsoplysninger med biometriske data</string>
|
||||
<string name="advanced_unlock_prompt_store_credential_message">Advarsel: hovedadgangskoden skal stadig huskes, hvis der bruges biometrisk genkendelse.</string>
|
||||
<string name="open_advanced_unlock_prompt_unlock_database">Åbn biometriske forespørgsel for at låse databasen op</string>
|
||||
<string name="warning_database_revoked">Adgang til filen tilbagekaldt af filhåndteringsprogrammet, luk databasen og genåbn den fra dens placering.</string>
|
||||
<string name="error_start_database_action">Der opstod en fejl under udførelsen af en handling på databasen.</string>
|
||||
<string name="error_remove_file">Der opstod en fejl med at fjerne fildata.</string>
|
||||
<string name="error_otp_type">Den existerende OTP type kunne ikke genkendes, den kan være tiden er udløbet for at lave dette token.</string>
|
||||
<string name="education_advanced_unlock_summary">Sammenkæd din adgangskode, med din scannede biometriske oplysninger eller enheds legitimationsoplysninger for, hurtigt at låse din database op.</string>
|
||||
<string name="enter">Enter</string>
|
||||
<string name="temp_advanced_unlock_timeout_summary">Varigheden af avanceret oplåsning, før indholdet slettes</string>
|
||||
<string name="device_credential_unlock_enable_summary">Giver dig mulighed for at bruge dine enhedsoplysninger for at åbne databasen</string>
|
||||
<string name="device_credential_unlock_enable_title">Oplåsning via enhedsoplysninger</string>
|
||||
<string name="autofill_inline_suggestions_summary">Forsøg på at vise forslag til automatisk udfyldning direkte fra et kompatibelt tastatur</string>
|
||||
<string name="autofill_inline_suggestions_title">Indbyggede forslag</string>
|
||||
<string name="backspace">Tilbagetast</string>
|
||||
<string name="advanced_unlock_timeout">Avanceret oplåsningstimeout</string>
|
||||
<string name="temp_advanced_unlock_timeout_title">Avanceret oplåsning udløbsdato</string>
|
||||
<string name="temp_advanced_unlock_enable_summary">Gem ikke krypteret indhold for at bruge avanceret oplåsning</string>
|
||||
<string name="temp_advanced_unlock_enable_title">Midlertidig biometrisk oplåsning</string>
|
||||
<string name="device_credential">Enhedsoplysninger</string>
|
||||
<string name="properties">Egenskaber</string>
|
||||
<string name="open_advanced_unlock_prompt_store_credential">Åbn den biometrisk genkendelse for at gemme legitimationsoplysninger</string>
|
||||
<string name="error_export_app_properties">Fejl under eksport af app-egenskaber</string>
|
||||
<string name="success_export_app_properties">App-egenskaber eksporteret</string>
|
||||
<string name="error_import_app_properties">Fejl under importering af app-egenskaber</string>
|
||||
<string name="success_import_app_properties">App-egenskaber importeret</string>
|
||||
<string name="description_app_properties">KeePassDX-egenskaber til at administrere app-indstillinger</string>
|
||||
<string name="export_app_properties_summary">Opret en fil til at eksportere app-egenskaber</string>
|
||||
<string name="export_app_properties_title">Eksporter app-egenskaber</string>
|
||||
<string name="import_app_properties_summary">Vælg en fil for at importere app-egenskaber</string>
|
||||
<string name="import_app_properties_title">Importer appegenskaber</string>
|
||||
</resources>
|
||||
@@ -30,7 +30,7 @@
|
||||
<string name="add_entry">Eintrag hinzufügen</string>
|
||||
<string name="add_group">Gruppe hinzufügen</string>
|
||||
<string name="encryption_algorithm">Verschlüsselungsalgorithmus</string>
|
||||
<string name="app_timeout">App-Timeout</string>
|
||||
<string name="app_timeout">Zeitüberschreitung</string>
|
||||
<string name="app_timeout_summary">Inaktivitätszeit vor dem Sperren der Datenbank</string>
|
||||
<string name="application">App</string>
|
||||
<string name="menu_app_settings">App-Einstellungen</string>
|
||||
@@ -67,7 +67,7 @@
|
||||
<string name="entry_user_name">Benutzername</string>
|
||||
<string name="error_arc4">Die RC4/Arcfour-Stromverschlüsselung wird nicht unterstützt.</string>
|
||||
<string name="error_can_not_handle_uri">KeePassDX kann diese URI-Adresse nicht verarbeiten.</string>
|
||||
<string name="error_file_not_create">Konnte Datei nicht erstellen</string>
|
||||
<string name="error_file_not_create">Datei konnte nicht erstellt werden</string>
|
||||
<string name="error_invalid_db">Datenbank nicht lesbar.</string>
|
||||
<string name="error_invalid_path">Sicherstellen, dass der Pfad korrekt ist.</string>
|
||||
<string name="error_no_name">Namen eingeben.</string>
|
||||
@@ -118,8 +118,8 @@
|
||||
<string name="never">Nie</string>
|
||||
<string name="no_results">Keine Suchergebnisse</string>
|
||||
<string name="no_url_handler">Bitte einen Webbrowser installieren, um diese URL zu öffnen.</string>
|
||||
<string name="omit_backup_search_title">Recycle bin und Backup nicht durchsuchen</string>
|
||||
<string name="omit_backup_search_summary">Die Gruppen „Backup“ und „Recycle bin“ werden bei der Suche nicht berücksichtigt</string>
|
||||
<string name="omit_backup_search_title">Papierkorb und Backup nicht durchsuchen</string>
|
||||
<string name="omit_backup_search_summary">Die Gruppen „Backup“ und „Papierkorb“ werden bei der Suche nicht berücksichtigt</string>
|
||||
<string name="auto_focus_search_title">Schnellsuche</string>
|
||||
<string name="auto_focus_search_summary">Beim Öffnen einer Datenbank eine Suche veranlassen</string>
|
||||
<string name="progress_create">Neue Datenbank anlegen …</string>
|
||||
@@ -167,7 +167,7 @@
|
||||
<string name="file_name">Dateiname</string>
|
||||
<string name="unavailable_feature_text">Dieses Feature konnte nicht gestartet werden.</string>
|
||||
<string name="biometric_unlock_enable_summary">Ermöglicht Ihre Biometrie zu scannen, um die Datenbank zu öffnen.</string>
|
||||
<string name="advanced_unlock">Erweiterte Entsperrung</string>
|
||||
<string name="advanced_unlock">Moderne Entsperrung</string>
|
||||
<string name="biometric_unlock_enable_title">Biometrische Entsperrung</string>
|
||||
<string name="lock">Sperren</string>
|
||||
<string name="list_password_generator_options_summary">Erlaubte Zeichen für Passwortgenerator festlegen</string>
|
||||
@@ -186,7 +186,7 @@
|
||||
<string name="encryption_explanation">Verschlüsselungsalgorithmus der Datenbank wird für sämtliche Daten verwendet.</string>
|
||||
<string name="kdf_explanation">Um den Schlüssel für den Verschlüsselungsalgorithmus zu generieren, wird der Hauptschlüssel umgewandelt, wobei ein zufälliger Salt in der Schlüsselberechnung verwendet wird.</string>
|
||||
<string name="memory_usage">Speichernutzung</string>
|
||||
<string name="memory_usage_explanation">Größe des Speichers der für die Schlüsselableitung genutzt wird.</string>
|
||||
<string name="memory_usage_explanation">Größe des Speichers, der für die Schlüsselableitung genutzt wird.</string>
|
||||
<string name="parallelism">Parallelismus</string>
|
||||
<string name="parallelism_explanation">Grad des Parallelismus (d. h. Anzahl der Threads), der für die Schlüsselableitung genutzt wird.</string>
|
||||
<string name="sort_menu">Sortieren</string>
|
||||
@@ -268,7 +268,6 @@
|
||||
<string name="contribute">Unterstützen</string>
|
||||
<string name="icon_pack_choose_title">Symbolpaket</string>
|
||||
<string name="icon_pack_choose_summary">In der App verwendetes Symbolpaket</string>
|
||||
<string name="error_move_folder_in_itself">Eine Gruppe kann nicht in sich selbst verschoben werden.</string>
|
||||
<string name="menu_copy">Kopieren</string>
|
||||
<string name="menu_move">Verschieben</string>
|
||||
<string name="menu_paste">Einfügen</string>
|
||||
@@ -354,12 +353,12 @@
|
||||
<string name="content_description_update_from_list">Aktualisieren</string>
|
||||
<string name="content_description_keyboard_close_fields">Felder schließen</string>
|
||||
<string name="error_create_database_file">Es ist nicht möglich, eine Datenbank mit diesem Passwort und dieser Schlüsseldatei zu erstellen.</string>
|
||||
<string name="menu_advanced_unlock_settings">Erweitertes Entsperren</string>
|
||||
<string name="menu_advanced_unlock_settings">Modernes Entsperren</string>
|
||||
<string name="biometric">Biometrisch</string>
|
||||
<string name="enable">Aktivieren</string>
|
||||
<string name="disable">Deaktivieren</string>
|
||||
<string name="biometric_auto_open_prompt_title">Abfrage automatisch öffnen</string>
|
||||
<string name="biometric_auto_open_prompt_summary">Automatisch nach der erweiterten Entsperrung fragen, wenn die Datenbank dafür eingerichtet ist</string>
|
||||
<string name="biometric_auto_open_prompt_summary">Automatisch moderne Entsperrung abfragen, wenn die Datenbank dafür eingerichtet ist</string>
|
||||
<string name="master_key">Hauptschlüssel</string>
|
||||
<string name="security">Sicherheit</string>
|
||||
<string name="entry_history">Verlauf</string>
|
||||
@@ -373,7 +372,7 @@
|
||||
<string name="entry_otp">OTP</string>
|
||||
<string name="error_invalid_OTP">Ungültiges OTP-Geheimnis.</string>
|
||||
<string name="error_disallow_no_credentials">Mindestens eine Anmeldeinformation muss festgelegt sein.</string>
|
||||
<string name="error_copy_group_here">Eine Gruppe kann nicht hierher kopiert werden.</string>
|
||||
<string name="error_copy_group_here">Hierher kann keine Gruppe kopiert werden.</string>
|
||||
<string name="error_otp_secret_key">Geheimschlüssel muss im Base32-Format vorliegen.</string>
|
||||
<string name="error_otp_counter">Zähler muss zwischen %1$d und %2$d eingestellt sein.</string>
|
||||
<string name="error_otp_period">Zeitraum muss zwischen %1$d und %2$d Sekunden liegen.</string>
|
||||
@@ -386,7 +385,7 @@
|
||||
<string name="contains_duplicate_uuid_procedure">Problem lösen, indem neue UUIDs für Duplikate generiert werden und danach fortfahren\?</string>
|
||||
<string name="database_opened">Datenbank geöffnet</string>
|
||||
<string name="clipboard_explanation_summary">Eintragsfelder mithilfe der Zwischenablage des Geräts kopieren</string>
|
||||
<string name="advanced_unlock_explanation_summary">Erweitertes Entsperren verwenden, um eine Datenbank einfacher zu öffnen.</string>
|
||||
<string name="advanced_unlock_explanation_summary">Modernes Entsperren verwenden, um eine Datenbank einfacher zu öffnen.</string>
|
||||
<string name="database_data_compression_title">Datenkompression</string>
|
||||
<string name="database_data_compression_summary">Datenkompression reduziert die Datenbankgröße</string>
|
||||
<string name="max_history_items_title">Maximale Anzahl</string>
|
||||
@@ -459,7 +458,7 @@
|
||||
<string name="autofill_web_domain_blocklist_title">Liste gesperrter Web-Domains</string>
|
||||
<string name="autofill_application_id_blocklist_summary">Liste der Apps, in denen ein automatisches Ausfüllen verhindert wird</string>
|
||||
<string name="autofill_application_id_blocklist_title">Liste gesperrter Anwendungen</string>
|
||||
<string name="subdomain_search_summary">Suche Web-Domains mit Subdomain-Beschränkungen</string>
|
||||
<string name="subdomain_search_summary">Web-Domains mit Subdomain-Beschränkungen durchsuchen</string>
|
||||
<string name="subdomain_search_title">Subdomain-Suche</string>
|
||||
<string name="error_string_type">Dieser Text stimmt nicht mit dem angeforderten Element überein.</string>
|
||||
<string name="content_description_add_item">Element hinzufügen</string>
|
||||
@@ -476,7 +475,7 @@
|
||||
<string name="warning_empty_keyfile">Es wird nicht empfohlen, eine leere Schlüsseldatei hinzuzufügen.</string>
|
||||
<string name="warning_empty_keyfile_explanation">Der Inhalt der Key-Datei sollte nie geändert werden und im besten Fall zufällig generierte Daten enthalten.</string>
|
||||
<string name="warning_sure_remove_data">Sollen diese Daten trotzdem entfernt werden\?</string>
|
||||
<string name="warning_remove_unlinked_attachment">Das Entfernen ungekoppelter Daten könnte die Größe Ihrer Datenbank reduzieren, jedoch auch Daten, die von KeePass-Plugins genutzt werden, entfernen.</string>
|
||||
<string name="warning_remove_unlinked_attachment">Das Entfernen nicht verknüpfter Daten kann die Größe Ihrer Datenbank reduzieren, allerdings auch Daten löschen, die von KeePass-Plugins genutzt werden.</string>
|
||||
<string name="warning_replace_file">Das Hochladen dieser Datei wird die bereits Existierende ersetzen.</string>
|
||||
<string name="warning_file_too_big">Eine KeePass-Datenbank sollte nur kleine Dienstprogrammdateien beinhalten (zum Beispiel PGP-Schlüsseldateien).
|
||||
\n
|
||||
@@ -507,22 +506,22 @@
|
||||
<string name="keyboard_save_search_info_title">Gemeinsam genutzte Informationen speichern</string>
|
||||
<string name="warning_empty_recycle_bin">Sollen alle ausgewählten Knoten wirklich aus dem Papierkorb gelöscht werden\?</string>
|
||||
<string name="error_field_name_already_exists">Der Feldname existiert bereits.</string>
|
||||
<string name="advanced_unlock_prompt_store_credential_message">Warnung: Sie müssen sich immer noch an ihr Masterpasswort erinnern, wenn sie die erweiterte Entsperrerkennung verwenden.</string>
|
||||
<string name="open_advanced_unlock_prompt_store_credential">Öffne den erweiterten Entsperrdialog zum Speichern von Anmeldeinformationen</string>
|
||||
<string name="open_advanced_unlock_prompt_unlock_database">Öffnen des erweiterten Entsperrdialogs zum Entsperren der Datenbank</string>
|
||||
<string name="menu_keystore_remove_key">Löschen des Schlüssels zum erweiterten Entsperren</string>
|
||||
<string name="advanced_unlock_prompt_store_credential_title">Erweiterte Entsperrerkennung</string>
|
||||
<string name="education_advanced_unlock_summary">Ihr Passwort verbinden mit Ihrem gescannten biometrischen oder berechtigen Gerät um schnell Ihre Datenbank zu entsperren.</string>
|
||||
<string name="advanced_unlock_prompt_store_credential_message">Warnung: Sie müssen sich immer noch an Ihr Masterpasswort erinnern, wenn Sie die moderne Entsperrerkennung verwenden.</string>
|
||||
<string name="open_advanced_unlock_prompt_store_credential">Zum Speichern der Anmeldeinformationen Dialog zum modernen Entsperren öffnen</string>
|
||||
<string name="open_advanced_unlock_prompt_unlock_database">Dialog zum modernen Entsperren der Datenbank öffnen</string>
|
||||
<string name="menu_keystore_remove_key">Schlüssel für modernes Entsperren löschen</string>
|
||||
<string name="advanced_unlock_prompt_store_credential_title">Moderne Entsperrerkennung</string>
|
||||
<string name="education_advanced_unlock_summary">Verknüpfen Sie Ihr Passwort mit Ihren gescannten Biometriedaten oder Daten zur Geräteanmeldung, um schnell Ihre Datenbank zu entsperren.</string>
|
||||
<string name="education_advanced_unlock_title">Erweiterte Entsperrung der Datenbank</string>
|
||||
<string name="advanced_unlock_timeout">Verfallzeit der erweiterten Entsperrung</string>
|
||||
<string name="temp_advanced_unlock_timeout_summary">Dauer der erweiterten Entsperrung bevor sein Inhalt gelöscht wird</string>
|
||||
<string name="temp_advanced_unlock_timeout_title">Verfall der erweiterten Entsperrung</string>
|
||||
<string name="temp_advanced_unlock_enable_summary">Keinen verschlüsselten Inhalt speichern, um erweiterte Entsperrung zu benutzen</string>
|
||||
<string name="temp_advanced_unlock_enable_title">Temporäre erweiterte Entsperrung</string>
|
||||
<string name="temp_advanced_unlock_timeout_summary">Laufzeit der modernen Entsperrung bevor ihr Inhalt gelöscht wird</string>
|
||||
<string name="temp_advanced_unlock_timeout_title">Verfall der modernen Entsperrung</string>
|
||||
<string name="temp_advanced_unlock_enable_summary">Keinen verschlüsselten Inhalt speichern, um moderne Entsperrung zu benutzen</string>
|
||||
<string name="temp_advanced_unlock_enable_title">Temporär moderne Entsperrung</string>
|
||||
<string name="device_credential_unlock_enable_summary">Erlaubt Ihn die Geräteanmeldedaten zum Öffnen der Datenbank zu verwenden</string>
|
||||
<string name="advanced_unlock_tap_delete">Drücken um erweiterte Entsperrschlüssel zu löschen</string>
|
||||
<string name="advanced_unlock_tap_delete">Drücken, um Schlüssel für modernes Entsperren zu löschen</string>
|
||||
<string name="content">Inhalt</string>
|
||||
<string name="advanced_unlock_prompt_extract_credential_title">Öffne Datenbank mit erweiterter Entsperrerkennung</string>
|
||||
<string name="advanced_unlock_prompt_extract_credential_title">Datenbank mit moderner Entsperrerkennung öffnen</string>
|
||||
<string name="enter">Eingabetaste</string>
|
||||
<string name="backspace">Rücktaste</string>
|
||||
<string name="select_entry">Wähle Eintrag</string>
|
||||
@@ -531,13 +530,32 @@
|
||||
<string name="advanced_unlock_delete_all_key_warning">Alle Verschlüsselungsschlüssel, die mit der erweiterten Entsperrerkennung zusammenhängen, löschen\?</string>
|
||||
<string name="device_credential_unlock_enable_title">Geräteanmeldedaten entsperren</string>
|
||||
<string name="device_credential">Geräteanmeldedaten</string>
|
||||
<string name="credential_before_click_advanced_unlock_button">Geben sie das Passwort ein, und dann klicken sie den \"Erweitertes Entsperren\" Knopf.</string>
|
||||
<string name="advanced_unlock_prompt_not_initialized">Initialisieren des erweitertes Entsperren Dialogs fehlgeschlagen.</string>
|
||||
<string name="advanced_unlock_scanning_error">Erweitertes Entsperren Fehler: %1$s</string>
|
||||
<string name="advanced_unlock_not_recognized">Konnte den Abdruck des erweiterten Entsperrens nicht erkennen</string>
|
||||
<string name="advanced_unlock_invalid_key">Kann den Schlüssel zum erweiterten Entsperren nicht lesen. Bitte löschen sie ihn und wiederholen sie Prozedur zum Erkennen des Entsperrens.</string>
|
||||
<string name="advanced_unlock_prompt_extract_credential_message">Extrahiere Datenbankanmeldedaten mit Daten aus erweitertem Entsperren</string>
|
||||
<string name="credential_before_click_advanced_unlock_button">Geben Sie das Passwort ein und klicken Sie dann auf diesen Knopf.</string>
|
||||
<string name="advanced_unlock_prompt_not_initialized">Dialog für modernes Entsperren konnte nicht gestartet werden.</string>
|
||||
<string name="advanced_unlock_scanning_error">Fehler beim modernen Entsperren: %1$s</string>
|
||||
<string name="advanced_unlock_not_recognized">Abdruck zum modernen Entsperren nicht erkannt</string>
|
||||
<string name="advanced_unlock_invalid_key">Schlüssel zum modernen Entsperren nicht lesbar. Bitte löschen Sie ihn und wiederholen Sie die Prozedur zur Entsperrerkennung.</string>
|
||||
<string name="advanced_unlock_prompt_extract_credential_message">Datenbankanmeldedaten mit Daten aus moderner Entsperrung extrahieren</string>
|
||||
<string name="error_rebuild_list">Die Liste kann nicht ordnungsgemäß neu erstellt werden.</string>
|
||||
<string name="error_database_uri_null">Datenbank-URI kann nicht abgerufen werden.</string>
|
||||
<string name="menu_reload_database">Datenbank neu laden</string>
|
||||
<string name="warning_database_info_changed_options">Überschreiben Sie die externen Änderungen, indem Sie die Datenbank speichern, oder laden Sie sie mit den neuesten Änderungen neu.</string>
|
||||
<string name="error_file_to_big">Die Datei, die hochgeladen werden soll, ist zu groß.</string>
|
||||
<string name="warning_database_info_changed">Die in Ihrer Datenbank enthaltenen Informationen wurden außerhalb der App geändert.</string>
|
||||
<string name="error_remove_file">Beim Löschen der Datei trat ein Fehler auf.</string>
|
||||
<string name="error_duplicate_file">Die Datei gibt es bereits.</string>
|
||||
<string name="error_upload_file">Beim Hochladen der Datei trat ein Fehler auf.</string>
|
||||
<string name="import_app_properties_title">Importieren von Anwendungeneigenschaften</string>
|
||||
<string name="error_start_database_action">Beim Ausführen einer Aktion in der Datenbank ist ein Fehler aufgetreten.</string>
|
||||
<string name="error_otp_type">Der vorhandene Einmalpassworttyp wird von diesem Formular nicht erkannt, seine Validierung erzeugt das Token möglicherweise nicht mehr korrekt.</string>
|
||||
<string name="content_description_otp_information">Informationen zu Einmalpasswörtern</string>
|
||||
<string name="warning_database_revoked">Auf die Datei kann nicht zugegriffen werden. Schließen Sie die Datenbank und öffnen Sie die Datei erneut.</string>
|
||||
<string name="error_export_app_properties">Fehler beim Exportieren der App-Eigenschaften</string>
|
||||
<string name="success_export_app_properties">App-Eigenschaften exportiert</string>
|
||||
<string name="error_import_app_properties">Fehler beim Importieren der App-Eigenschaften</string>
|
||||
<string name="success_import_app_properties">App-Eigenschaften importiert</string>
|
||||
<string name="export_app_properties_summary">Erstellen einer Datei zum Exportieren von App-Eigenschaften</string>
|
||||
<string name="export_app_properties_title">App-Eigenschaften exportieren</string>
|
||||
<string name="import_app_properties_summary">Wählen Sie eine Datei zum Importieren von App-Eigenschaften</string>
|
||||
<string name="error_move_group_here">Sie können hier keine Gruppe verschieben.</string>
|
||||
</resources>
|
||||
@@ -24,7 +24,7 @@
|
||||
<string name="add_entry">Προσθήκη καταχώρησης</string>
|
||||
<string name="add_group">Προσθήκη ομάδας</string>
|
||||
<string name="encryption_algorithm">Αλγόριθμος κρυπτογράφησης</string>
|
||||
<string name="app_timeout">Χρονικό όριο εφαρμογής</string>
|
||||
<string name="app_timeout">Χρονικό όριο</string>
|
||||
<string name="app_timeout_summary">Χρόνος αδράνειας πριν από το κλείδωμα της βάσης δεδομένων</string>
|
||||
<string name="application">Εφαρμογή</string>
|
||||
<string name="menu_app_settings">Ρυθμίσεις εφαρμογής</string>
|
||||
@@ -251,7 +251,6 @@
|
||||
<string name="style_choose_summary">Θέμα που χρησιμοποιείται στην εφαρμογή</string>
|
||||
<string name="icon_pack_choose_title">Πακέτο Εικονιδίων</string>
|
||||
<string name="icon_pack_choose_summary">Πακέτο εικονιδίων που χρησιμοποιείται στην εφαρμογή</string>
|
||||
<string name="error_move_folder_in_itself">Δεν μπορείτε να μετακινήσετε μια ομάδα μέσα στον εαυτό της.</string>
|
||||
<string name="menu_copy">Αντιγραφή</string>
|
||||
<string name="menu_move">Μετακίνηση</string>
|
||||
<string name="menu_paste">Επικόλληση</string>
|
||||
@@ -550,4 +549,17 @@
|
||||
<string name="content_description_otp_information">Πληροφορίες One-time κωδικού πρόσβασης</string>
|
||||
<string name="error_remove_file">Παρουσιάστηκε σφάλμα κατά την κατάργηση των δεδομένων αρχείου.</string>
|
||||
<string name="error_duplicate_file">Τα δεδομένα αρχείου υπάρχουν ήδη.</string>
|
||||
<string name="properties">Ιδιότητες</string>
|
||||
<string name="error_export_app_properties">Σφάλμα κατά την εξαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="success_export_app_properties">Έγινε εξαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="error_import_app_properties">Σφάλμα κατά την εισαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="success_import_app_properties">Έγινε εισαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="description_app_properties">Ιδιότητες KeePassDX για διαχείριση ρυθμίσεων εφαρμογής</string>
|
||||
<string name="export_app_properties_summary">Δημιουργήστε ένα αρχείο για εξαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="export_app_properties_title">Εξαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="import_app_properties_summary">Επιλέξτε ένα αρχείο για εισαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="import_app_properties_title">Εισαγωγή ιδιοτήτων εφαρμογής</string>
|
||||
<string name="error_start_database_action">Παρουσιάστηκε σφάλμα κατά την εκτέλεση μιας ενέργειας στη βάση δεδομένων.</string>
|
||||
<string name="error_move_group_here">Δεν μπορείτε να μετακινήσετε μια ομάδα εδώ.</string>
|
||||
<string name="error_word_reserved">Αυτή η λέξη είναι δεσμευμένη και δεν μπορεί να χρησιμοποιηθεί.</string>
|
||||
</resources>
|
||||
@@ -267,7 +267,6 @@
|
||||
<string name="edit_entry">Editar entrada</string>
|
||||
<string name="error_load_database">No se pudo cargar la base de datos.</string>
|
||||
<string name="error_load_database_KDF_memory">No se pudo cargar la clave. Intente disminuir el uso de memoria de KDF.</string>
|
||||
<string name="error_move_folder_in_itself">No puede mover un grupo dentro de sí mismo.</string>
|
||||
<string name="list_entries_show_username_title">Enseña nombres de usuario</string>
|
||||
<string name="list_entries_show_username_summary">Enseña nombres de usuador en las listras de entradas</string>
|
||||
<string name="menu_copy">Copiar</string>
|
||||
|
||||
@@ -141,7 +141,6 @@
|
||||
<string name="error_copy_group_here">شما نمی توانید یک گروه را در اینجا کپی کنید.</string>
|
||||
<string name="error_copy_entry_here">شما نمی توانید یک ورودی را در اینجا کپی کنید.</string>
|
||||
<string name="error_move_entry_here">شما نمی توانید یک ورودی را به اینجا منتقل کنید.</string>
|
||||
<string name="error_move_folder_in_itself">شما نمی توانید یک گروه را به خود منتقل کنید.</string>
|
||||
<string name="error_autofill_enable_service">قادر به فعال کردن سرویس پر کردن خودکار نبود.</string>
|
||||
<string name="error_wrong_length">یک عدد کامل مثبت را در زمینه \"طول\" وارد کنید.</string>
|
||||
<string name="error_label_exists">این برچسب در حال حاضر وجود دارد.</string>
|
||||
|
||||
@@ -308,7 +308,6 @@
|
||||
<string name="error_copy_group_here">Et voi kopioida ryhmää tänne.</string>
|
||||
<string name="error_copy_entry_here">Et voi kopioida tietuetta tänne.</string>
|
||||
<string name="error_move_entry_here">Et voi siirtää tietuetta tänne.</string>
|
||||
<string name="error_move_folder_in_itself">Et voi siirtää ryhmää itsensä sisälle.</string>
|
||||
<string name="error_autofill_enable_service">Automaattista täyttöä ei voitu ottaa käyttöön.</string>
|
||||
<string name="content_description_node_children">Solmun lapset</string>
|
||||
</resources>
|
||||
@@ -26,7 +26,7 @@
|
||||
<string name="encryption">Chiffrement</string>
|
||||
<string name="encryption_algorithm">Algorithme de chiffrement</string>
|
||||
<string name="key_derivation_function">Fonction de dérivation de clé</string>
|
||||
<string name="app_timeout">Délai d’expiration de l’application</string>
|
||||
<string name="app_timeout">Délai d’expiration</string>
|
||||
<string name="app_timeout_summary">Durée d’inactivité avant le verrouillage de la base de données</string>
|
||||
<string name="application">Application</string>
|
||||
<string name="menu_app_settings">Paramètres de l’application</string>
|
||||
@@ -275,7 +275,6 @@
|
||||
</string-array>
|
||||
<string name="icon_pack_choose_title">Collection d’icônes</string>
|
||||
<string name="icon_pack_choose_summary">Collection d’icônes utilisées dans l’application</string>
|
||||
<string name="error_move_folder_in_itself">Vous ne pouvez pas déplacer un groupe dans lui-même.</string>
|
||||
<string name="menu_copy">Copier</string>
|
||||
<string name="menu_move">Déplacer</string>
|
||||
<string name="menu_paste">Coller</string>
|
||||
@@ -555,7 +554,20 @@
|
||||
<string name="style_brightness_title">Luminosité de thème</string>
|
||||
<string name="error_remove_file">Une erreur s\'est produite lors de la suppression des données du fichier.</string>
|
||||
<string name="error_duplicate_file">Les données du fichier existent déjà.</string>
|
||||
<string name="error_upload_file">Une erreur s\'est produite lors du téléchargement des données du fichier.</string>
|
||||
<string name="error_file_to_big">Le fichier que vous essayez de téléverser est trop gros.</string>
|
||||
<string name="error_upload_file">Une erreur est survenue lors du téléversement des données du fichier.</string>
|
||||
<string name="error_file_to_big">Le fichier que vous essayez de téléverser est trop volumineux.</string>
|
||||
<string name="content_description_otp_information">Information sur le mot de passe à usage unique</string>
|
||||
<string name="properties">Propriétés</string>
|
||||
<string name="error_export_app_properties">Erreur lors de l\'exportation des propriétés de l\'application</string>
|
||||
<string name="success_export_app_properties">Propriétés de l\'application exportées</string>
|
||||
<string name="error_import_app_properties">Erreur lors de l\'importation des propriétés de l\'application</string>
|
||||
<string name="success_import_app_properties">Propriétés de l\'application importées</string>
|
||||
<string name="description_app_properties">Propriétés KeePassDX pour gérer les paramètres de l\'application</string>
|
||||
<string name="export_app_properties_summary">Créer un fichier pour exporter les propriétés de l\'application</string>
|
||||
<string name="export_app_properties_title">Export des propriétés de l\'app</string>
|
||||
<string name="import_app_properties_summary">Sélectionner un fichier pour importer les propriétés de l\'application</string>
|
||||
<string name="import_app_properties_title">Importation des propriétés de l\'appli</string>
|
||||
<string name="error_start_database_action">Une erreur s\'est produite lors de l\'exécution d\'une action sur la base de données.</string>
|
||||
<string name="error_move_group_here">Vous ne pouvez pas déplacer un groupe ici.</string>
|
||||
<string name="error_word_reserved">Ce mot est réservé et ne peut pas être utilisé.</string>
|
||||
</resources>
|
||||
@@ -242,7 +242,6 @@
|
||||
<string name="error_disallow_no_credentials">Barem jedan skup podataka za prijavu mora biti postavljen.</string>
|
||||
<string name="error_string_key">Svaki niz mora imati ime polja.</string>
|
||||
<string name="error_autofill_enable_service">Nije moguće aktivirati uslugu automatskog ispunjavanja.</string>
|
||||
<string name="error_move_folder_in_itself">Nije moguće premjestiti grupu u samu sebe.</string>
|
||||
<string name="error_move_entry_here">Unos se ne može ovdje premijestiti.</string>
|
||||
<string name="error_copy_entry_here">Unos se ne može ovdje kopirati.</string>
|
||||
<string name="error_copy_group_here">Grupa se ne može ovjde kopirati.</string>
|
||||
@@ -545,4 +544,15 @@
|
||||
<string name="content_description_otp_information">Podaci jednokratne lozinke</string>
|
||||
<string name="error_remove_file">Tijekom uklanjanja podataka datoteke došlo je do greške.</string>
|
||||
<string name="error_duplicate_file">Podaci datoteke već postoje.</string>
|
||||
<string name="properties">Svojstva</string>
|
||||
<string name="error_export_app_properties">Greška tijekom izvoza svojstava aplikacije</string>
|
||||
<string name="success_export_app_properties">Svojstva aplikacije su izvezena</string>
|
||||
<string name="error_import_app_properties">Greška tijekom uvoza svojstava aplikacije</string>
|
||||
<string name="success_import_app_properties">Svojstva aplikacije su uvezena</string>
|
||||
<string name="description_app_properties">KeePassDX svojstva za upravljanje postavkama aplikacije</string>
|
||||
<string name="export_app_properties_summary">Stvori datoteku za izvoz svojstva aplikacije</string>
|
||||
<string name="export_app_properties_title">Izvezi svojstva aplikacije</string>
|
||||
<string name="import_app_properties_summary">Odaberi datoteku za uvoz svojstva aplikacije</string>
|
||||
<string name="import_app_properties_title">Uvezi svojstva aplikacije</string>
|
||||
<string name="error_start_database_action">Došlo je do greške tijekom izvođenja radnje u bazi podataka.</string>
|
||||
</resources>
|
||||
@@ -154,7 +154,6 @@
|
||||
<string name="error_load_database">Az adatbázis betöltése meghiúsult.</string>
|
||||
<string name="error_load_database_KDF_memory">A kulcs nem tölthető be. Próbálja meg csökkenteni a KDF „Memóriahasználatot”.</string>
|
||||
<string name="error_autofill_enable_service">Az automatikus kitöltési szolgáltatás nem engedélyezhető.</string>
|
||||
<string name="error_move_folder_in_itself">Nem helyezheti át a csoportot saját magába.</string>
|
||||
<string name="list_entries_show_username_title">Felhasználónevek megjelenítése</string>
|
||||
<string name="list_entries_show_username_summary">Felhasználónevek megjelenítése a bejegyzéslistákban</string>
|
||||
<string name="copy_field">%1$s másolata</string>
|
||||
|
||||
@@ -72,7 +72,6 @@
|
||||
<string name="error_copy_group_here">Anda tidak bisa menyalin grup di sini.</string>
|
||||
<string name="error_copy_entry_here">Anda tidak bisa menyalin entri di sini.</string>
|
||||
<string name="error_move_entry_here">Anda tidak bisa memindahkan entri ke sini.</string>
|
||||
<string name="error_move_folder_in_itself">Anda tidak bisa memindahkan grup ke grup itu sendiri.</string>
|
||||
<string name="error_autofill_enable_service">Tidak bisa mengaktifkan layanan IsiOtomatis.</string>
|
||||
<string name="error_wrong_length">Masukkan bilangan bulat di bidang \"Panjang\".</string>
|
||||
<string name="error_label_exists">Label ini sudah ada.</string>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<string name="add_entry">Aggiungi elemento</string>
|
||||
<string name="add_group">Aggiungi gruppo</string>
|
||||
<string name="encryption_algorithm">Algoritmo di cifratura</string>
|
||||
<string name="app_timeout">Scadenza app</string>
|
||||
<string name="app_timeout">Timeout</string>
|
||||
<string name="app_timeout_summary">Tempo di inattività prima del blocco del database</string>
|
||||
<string name="application">App</string>
|
||||
<string name="menu_app_settings">Impostazioni app</string>
|
||||
@@ -68,7 +68,7 @@
|
||||
<string name="error_invalid_path">Assicurati che il percorso sia corretto.</string>
|
||||
<string name="error_no_name">Inserisci un nome.</string>
|
||||
<string name="error_out_of_memory">Memoria insufficiente per caricare l\'intero database.</string>
|
||||
<string name="error_pass_gen_type">Deve essere selezionato almeno un tipo di generazione password.</string>
|
||||
<string name="error_pass_gen_type">Selezionare almeno un tipo di generazione della password.</string>
|
||||
<string name="error_pass_match">Le password non corrispondono.</string>
|
||||
<string name="error_rounds_too_large">«Livello» troppo alto. Impostato a 2147483648.</string>
|
||||
<string name="error_string_key">Ogni stringa deve avere un nome.</string>
|
||||
@@ -154,7 +154,6 @@
|
||||
<string name="extended_ASCII">ASCII esteso</string>
|
||||
<string name="error_nokeyfile">Seleziona un file chiave.</string>
|
||||
<string name="error_autofill_enable_service">Attivazione del servizio di auto-completamento fallita.</string>
|
||||
<string name="error_move_folder_in_itself">Non puoi spostare un gruppo in se stesso.</string>
|
||||
<string name="menu_form_filling_settings">Riempimento campi</string>
|
||||
<string name="menu_copy">Copia</string>
|
||||
<string name="menu_move">Sposta</string>
|
||||
@@ -535,7 +534,7 @@
|
||||
<string name="autofill_inline_suggestions_summary">Mostra i suggerimenti di riempimento campi in una tastiera compatibile</string>
|
||||
<string name="autofill_inline_suggestions_title">Suggerimenti in linea</string>
|
||||
<string name="warning_database_revoked">L\'accesso al file è stato revocato dal file manager, chiudi il database e riaprilo dalla sua posizione originale.</string>
|
||||
<string name="warning_database_info_changed_options">Sovrascrivi le modifiche esterne salvano il database o ricaricalo con gli ultimi cambiamenti.</string>
|
||||
<string name="warning_database_info_changed_options">Sovrascrivi le modifiche esterne salvando il database o ricaricalo con gli ultimi cambiamenti.</string>
|
||||
<string name="warning_database_info_changed">I dati nel tuo database sono stati modificati al di fuori di questa app.</string>
|
||||
<string name="menu_reload_database">Ricarica database</string>
|
||||
<string name="error_otp_type">Il tipo di OTP esistente non è riconosciuto da questo modulo, la sua convalida potrebbe non generare più correttamente il token.</string>
|
||||
@@ -553,4 +552,16 @@
|
||||
<string name="error_duplicate_file">Il file esiste già.</string>
|
||||
<string name="error_upload_file">Si è verificato un errore durante il caricamento del file.</string>
|
||||
<string name="error_file_to_big">Il file che stai cercando di caricare è troppo grande.</string>
|
||||
<string name="error_start_database_action">Si è verificato un errore durante l\'esecuzione di una azione sul database.</string>
|
||||
<string name="properties">Proprietà</string>
|
||||
<string name="error_export_app_properties">Errore durante l\'esportazione delle proprietà dell\'app</string>
|
||||
<string name="success_export_app_properties">Proprietà dell\'app esportate</string>
|
||||
<string name="error_import_app_properties">Errore durante l\'importazione delle proprietà dell\'app</string>
|
||||
<string name="success_import_app_properties">Proprietà dell\'app importate</string>
|
||||
<string name="description_app_properties">Proprietà di KeePassDX per gestire le impostazioni dell\'app</string>
|
||||
<string name="export_app_properties_summary">Crea un file in cui esportare le proprietà dell\'app</string>
|
||||
<string name="export_app_properties_title">Esporta le proprietà dell\'app</string>
|
||||
<string name="import_app_properties_summary">Seleziona un file da cui importare le proprietà dell\'app</string>
|
||||
<string name="import_app_properties_title">Importa le proprietà dell\'app</string>
|
||||
<string name="error_word_reserved">Questa parola è riservata e non può essere usata.</string>
|
||||
</resources>
|
||||
@@ -120,7 +120,6 @@
|
||||
<string name="error_label_exists">このラベルはすでに存在します。</string>
|
||||
<string name="error_wrong_length">[長さ] フィールドには正の整数を入力してください。</string>
|
||||
<string name="error_autofill_enable_service">自動入力サービスを有効にできませんでした。</string>
|
||||
<string name="error_move_folder_in_itself">グループを自分自身の中に移動することはできません。</string>
|
||||
<string name="error_move_entry_here">ここではエントリーを移動することはできません。</string>
|
||||
<string name="error_copy_entry_here">ここではエントリーをコピーすることはできません。</string>
|
||||
<string name="error_copy_group_here">ここではグループをコピーすることはできません。</string>
|
||||
@@ -243,7 +242,7 @@
|
||||
<string name="sort_title">タイトル</string>
|
||||
<string name="sort_username">ユーザー名</string>
|
||||
<string name="sort_creation_time">作成日</string>
|
||||
<string name="sort_last_modify_time">変更日</string>
|
||||
<string name="sort_last_modify_time">変更日時</string>
|
||||
<string name="sort_last_access_time">最終アクセス</string>
|
||||
<string name="special">特殊文字</string>
|
||||
<string name="search">検索</string>
|
||||
@@ -452,7 +451,7 @@
|
||||
<string name="education_donation_title">参加</string>
|
||||
<string name="education_donation_summary">安定性やセキュリティを向上させ、機能を追加することを支援します。</string>
|
||||
<string name="html_text_ad_free">多くのパスワード管理アプリとは異なり、このアプリは<strong>広告なし</strong>かつ<strong>コピーレフトの自由ソフトウェア</strong>です。どのバージョンを使っても、サーバー上で個人情報が収集されることはありません。</string>
|
||||
<string name="html_text_buy_pro">pro バージョンを購入すると、この<strong>ビジュアル スタイル</strong>にアクセスできるようになり、また<strong>コミュニティ プロジェクトの実現</strong>を特に支援できます。</string>
|
||||
<string name="html_text_buy_pro">Pro バージョンを購入すると、この<strong>ビジュアル スタイル</strong>にアクセスできるようになり、また<strong>コミュニティ プロジェクトの実現</strong>を特に支援できます。</string>
|
||||
<string name="html_text_feature_generosity">この<strong>ビジュアル スタイル</strong>はあなたの厚意により利用可能となります。</string>
|
||||
<string name="html_text_donation">自由を維持し活発に開発し続けるために、私たちはあなたの<strong>貢献</strong>に期待しています。</string>
|
||||
<string name="html_text_dev_feature">この機能は<strong>開発中</strong>であり、早期に提供するにはあなたの<strong>貢献</strong>が必要です。</string>
|
||||
@@ -542,11 +541,22 @@
|
||||
<string name="error_otp_type">既存の OTP の種類がこのフォームでは認識されていないため、フォームの検証によってトークンが正しく生成されなくなる可能性があります。</string>
|
||||
<string name="icon_section_custom">カスタム</string>
|
||||
<string name="icon_section_standard">標準</string>
|
||||
<string name="style_brightness_summary">ライトテーマとダークテーマのどちらかを選択します</string>
|
||||
<string name="style_brightness_summary">ライト / ダークテーマを選択します</string>
|
||||
<string name="style_brightness_title">テーマの明るさ</string>
|
||||
<string name="error_remove_file">ファイルデータの削除中にエラーが発生しました。</string>
|
||||
<string name="error_duplicate_file">ファイルデータはすでに存在します。</string>
|
||||
<string name="error_upload_file">ファイルデータのアップロード中にエラーが発生しました。</string>
|
||||
<string name="error_file_to_big">アップロードしようとしているファイルが大きすぎます。</string>
|
||||
<string name="content_description_otp_information">ワンタイムパスワードについて</string>
|
||||
<string name="import_app_properties_summary">アプリのプロパティをインポートするファイルを選択します</string>
|
||||
<string name="import_app_properties_title">アプリのプロパティをインポートする</string>
|
||||
<string name="properties">プロパティ</string>
|
||||
<string name="error_export_app_properties">アプリのプロパティのエクスポート時にエラーが発生しました</string>
|
||||
<string name="success_export_app_properties">アプリのプロパティをエクスポートしました</string>
|
||||
<string name="error_import_app_properties">アプリのプロパティのインポート時にエラーが発生しました</string>
|
||||
<string name="success_import_app_properties">アプリのプロパティをインポートしました</string>
|
||||
<string name="description_app_properties">アプリの設定を管理する KeePassDX のプロパティ</string>
|
||||
<string name="export_app_properties_summary">アプリのプロパティをエクスポートするファイルを作成します</string>
|
||||
<string name="export_app_properties_title">アプリのプロパティをエクスポートする</string>
|
||||
<string name="error_start_database_action">データベースに対するアクションの実行中にエラーが発生しました。</string>
|
||||
</resources>
|
||||
@@ -78,7 +78,6 @@
|
||||
<string name="error_string_key">각 항목은 필드 이름을 가져야 합니다.</string>
|
||||
<string name="error_wrong_length">\"길이\" 필드에는 양수를 입력하십시오.</string>
|
||||
<string name="error_autofill_enable_service">자동 채우기 서비스를 활성화할 수 없습니다.</string>
|
||||
<string name="error_move_folder_in_itself">그룹을 자신에게 옮길 수 없습니다.</string>
|
||||
<string name="field_name">필드 이름</string>
|
||||
<string name="field_value">필드 값</string>
|
||||
<string name="file_not_found_content">파일을 찾을 수 없습니다. 파일 탐색기에서 열리는지 확인해 주세요.</string>
|
||||
|
||||
@@ -128,7 +128,6 @@
|
||||
<string name="error_create_database_file">ഈ പാസ്വേഡും കീഫയലും ഉപയോഗിച്ച് ഡാറ്റാബേസ് സൃഷ്ടിക്കാൻ കഴിയില്ല.</string>
|
||||
<string name="error_copy_group_here">നിങ്ങൾക്ക് ഇവിടെ ഒരു ഗ്രൂപ്പ് പകർത്താൻ കഴിയില്ല.</string>
|
||||
<string name="error_copy_entry_here">നിങ്ങൾക്ക് ഇവിടെ ഒരു എൻട്രി പകർത്താൻ കഴിയില്ല.</string>
|
||||
<string name="error_move_folder_in_itself">നിങ്ങൾക്ക് ഒരു ഗ്രൂപ്പിനെ അതിലേക്ക് നീക്കാൻ കഴിയില്ല.</string>
|
||||
<string name="error_label_exists">ഈ ലേബൽ ഇതിനകം നിലവിലുണ്ട്.</string>
|
||||
<string name="error_string_key">ഓരോ സ്ട്രിംഗിനും ഒരു ഫീൽഡ് നാമം ഉണ്ടായിരിക്കണം.</string>
|
||||
<string name="error_rounds_too_large">\"Transformation rounds\" too high. Setting to 2147483648.</string>
|
||||
|
||||
@@ -78,7 +78,6 @@
|
||||
<string name="error_string_key">Hver streng må ha et feltnavn.</string>
|
||||
<string name="error_wrong_length">Skriv inn et positivt heltall i \"Lengde\" feltet.</string>
|
||||
<string name="error_autofill_enable_service">Autofyll-tjenesten kan ikke skrus på.</string>
|
||||
<string name="error_move_folder_in_itself">Kan ikke flytte gruppe inn i seg selv.</string>
|
||||
<string name="field_name">Feltnavn</string>
|
||||
<string name="field_value">Feltverdi</string>
|
||||
<string name="file_not_found_content">Fant ikke filen. Prøv å åpne den fra din innholdsleverandør.</string>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<string name="add_entry">Item toevoegen</string>
|
||||
<string name="add_group">Groep toevoegen</string>
|
||||
<string name="encryption_algorithm">Algoritme</string>
|
||||
<string name="app_timeout">App-time-out</string>
|
||||
<string name="app_timeout">Time-out</string>
|
||||
<string name="app_timeout_summary">Tijd tot vergrendeling bij inactiviteit</string>
|
||||
<string name="application">App</string>
|
||||
<string name="menu_app_settings">App-instellingen</string>
|
||||
@@ -143,7 +143,6 @@
|
||||
<string name="error_load_database_KDF_memory">De sleutel kan niet worden geladen. Probeer om het \"geheugengebruik\" van KDF te verminderen.</string>
|
||||
<string name="error_string_key">Elke zin moet een veldnaam bevatten.</string>
|
||||
<string name="error_autofill_enable_service">De dienst automatisch aanvullen kan niet worden ingeschakeld.</string>
|
||||
<string name="error_move_folder_in_itself">Een groep kan niet naar zichzelf worden verplaatst.</string>
|
||||
<string name="field_name">Veldnaam</string>
|
||||
<string name="field_value">Veldwaarde</string>
|
||||
<string name="file_not_found_content">Bestand niet gevonden. Probeer opnieuw te openen via bestandsbeheer.</string>
|
||||
@@ -552,4 +551,17 @@
|
||||
<string name="error_upload_file">Er is een fout opgetreden bij het uploaden van de bestandsgegevens.</string>
|
||||
<string name="error_file_to_big">Het bestand dat je probeert te uploaden, is te groot.</string>
|
||||
<string name="content_description_otp_information">Eenmalig wachtwoord-informatie</string>
|
||||
<string name="properties">Eigenschappen</string>
|
||||
<string name="error_export_app_properties">Fout tijdens het exporteren van app-eigenschappen</string>
|
||||
<string name="success_export_app_properties">App-eigenschappen geëxporteerd</string>
|
||||
<string name="error_import_app_properties">Fout tijdens het importeren van app-eigenschappen</string>
|
||||
<string name="success_import_app_properties">App-eigenschappen geïmporteerd</string>
|
||||
<string name="description_app_properties">KeePassDX-eigenschappen om app-instellingen te beheren</string>
|
||||
<string name="export_app_properties_summary">Maak een bestand om app-eigenschappen te exporteren</string>
|
||||
<string name="export_app_properties_title">App-eigenschappen exporteren</string>
|
||||
<string name="import_app_properties_summary">Selecteer een bestand om app-eigenschappen te importeren</string>
|
||||
<string name="import_app_properties_title">App-eigenschappen importeren</string>
|
||||
<string name="error_start_database_action">Er is een fout opgetreden bij het uitvoeren van een actie op de database.</string>
|
||||
<string name="error_move_group_here">Je kunt hier geen groep verplaatsen.</string>
|
||||
<string name="error_word_reserved">Dit woord is gereserveerd en kan niet worden gebruikt.</string>
|
||||
</resources>
|
||||
@@ -244,7 +244,6 @@
|
||||
<string name="error_create_database">ਡਾਟਾਬੇਸ ਫਾਈਲ ਬਣਾਉਣ ਲਈ ਅਸਮਰੱਥ।</string>
|
||||
<string name="error_copy_group_here">ਤੁਸੀਂ ਗਰੁੱਪ ਨੂੰ ਇੱਥੇ ਕਾਪੀ ਨਹੀਂ ਕਰ ਸਕਦੇ ਹੋ।</string>
|
||||
<string name="error_copy_entry_here">ਤੁਸੀੰ ਇਸ ਐੰਟਰੀ ਨੂੰ ਇੱਥੇ ਕਾਪੀ ਨਹੀਂ ਕਰ ਸਕਦੇ ਹੋ।</string>
|
||||
<string name="error_move_folder_in_itself">ਤੁਸੀੰ ਗਰੁੱਪ ਨੂੰ ਖੁਦ ਵਿੱਚ ਨਹੀਂ ਭੇਜ ਸਕਦੇ ਹੋ।</string>
|
||||
<string name="list_password_generator_options_title">ਪਾਸਵਰਡ ਅੱਖਰ</string>
|
||||
<string name="password_size_summary">ਤਿਆਰ ਕੀਤੇ ਪਾਸਵਰਡਾਂ ਲਈ ਮੂਲ ਆਕਾਰ ਸੈੱਟ ਕਰਦਾ ਹੈ</string>
|
||||
<string name="password_size_title">ਤਿਆਰ ਕੀਤੇ ਪਾਸਵਰਡ ਦਾ ਆਕਾਰ</string>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<string name="add_entry">Dodaj wpis</string>
|
||||
<string name="add_group">Dodaj grupę</string>
|
||||
<string name="encryption_algorithm">Algorytm szyfrowania</string>
|
||||
<string name="app_timeout">Limit czasu aplikacji</string>
|
||||
<string name="app_timeout">Koniec czasu</string>
|
||||
<string name="app_timeout_summary">Czas bezczynności przed zablokowaniem bazy danych</string>
|
||||
<string name="application">Aplikacja</string>
|
||||
<string name="menu_app_settings">Ustawienia aplikacji</string>
|
||||
@@ -140,7 +140,6 @@
|
||||
<string name="error_load_database_KDF_memory">Nie można załadować klucza. Spróbuj zmniejszyć użycie pamięć KDF.</string>
|
||||
<string name="error_string_key">Każdy ciąg musi mieć nazwę pola.</string>
|
||||
<string name="error_autofill_enable_service">Nie można włączyć usługi autouzupełniania.</string>
|
||||
<string name="error_move_folder_in_itself">Nie można przenieść grupy do samej siebie.</string>
|
||||
<string name="field_name">Nazwa pola</string>
|
||||
<string name="field_value">Wartość pola</string>
|
||||
<string name="file_not_found_content">Nie znaleziono pliku. Spróbuj ponownie otworzyć go w przeglądarce plików.</string>
|
||||
@@ -550,4 +549,15 @@
|
||||
<string name="content_description_otp_information">Informacje o hasłach jednorazowych</string>
|
||||
<string name="error_remove_file">Wystąpił błąd podczas usuwania danych z pliku.</string>
|
||||
<string name="error_duplicate_file">Dane pliku już istnieją.</string>
|
||||
<string name="properties">Właściwości</string>
|
||||
<string name="error_export_app_properties">Błąd podczas eksportowania właściwości aplikacji</string>
|
||||
<string name="success_export_app_properties">Wyeksportowano właściwości aplikacji</string>
|
||||
<string name="error_import_app_properties">Błąd podczas importowania właściwości aplikacji</string>
|
||||
<string name="success_import_app_properties">Zaimportowano właściwości aplikacji</string>
|
||||
<string name="description_app_properties">Właściwości KeePassDX do zarządzania ustawieniami aplikacji</string>
|
||||
<string name="export_app_properties_summary">Utwórz plik, aby wyeksportować właściwości aplikacji</string>
|
||||
<string name="export_app_properties_title">Eksportuj właściwości aplikacji</string>
|
||||
<string name="import_app_properties_summary">Wybierz plik, aby zaimportować właściwości aplikacji</string>
|
||||
<string name="import_app_properties_title">Importuj właściwości aplikacji</string>
|
||||
<string name="error_start_database_action">Wystąpił błąd podczas wykonywania akcji w bazie danych.</string>
|
||||
</resources>
|
||||
@@ -138,7 +138,6 @@
|
||||
<string name="entry_not_found">Não pôde encontrar dado de entrada.</string>
|
||||
<string name="error_string_key">Um nome do campo é necessário para cada string.</string>
|
||||
<string name="error_autofill_enable_service">Não pôde ser habilitado o serviço de preenchimento automático.</string>
|
||||
<string name="error_move_folder_in_itself">Você não pode mover um grupo para dentro de si mesmo.</string>
|
||||
<string name="field_name">Nome do campo</string>
|
||||
<string name="field_value">Valor do campo</string>
|
||||
<string name="file_not_found_content">Arquivo não encontrado. Tente reabri-lo de seu buscador de arquivos.</string>
|
||||
@@ -237,7 +236,7 @@
|
||||
<string name="education_create_database_title">Crie um arquivo de banco de dados</string>
|
||||
<string name="education_create_database_summary">Crie seu primeiro arquivo de gerenciamento de senhas.</string>
|
||||
<string name="education_select_database_title">Abra um banco de dados existente</string>
|
||||
<string name="education_select_database_summary">Abra seu banco de dados de mais cedo pelo seu navegador de arquivos.</string>
|
||||
<string name="education_select_database_summary">Abra seu arquivo de banco de dados existente a partir do navegador de arquivos.</string>
|
||||
<string name="education_new_node_title">Adicione itens ao seu banco</string>
|
||||
<string name="education_new_node_summary">Entradas ajudam a gerenciar suas identidades digitais.
|
||||
\n
|
||||
|
||||
@@ -148,7 +148,6 @@
|
||||
<string name="allow">Permitir</string>
|
||||
<string name="error_load_database">Não foi possível abrir a sua base de dados.</string>
|
||||
<string name="error_load_database_KDF_memory">Não foi possível carregar a chave. Tente descarregar o \"Uso de Memória\" do KDF.</string>
|
||||
<string name="error_move_folder_in_itself">Não pode mover um grupo para si mesmo.</string>
|
||||
<string name="list_entries_show_username_title">Mostrar nomes de utilizador</string>
|
||||
<string name="copy_field">Cópia de %1$s</string>
|
||||
<string name="menu_form_filling_settings">Preenchimento de formulário</string>
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
<string name="menu_paste">Colar</string>
|
||||
<string name="menu_move">Mover</string>
|
||||
<string name="menu_copy">Copiar</string>
|
||||
<string name="error_move_folder_in_itself">Não pode mover um grupo para si mesmo.</string>
|
||||
<string name="clipboard_cleared">Área de transferência limpa</string>
|
||||
<string name="about_description">Uma implementação do gestor de palavras-chave KeePass para Android</string>
|
||||
<string name="icon_pack_choose_summary">Pacote de ícones usado na app</string>
|
||||
|
||||
@@ -111,7 +111,6 @@
|
||||
<string name="error_string_key">Fiecare șir trebuie să aibă un nume de câmp.</string>
|
||||
<string name="error_wrong_length">Introduceți un număr întreg pozitiv în câmpul \"Lungime\".</string>
|
||||
<string name="error_autofill_enable_service">Nu s-a putut activa serviciul de completare automată.</string>
|
||||
<string name="error_move_folder_in_itself">Nu puteți muta un grup în sine.</string>
|
||||
<string name="error_move_entry_here">Nu puteți muta o intrare aici.</string>
|
||||
<string name="error_copy_entry_here">Nu puteți copia o intrare aici.</string>
|
||||
<string name="error_copy_group_here">Nu puteți copia un grup aici.</string>
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
<string name="encryption">Шифрование</string>
|
||||
<string name="key_derivation_function">Функция формирования ключа</string>
|
||||
<string name="extended_ASCII">Расширенный набор ASCII</string>
|
||||
<string name="error_autofill_enable_service">Сервис автозаполнения не может быть включён.</string>
|
||||
<string name="error_autofill_enable_service">Служба автозаполнения не может быть включена.</string>
|
||||
<string name="copy_field">%1$s скопировано</string>
|
||||
<string name="menu_form_filling_settings">Заполнение форм</string>
|
||||
<string name="encryption_explanation">Алгоритм шифрования базы для всех данных.</string>
|
||||
@@ -168,7 +168,6 @@
|
||||
<string name="allow">Разрешить</string>
|
||||
<string name="error_load_database">Невозможно загрузить базу.</string>
|
||||
<string name="error_load_database_KDF_memory">Невозможно загрузить ключ. Попробуйте уменьшить размер памяти, используемой функцией формирования ключа (KDF).</string>
|
||||
<string name="error_move_folder_in_itself">Нельзя переместить группу в саму себя.</string>
|
||||
<string name="list_entries_show_username_title">Показывать имя</string>
|
||||
<string name="list_entries_show_username_summary">Показывать имя пользователя в списке записей</string>
|
||||
<string name="menu_copy">Копировать</string>
|
||||
@@ -186,10 +185,10 @@
|
||||
<string name="menu_appearance_settings">Внешний вид</string>
|
||||
<string name="general">Общие</string>
|
||||
<string name="autofill">Автозаполнение</string>
|
||||
<string name="autofill_service_name">Сервис автозаполнения KeePassDX</string>
|
||||
<string name="autofill_service_name">Служба автозаполнения KeePassDX</string>
|
||||
<string name="autofill_sign_in_prompt">Войти с помощью KeePassDX</string>
|
||||
<string name="autofill_explanation_summary">Включить сервис для быстрого заполнения форм в других приложениях</string>
|
||||
<string name="set_autofill_service_title">Сервис автозаполнения по умолчанию</string>
|
||||
<string name="autofill_explanation_summary">Включите службу для быстрого заполнения форм в других приложениях</string>
|
||||
<string name="set_autofill_service_title">Использовать службу автозаполнения</string>
|
||||
<string name="password_size_title">Длина создаваемого пароля</string>
|
||||
<string name="password_size_summary">Настройка длины создаваемых паролей по умолчанию</string>
|
||||
<string name="list_password_generator_options_title">Символы пароля</string>
|
||||
@@ -273,12 +272,12 @@
|
||||
<string name="html_text_ad_free">В отличие от многих приложений управления паролями, это <strong>без рекламы</strong> и <strong>свободно от лицензирования</strong>. Оно не собирает ваши личные данные на своих серверах независимо от того, какую версию вы используете.</string>
|
||||
<string name="html_text_buy_pro">При покупке Pro-версии вы будете иметь доступ к этим <strong>визуальным стилям</strong> и особенно поможете <strong>реализации общественных проектов</strong>.</string>
|
||||
<string name="html_text_feature_generosity">Эти <strong>визуальные стили</strong> доступны благодаря вашей щедрости.</string>
|
||||
<string name="html_text_donation">Для того, чтобы сохранить нашу независимость и быть всегда активными, мы рассчитываем на ваше <strong>содействие</strong>.</string>
|
||||
<string name="html_text_donation">Для того, чтобы сохранить нашу независимость и быть всегда активными, мы рассчитываем на вашу <strong>поддержку</strong>.</string>
|
||||
<string name="html_text_dev_feature">Эта функция находится <strong>в разработке</strong> и требует вашего <strong>участия</strong>, чтобы стать доступной в ближайшее время.</string>
|
||||
<string name="html_text_dev_feature_buy_pro">Покупая <strong>Pro</strong>-версию,</string>
|
||||
<string name="html_text_dev_feature_contibute"><strong>Участвуя в проекте</strong>,</string>
|
||||
<string name="html_text_dev_feature_encourage">вы поощряете разработчиков добавлять <strong>новые возможности</strong> и <strong>исправлять ошибки</strong> в соответствии с вашими замечаниями.</string>
|
||||
<string name="html_text_dev_feature_thanks">Спасибо большое за содействие.</string>
|
||||
<string name="html_text_dev_feature_thanks">Большое спасибо за поддержку.</string>
|
||||
<string name="html_text_dev_feature_work_hard">Мы прилагаем все усилия, чтобы быстро выпустить эту функцию.</string>
|
||||
<string name="html_text_dev_feature_upgrade">Не забывайте обновлять приложение.</string>
|
||||
<string name="download">Скачать</string>
|
||||
@@ -414,7 +413,7 @@
|
||||
<string name="hide_expired_entries_summary">Не показывать записи с истёкшим сроком</string>
|
||||
<string name="contact">Контактная информация</string>
|
||||
<string name="contribution">Помощь проекту</string>
|
||||
<string name="html_about_contribution">Для <strong>сохранения нашей независимости</strong>, <strong>исправления ошибок</strong>, <strong>добавления новых функций</strong> и <strong>поддержания разработки в активном состоянии</strong>, мы рассчитываем на ваше <strong>содействие</strong>.</string>
|
||||
<string name="html_about_contribution">Для <strong>сохранения нашей независимости</strong>, <strong>исправления ошибок</strong>, <strong>добавления новых функций</strong> и <strong>поддержания разработки в активном состоянии</strong>, мы рассчитываем на вашу <strong>поддержку</strong>.</string>
|
||||
<string name="auto_focus_search_title">Быстрый поиск</string>
|
||||
<string name="auto_focus_search_summary">Открывать поисковый запрос при открытии базы</string>
|
||||
<string name="remember_database_locations_title">Помнить расположение баз</string>
|
||||
@@ -550,4 +549,17 @@
|
||||
<string name="content_description_otp_information">Информация об одноразовом пароле</string>
|
||||
<string name="error_duplicate_file">Данные файла уже существует.</string>
|
||||
<string name="error_remove_file">Ошибка при удалении данных файла.</string>
|
||||
<string name="properties">Свойства</string>
|
||||
<string name="error_export_app_properties">Ошибка при экспорте настроек приложения</string>
|
||||
<string name="success_export_app_properties">Настройки приложения экспортированы</string>
|
||||
<string name="error_import_app_properties">Ошибка при импорте настроек приложения</string>
|
||||
<string name="success_import_app_properties">Настройки приложения импортированы</string>
|
||||
<string name="description_app_properties">Управление настройками приложения KeePassDX</string>
|
||||
<string name="export_app_properties_summary">Создать файл настроек приложения</string>
|
||||
<string name="export_app_properties_title">Экспорт настроек</string>
|
||||
<string name="import_app_properties_summary">Импортировать настройки приложения из файла</string>
|
||||
<string name="import_app_properties_title">Импорт настроек</string>
|
||||
<string name="error_start_database_action">Произошла ошибка при выполнении действия с базой.</string>
|
||||
<string name="error_move_group_here">Сюда группу переместить невозможно.</string>
|
||||
<string name="error_word_reserved">Это слово зарезервировано и не может быть использовано.</string>
|
||||
</resources>
|
||||
@@ -270,7 +270,6 @@
|
||||
<string name="style_choose_summary">Tema som används i appen</string>
|
||||
<string name="icon_pack_choose_title">Ikonpaket</string>
|
||||
<string name="icon_pack_choose_summary">Ikonpaket som används i appen</string>
|
||||
<string name="error_move_folder_in_itself">Du kan inte lägga en grupp i sig själv.</string>
|
||||
<string name="menu_copy">Kopia</string>
|
||||
<string name="menu_move">Flytta</string>
|
||||
<string name="menu_paste">Klistra in</string>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<string name="encryption">Şifreleme</string>
|
||||
<string name="encryption_algorithm">Şifreleme algoritması</string>
|
||||
<string name="key_derivation_function">Anahtar üretme fonksiyonu</string>
|
||||
<string name="app_timeout">Uygulama zaman aşımı</string>
|
||||
<string name="app_timeout">Zaman aşımı</string>
|
||||
<string name="app_timeout_summary">Veri tabanını kilitlemeden önceki boşta kalma süresi</string>
|
||||
<string name="application">Uygulama</string>
|
||||
<string name="brackets">Parantez</string>
|
||||
@@ -78,7 +78,6 @@
|
||||
<string name="error_string_key">Her dizginin bir alan adı olmalıdır.</string>
|
||||
<string name="error_wrong_length">\"Uzunluk\" alanına pozitif bir tam sayı girin.</string>
|
||||
<string name="error_autofill_enable_service">Otomatik doldurma hizmeti etkinleştirilemedi.</string>
|
||||
<string name="error_move_folder_in_itself">Bir grubu kendine taşıyamazsın.</string>
|
||||
<string name="field_name">Alan adı</string>
|
||||
<string name="field_value">Alan değeri</string>
|
||||
<string name="file_not_found_content">Dosya bulunamadı. Dosya tarayıcınızda yeniden açmayı deneyin.</string>
|
||||
@@ -545,4 +544,17 @@
|
||||
<string name="content_description_otp_information">Tek seferlik parola bilgileri</string>
|
||||
<string name="error_remove_file">Dosya verilerini kaldırırken bir hata oluştu.</string>
|
||||
<string name="error_duplicate_file">Dosya verileri zaten var.</string>
|
||||
<string name="properties">Özellikler</string>
|
||||
<string name="error_export_app_properties">Uygulama özelliklerini dışa aktarma sırasında hata oluştu</string>
|
||||
<string name="error_import_app_properties">Uygulama özelliklerini içe aktarma sırasında hata oluştu</string>
|
||||
<string name="success_export_app_properties">Uygulama özellikleri dışa aktarıldı</string>
|
||||
<string name="success_import_app_properties">Uygulama özellikleri içe aktarıldı</string>
|
||||
<string name="description_app_properties">Uygulama ayarlarını yönetmek için KeePassDX özellikleri</string>
|
||||
<string name="export_app_properties_summary">Uygulama özelliklerini dışa aktarmak için bir dosya oluşturun</string>
|
||||
<string name="export_app_properties_title">Uygulama özelliklerini dışa aktar</string>
|
||||
<string name="import_app_properties_summary">Uygulama özelliklerini içe aktarmak için bir dosya seçin</string>
|
||||
<string name="import_app_properties_title">Uygulama özelliklerini içe aktar</string>
|
||||
<string name="error_start_database_action">Veri tabanında bir eylem gerçekleştirilirken bir hata oluştu.</string>
|
||||
<string name="error_move_group_here">Bir grubu buraya taşıyamazsınız.</string>
|
||||
<string name="error_word_reserved">Bu sözcük ayrılmıştır ve kullanılamaz.</string>
|
||||
</resources>
|
||||
47
app/src/main/res/values-tt/strings.xml
Normal file
47
app/src/main/res/values-tt/strings.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="keyboard_notification_entry_content_text">%1$s</string>
|
||||
<string name="compression_gzip">Gzip</string>
|
||||
<string name="other">Башка</string>
|
||||
<string name="text_appearance">Текст</string>
|
||||
<string name="disable">Сүндерү</string>
|
||||
<string name="data">Мәгълүмат</string>
|
||||
<string name="file_name">Файл исеме</string>
|
||||
<string name="database_history">Тарих</string>
|
||||
<string name="version_label">Версия %1$s</string>
|
||||
<string name="search">Эзләү</string>
|
||||
<string name="sort_username">Кулланучы исеме</string>
|
||||
<string name="sort_title">Исем</string>
|
||||
<string name="sort_ascending">Иң түбән беренче ↓</string>
|
||||
<string name="search_label">Эзләү</string>
|
||||
<string name="auto_focus_search_title">Тиз эзләү</string>
|
||||
<string name="never">Беркайчан да</string>
|
||||
<string name="menu_showpass">Серсүзне күрсәтү</string>
|
||||
<string name="menu_search">Эзләү</string>
|
||||
<string name="menu_open">Ачу</string>
|
||||
<string name="menu_hide_password">Серсүзне яшерү</string>
|
||||
<string name="menu_move">Күчү</string>
|
||||
<string name="menu_cancel">Баш тарту</string>
|
||||
<string name="menu_delete">Бетерү</string>
|
||||
<string name="menu_donate">Бүләк итү</string>
|
||||
<string name="menu_app_settings">Кушымта көйләүләре</string>
|
||||
<string name="settings">Көйләүләр</string>
|
||||
<string name="menu_change_key_settings">Мастер ачкычны үзгәртү</string>
|
||||
<string name="about">Турында</string>
|
||||
<string name="hide_password_title">Серсүзләрне яшерү</string>
|
||||
<string name="list_entries_show_username_title">Кулланучы исемнәрен күрсәтү</string>
|
||||
<string name="password">Серсүз</string>
|
||||
<string name="hint_pass">Серсүз</string>
|
||||
<string name="entry_user_name">Кулланучы исеме</string>
|
||||
<string name="entry_url">URL</string>
|
||||
<string name="entry_otp">OTP</string>
|
||||
<string name="otp_algorithm">Алгоритм</string>
|
||||
<string name="entry_title">Исем</string>
|
||||
<string name="save">Саклау</string>
|
||||
<string name="entry_password">Серсүз</string>
|
||||
<string name="entry_history">Тарих</string>
|
||||
<string name="entry_UUID">UUID</string>
|
||||
<string name="entry_cancel">Баш тарту</string>
|
||||
<string name="content_description_update_from_list">Яңарту</string>
|
||||
<string name="application">Кушымта</string>
|
||||
</resources>
|
||||
@@ -24,7 +24,7 @@
|
||||
<string name="add_entry">Додати запис</string>
|
||||
<string name="add_group">Додати групу</string>
|
||||
<string name="encryption_algorithm">Алгоритм шифрування</string>
|
||||
<string name="app_timeout">Час очікування застосунку</string>
|
||||
<string name="app_timeout">Час очікування</string>
|
||||
<string name="app_timeout_summary">Час бездіяльности до блокування бази даних</string>
|
||||
<string name="application">Застосунок</string>
|
||||
<string name="menu_app_settings">Параметри застосунку</string>
|
||||
@@ -217,7 +217,6 @@
|
||||
<string name="error_copy_group_here">Ви не можете копіювати групу сюди.</string>
|
||||
<string name="error_copy_entry_here">Ви не можете копіювати записи сюди.</string>
|
||||
<string name="error_move_entry_here">Ви не можете перемістити запис сюди.</string>
|
||||
<string name="error_move_folder_in_itself">Ви не можете перемістити групу в себе саму.</string>
|
||||
<string name="error_autofill_enable_service">Не вдалось ввімкнути службу автозаповнення.</string>
|
||||
<string name="error_label_exists">Ця мітка вже існує.</string>
|
||||
<string name="error_string_key">Кожен рядок повинен мати назву поля.</string>
|
||||
@@ -550,4 +549,17 @@
|
||||
<string name="content_description_otp_information">Відомості про одноразовий пароль</string>
|
||||
<string name="error_remove_file">Сталася помилка під час вилучення даних файлу.</string>
|
||||
<string name="error_duplicate_file">Дані файлу вже існують.</string>
|
||||
<string name="properties">Властивості</string>
|
||||
<string name="error_export_app_properties">Помилка під час експортування властивостей застосунку</string>
|
||||
<string name="success_export_app_properties">Властивості застосунку експортовано</string>
|
||||
<string name="error_import_app_properties">Помилка під час імпортування властивостей застосунку</string>
|
||||
<string name="success_import_app_properties">Властивості застосунку імпортовано</string>
|
||||
<string name="description_app_properties">Властивості KeePassDX для керування параметрами застосунку</string>
|
||||
<string name="export_app_properties_summary">Створити файл для експорту властивостей застосунку</string>
|
||||
<string name="export_app_properties_title">Експорт властивостей застосунку</string>
|
||||
<string name="import_app_properties_summary">Виберіть файл для імпорту властивостей застосунку</string>
|
||||
<string name="import_app_properties_title">Імпорт властивостей застосунку</string>
|
||||
<string name="error_start_database_action">Під час виконання дії з базою даних сталася помилка.</string>
|
||||
<string name="error_move_group_here">Ви не можете перемістити групу сюди.</string>
|
||||
<string name="error_word_reserved">Це слово зарезервоване, його не можна використовувати.</string>
|
||||
</resources>
|
||||
@@ -24,7 +24,7 @@
|
||||
<string name="add_entry">添加条目</string>
|
||||
<string name="add_group">添加群组</string>
|
||||
<string name="encryption_algorithm">加密算法</string>
|
||||
<string name="app_timeout">离开程序锁定延时</string>
|
||||
<string name="app_timeout">延时</string>
|
||||
<string name="app_timeout_summary">在锁定数据库前处于非活动状态的时长</string>
|
||||
<string name="application">应用</string>
|
||||
<string name="menu_app_settings">程序设置</string>
|
||||
@@ -139,7 +139,6 @@
|
||||
<string name="error_load_database">无法加载数据库。</string>
|
||||
<string name="error_load_database_KDF_memory">无法加载密钥。尝试降低KDF的“内存使用”值。</string>
|
||||
<string name="error_autofill_enable_service">无法启用自动填充服务。</string>
|
||||
<string name="error_move_folder_in_itself">无法将群组移至它自身之中。</string>
|
||||
<string name="file_not_found_content">找不到文件。请重新打开文件。</string>
|
||||
<string name="invalid_algorithm">算法无效。</string>
|
||||
<string name="keyfile_is_empty">密钥文件为空。</string>
|
||||
@@ -550,4 +549,17 @@
|
||||
<string name="content_description_otp_information">一次性密码信息</string>
|
||||
<string name="error_remove_file">删除文件数据时发生了一个错误。</string>
|
||||
<string name="error_duplicate_file">文件数据已存在。</string>
|
||||
<string name="properties">属性</string>
|
||||
<string name="error_export_app_properties">应用属性导出期间出错</string>
|
||||
<string name="success_export_app_properties">已导出应用属性</string>
|
||||
<string name="error_import_app_properties">导入应用属性期间出错</string>
|
||||
<string name="success_import_app_properties">已导入应用属性</string>
|
||||
<string name="description_app_properties">管理应用设置的 KeePassDX 属性</string>
|
||||
<string name="export_app_properties_summary">创建一个文件来导出应用属性</string>
|
||||
<string name="export_app_properties_title">导出应用属性</string>
|
||||
<string name="import_app_properties_summary">选择一个文件来导入应用属性</string>
|
||||
<string name="import_app_properties_title">导入应用属性</string>
|
||||
<string name="error_start_database_action">对数据库执行操作时发生了一个错误。</string>
|
||||
<string name="error_move_group_here">你不能把一个组移动到此处。</string>
|
||||
<string name="error_word_reserved">这个单词是保留的,不能使用。</string>
|
||||
</resources>
|
||||
@@ -128,7 +128,6 @@
|
||||
<string name="clipboard_error">部份設備不容許其他程式使用剪貼簿。</string>
|
||||
<string name="clipboard_error_clear">無法清除剪貼簿</string>
|
||||
<string name="error_autofill_enable_service">無法啟用自動填入服務。</string>
|
||||
<string name="error_move_folder_in_itself">無法移動一個群組至自己本身。</string>
|
||||
<string name="invalid_algorithm">無效的演算法。</string>
|
||||
<string name="keyfile_is_empty">金鑰檔案是空白的。</string>
|
||||
<string name="menu_form_filling_settings">表格填入</string>
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
<string name="error_invalid_path">Make sure the path is correct.</string>
|
||||
<string name="error_invalid_OTP">Invalid OTP secret.</string>
|
||||
<string name="error_no_name">Enter a name.</string>
|
||||
<string name="error_word_reserved">This word is reserved and cannot be used.</string>
|
||||
<string name="error_nokeyfile">Select a keyfile.</string>
|
||||
<string name="error_out_of_memory">No memory to load your entire database.</string>
|
||||
<string name="error_load_database">Could not load your database.</string>
|
||||
@@ -121,7 +122,7 @@
|
||||
<string name="error_label_exists">This label already exists.</string>
|
||||
<string name="error_wrong_length">Enter a positive integer number in the \"Length\" field.</string>
|
||||
<string name="error_autofill_enable_service">Could not enable autofill service.</string>
|
||||
<string name="error_move_folder_in_itself">You can not move a group into itself.</string>
|
||||
<string name="error_move_group_here">You can not move a group here.</string>
|
||||
<string name="error_move_entry_here">You can not move an entry here.</string>
|
||||
<string name="error_copy_entry_here">You can not copy an entry here.</string>
|
||||
<string name="error_copy_group_here">You cannot copy a group here.</string>
|
||||
|
||||
@@ -49,9 +49,9 @@ platform :android do
|
||||
lane :deploy_beta_free do
|
||||
upload_to_play_store(
|
||||
track: "beta",
|
||||
skip_upload_metadata: "false",
|
||||
skip_upload_images: "false",
|
||||
skip_upload_screenshots: "false",
|
||||
skip_upload_metadata: "true",
|
||||
skip_upload_images: "true",
|
||||
skip_upload_screenshots: "true",
|
||||
apk: "./app/build/outputs/apk/free/release/app-free-release.apk",
|
||||
validate_only: "false",
|
||||
)
|
||||
@@ -62,9 +62,9 @@ platform :android do
|
||||
sh("cp", "-a", "./pro/.", "./")
|
||||
upload_to_play_store(
|
||||
track: "beta",
|
||||
skip_upload_metadata: "false",
|
||||
skip_upload_images: "false",
|
||||
skip_upload_screenshots: "false",
|
||||
skip_upload_metadata: "true",
|
||||
skip_upload_images: "true",
|
||||
skip_upload_screenshots: "true",
|
||||
apk: "./app/build/outputs/apk/pro/release/app-pro-release.apk",
|
||||
validate_only: "false",
|
||||
)
|
||||
|
||||
5
fastlane/metadata/android/en-US/changelogs/72.txt
Normal file
5
fastlane/metadata/android/en-US/changelogs/72.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
* Move groups #658
|
||||
* Improve autofill recognition #960
|
||||
* Remove diacritical marks in search string #945
|
||||
* Fix search in references #962
|
||||
* Fix themes in Libre version
|
||||
4
fastlane/metadata/android/en-US/changelogs/73.txt
Normal file
4
fastlane/metadata/android/en-US/changelogs/73.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
* Fix search slowdown #964
|
||||
* Fix closing notification after lock request #965
|
||||
* Better temp advanced unlocking code implementation #965
|
||||
* Fix OTP token generation #967
|
||||
3
fastlane/metadata/android/en-US/changelogs/74.txt
Normal file
3
fastlane/metadata/android/en-US/changelogs/74.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
* Fix search with non-latin chars #971
|
||||
* Fix action mode with search #972 (rollback ignore accents #945)
|
||||
* Fix timeout with 0s #974
|
||||
5
fastlane/metadata/android/fr-FR/changelogs/72.txt
Normal file
5
fastlane/metadata/android/fr-FR/changelogs/72.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
* Déplacement de groupes #658
|
||||
* Amélioration de la reconnaissance automatique de formulaire #960
|
||||
* Suppression des marques diacritiques dans les chaînes de recherche #945
|
||||
* Correction de la recherche dans les références #962
|
||||
* Correction des thèmes dans la version Libre
|
||||
4
fastlane/metadata/android/fr-FR/changelogs/73.txt
Normal file
4
fastlane/metadata/android/fr-FR/changelogs/73.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
* Correction du ralentissement de la recherche #964
|
||||
* Correction de la fermeture de notification après une requête de verrouillage #965
|
||||
* Meilleure implémentation du déverrouillage avancé temporaire #965
|
||||
* Correction de la génération des jetons de mots de passe uniques #967
|
||||
3
fastlane/metadata/android/fr-FR/changelogs/74.txt
Normal file
3
fastlane/metadata/android/fr-FR/changelogs/74.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
* Correction de la recherche avec des caractères non latin #971
|
||||
* Correction du mode action avec la recherche #972 (retour arrière des accents ignorés #945)
|
||||
* Correction de l'expiration de temps à 0s #974
|
||||
@@ -1,6 +1,6 @@
|
||||
<b>Multi-format KeePass password manager</b>, the app allows saving and using passwords, keys and digital identities in a secure way, by integrating the Android design standards.
|
||||
|
||||
This pro version is under development, buying it encourages <b>faster development</b>, <b>better service</b>, and you contribute to the creation of <b>open source softwares without advertising</b>.
|
||||
This pro version encourages <b>development</b>, <b>better service</b>, and you contribute to the creation of <b>open source softwares without advertising</b>.
|
||||
<i>Currently, the application has the same features as the free version with the themes unlocked but is intended to integrate elements related to non-free sites and services commonly used.</i>
|
||||
|
||||
<b>Features</b>
|
||||
@@ -18,7 +18,7 @@ This pro version is under development, buying it encourages <b>faster developmen
|
||||
- Code written in native languages (Kotlin / Java / JNI / C).
|
||||
|
||||
<b>Pro Features</b>
|
||||
- Access to custom themes (including the classic deep black theme).
|
||||
- Access to custom themes.
|
||||
- TOTP Steam creation.
|
||||
- Deleting donation buttons.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<b>Gestionnaire de mots de passe KeePass multiformats</b>, l'application permet d'enregistrer et d'utiliser des mots de passe, des clés et des identités numériques de manière sécurisée, en intégrant les normes de conception Android.
|
||||
|
||||
Cette version pro est en cours de développement, en l'achetant vous encouragez <b>un développement plus rapide</b>, <b>un meilleur service</b> et vous contribuez à la création de <b>logiciels open source sans publicité</b>.
|
||||
Cette version pro encourage <b>les développements</b>, <b>un meilleur service</b> et vous contribuez à la création de <b>logiciels open source sans publicité</b>.
|
||||
<i>Actuellement, l'application possède les mêmes fonctionnalités que la version gratuite avec les thèmes débloqués mais est destinée à intégrer des éléments liés à des sites et services non gratuits couramment utilisés.</i>
|
||||
|
||||
<b>Fonctionnalités</b>
|
||||
@@ -18,7 +18,7 @@ Cette version pro est en cours de développement, en l'achetant vous encouragez
|
||||
- Code écrit en langages natifs (Kotlin / Java / JNI / C).
|
||||
|
||||
<b>Fonctionnalités Pro</b>
|
||||
- Accès aux thèmes personnalisés (y compris le thème noir profond classique).
|
||||
- Accès aux thèmes personnalisés.
|
||||
- Création de TOTP Steam.
|
||||
- Suppression des boutons de don.
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
- コードはネイティブ言語(Kotlin / Java / JNI / C)で書かれています
|
||||
|
||||
<b>Pro 機能</b>
|
||||
- カスタムテーマへのアクセス(classic deep black テーマ を含む)
|
||||
- カスタムテーマへのアクセス
|
||||
- Steam 独自の TOTP の作成
|
||||
- 寄付ボタンの削除
|
||||
|
||||
|
||||
Reference in New Issue
Block a user