Commit Graph

153 Commits

Author SHA1 Message Date
Philipp Crocoll
c0ed185612 rename RunnableOnFinish => OperationWithFinishHandler, introduce IKp2aStatusLogger 2025-04-29 15:08:09 +02:00
Philipp Crocoll
6d8407676d add a custom "Kp2a debug" icon for distinguishability. remove an Assert we don't use and which should fire during debugging. 2025-03-18 16:43:47 +01:00
Philipp Crocoll
73fc93ed96 fix issue with argon2 kdf (regression from .net8 migration) by
* including armeabi-v7 and arm64-v8 .so files
* switching to [LibraryImport] instead of [DllImport]
2025-01-14 13:55:21 +01:00
Philipp Crocoll
738d59dbda remove old (pre-sdk-style) projects, rename sdk style projects to have the names of the old ones. adjust the .sln and .csproj files accordingly. This is a bit like a squash commit, as it shows the diff between the pre-sdk-style code with the updated code (sdk-style, Material3, Zxing=>GMS CodeScanner, Kdbp support removed) 2025-01-07 11:19:23 +01:00
Philipp Crocoll
43f6064faa towards sdk-style projects. As of now, all code/resources etc. is duplicated for new projects in new folders. this will be moved back to the original locations (and then squashed). App currently does not build. 2024-11-05 10:58:57 +01:00
Philipp Crocoll
ad6ced3aad addition to last commit: this refers to #2396 2023-11-21 13:33:37 +01:00
Philipp Crocoll
6ef8b8fc3b replace usage of IoConnectionInfo::GetDisplayName() to avoid passwords (as part of the URL) appearing in logfiles 2023-11-21 13:31:54 +01:00
Rick Brown
464fe43323 Add JSch (SFTP) debug logging
-App Settings->Log-File for Debugging->SFTP debug logging
-Logs to android log (logcat) if log file is not enabled
-Logs to Kp2a log file if it is enabled
-Logs are tagged as "KP2AJFS[JSch]"
-When enabled, logs ALL levels (DEBUG+).

NOTE: Sensitive SSH connection information may be logged!!
2023-07-12 17:03:39 -04:00
Philipp Crocoll
f6395908ee add back custom ColorTranslator, fixes PlatformnotSupportedException, closes https://github.com/PhilippC/keepass2android/issues/1679 2021-05-18 20:26:08 +02:00
Philipp Crocoll
562a80132a merge changes from KeePass 2.48 with support for KDBX 4.1 and slightly improved merging behavior with respect to custom icons, closes https://github.com/PhilippC/keepass2android/issues/1670 2021-05-14 08:01:34 +02:00
Philipp Crocoll
7df048263b add compatibility to Keepass 2.47 TimeOTP-Secret values (but not supporting {TIMEOTP} placeholder) 2021-01-12 12:14:34 +01:00
Philipp Crocoll
d9bcac600c support for Keyfiles like in Keepass 2.47 2021-01-12 07:31:18 +01:00
Philipp Crocoll
a90fd17bea fix issue with incorrect launching of PasswordActivity for AutoExecItems leading to incorrect behavior when launching the app from Autofill (when child databases are opened) 2021-01-10 22:44:33 +01:00
Philipp Crocoll
eee24819d5 add support for Argon2id (see https://github.com/keepassxreboot/keepassxc/issues/4317#issuecomment-738101431) 2020-12-07 10:43:46 +01:00
Philipp Crocoll
1479ecf03f allow to open .xml files (as unencrypted database) in read-only mode, closes https://github.com/PhilippC/keepass2android/issues/1450 2020-10-24 09:47:00 +02:00
Philipp Crocoll
2b2deb291a catch invalid dates, closes #868 2020-02-15 04:15:35 +01:00
Philipp Crocoll
049764fe67 don't save files in a file version lower than what was read, closes #791 2019-10-07 02:30:38 +02:00
Philipp Crocoll
99d0ecfd59 refactoring, use less UrlUtil and more IFileStorage 2019-10-01 20:04:03 +02:00
Philipp Crocoll
7c55c50b4c explicity use 8.0 as target version to fix compile error. (Note: I could also upgrade everything to 8.1 to fix the compile error, but that would require extensive testing; updating target version can come with subtle changes in how the app behaves at many places) 2019-08-20 05:46:53 +02:00
Chih-Hsuan Yen
7d1eeb1e34 Use native Argon2 implementation 2019-07-16 21:07:26 +08:00
Philipp Crocoll
3b93610e43 fix crash when sending debug log (closes https://github.com/PhilippC/keepass2android/issues/264) 2019-03-18 05:08:34 +01:00
Philipp Crocoll
f0f3bb6ede more logging regarding key transformation 2018-12-09 08:21:25 +01:00
Philipp Crocoll
8512bae997 make sure we always save database as KDBX4 when using ChallengeXCKey (for compatibility with KeepassXC), closes #596 2018-11-20 06:08:30 +01:00
Philipp Crocoll
a2dab72b25 first version to have multiple databases open at the same time. needs testing and bug fixing. 2018-10-16 06:33:00 +02:00
Philipp Crocoll
f14aad0c50 implemented loading of files with KeepassXC Challenge (#4).
requires write support, handling of Challenge/Response errors (or user cancels). Caution: saving corrupts the file at the moment!
2018-04-10 07:15:19 +02:00
Philipp Crocoll
b0aa706c07 upgrade to target Android 8.1 2018-03-26 19:56:55 +02:00
Philipp Crocoll
fd5b582c6c fix crash when disabling log file before writing anything into it, fixes #301 2018-03-21 05:00:57 +01:00
Philipp Crocoll
e2df24522f working 2017-12-26 19:26:05 +01:00
Philipp Crocoll
d621ea15a3 adjust targetFrameworkVersion of .csproj files to that of the manifest file 2017-12-03 07:42:38 +01:00
Philipp Crocoll
e491463862 Merge branch 'master' into 1.03
Conflicts:
	src/java/android-filechooser-AS/app/android-filechooser.iml
2017-10-24 06:37:59 +02:00
Philipp Crocoll
73c0d6a9e4 removed nuget check for Xamarin Insights which was removed. fixed library build type. 2017-10-23 20:26:18 +02:00
Philipp Crocoll
82fa7eaf9f logging controllable through preferences, option to send logged data 2017-10-16 12:57:30 +02:00
Philipp Crocoll
c7bad6f9a0 Merge branch 'master' into 1.03 2017-10-16 11:54:39 +02:00
Philipp Crocoll
6cee382f8c add some build system config files, improve .gitignore 2017-10-16 10:26:35 +02:00
Philipp Crocoll
911c630b91 start implementing KeepassXC Challenge-Response support (see #4), currently waiting for https://github.com/keepassxreboot/keepassxc/issues/1060), also missing support for saving at the moment and mem-leaking PasswordActivity 2017-10-16 07:36:49 +02:00
Philipp Crocoll
c2a6fd1dfc remove Xamarin Insights 2017-09-18 11:25:17 +02:00
Philipp Crocoll
35f2e95de2 fix potential xxe attacks when parsing xml files 2017-08-14 10:08:24 +02:00
Philipp Crocoll
d2144d5128 updated Build Tools, Gradle, JDK 2017-05-22 12:02:35 +02:00
Philipp Crocoll
d0879bfe39 complete merging of Keepass 2.35, fix auto-merge errors 2017-01-12 05:56:20 +01:00
Philipp Crocoll
34e572dad1 Merge branch 'Keepass_Orig'
Conflicts:
	src/KeePassLib2Android/Cryptography/CryptoRandom.cs
	src/KeePassLib2Android/Cryptography/HashingStreamEx.cs
	src/KeePassLib2Android/Cryptography/HmacOtp.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/CharSetBasedGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/CustomPwGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/CustomPwGeneratorPool.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PatternBasedGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PwCharSet.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PwGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PwProfile.cs
	src/KeePassLib2Android/Cryptography/PopularPasswords.cs
	src/KeePassLib2Android/Cryptography/QualityEstimation.cs
	src/KeePassLib2Android/Cryptography/SelfTest.cs
	src/KeePassLib2Android/Delegates/Handlers.cs
	src/KeePassLib2Android/Interfaces/IDeepCloneable.cs
	src/KeePassLib2Android/Interfaces/IStatusLogger.cs
	src/KeePassLib2Android/Interfaces/IStructureItem.cs
	src/KeePassLib2Android/Interfaces/ITimeLogger.cs
	src/KeePassLib2Android/Interfaces/IUIOperations.cs
	src/KeePassLib2Android/Interfaces/IXmlSerializerEx.cs
	src/KeePassLib2Android/Keys/IUserKey.cs
	src/KeePassLib2Android/Keys/KcpCustomKey.cs
	src/KeePassLib2Android/Keys/KcpUserAccount.cs
	src/KeePassLib2Android/PwCustomIcon.cs
	src/KeePassLib2Android/PwGroup.cs
	src/KeePassLib2Android/Serialization/FileTransactionEx.cs
	src/KeePassLib2Android/Serialization/HashedBlockStream.cs
	src/KeePassLib2Android/Serialization/IOConnection.cs
	src/KeePassLib2Android/Serialization/KdbxFile.Read.cs
	src/KeePassLib2Android/Serialization/KdbxFile.Write.cs
	src/KeePassLib2Android/Translation/KPControlCustomization.cs
	src/KeePassLib2Android/Translation/KPFormCustomization.cs
	src/KeePassLib2Android/Utility/GfxUtil.cs
	src/KeePassLib2Android/Utility/MessageService.cs
	src/KeePassLib2Android/Utility/MonoWorkarounds.cs
	src/KeePassLib2Android/Utility/TimeUtil.cs
2017-01-11 18:02:44 +01:00
Philipp Crocoll
26c0fde41c Keepass lib 2.35 2017-01-11 07:57:01 +01:00
Philipp Crocoll
9b9f069949 1.01 pre1:
added preferences to switch encryption+kdf and to edit kdf parameters (for AES and Argon2)
2016-09-08 04:41:41 +02:00
Philipp Crocoll
e4c17e2e27 fix error with using native libary on Android, now allowing AesKdf again 2016-09-05 11:17:53 +02:00
Philipp Crocoll
6c043e9b79 adaptions to changes in KeePassLib 2016-08-31 22:18:32 +02:00
Philipp Crocoll
2e8c76d0c4 Merge branch 'Keepass_Orig' + adapt to changes in KeePassLib. This introduced KDBX4 in Keepass2Android.
NOTE: seems like merging broke the capability to read KDBX<=3.

Conflicts:
	src/KeePassLib2Android/Collections/AutoTypeConfig.cs
	src/KeePassLib2Android/Collections/ProtectedBinaryDictionary.cs
	src/KeePassLib2Android/Collections/ProtectedStringDictionary.cs
	src/KeePassLib2Android/Collections/PwObjectList.cs
	src/KeePassLib2Android/Collections/PwObjectPool.cs
	src/KeePassLib2Android/Collections/StringDictionaryEx.cs
	src/KeePassLib2Android/Cryptography/Cipher/CipherPool.cs
	src/KeePassLib2Android/Cryptography/Cipher/ICipherEngine.cs
	src/KeePassLib2Android/Cryptography/Cipher/Salsa20Cipher.cs
	src/KeePassLib2Android/Cryptography/Cipher/StandardAesEngine.cs
	src/KeePassLib2Android/Cryptography/CryptoRandom.cs
	src/KeePassLib2Android/Cryptography/CryptoRandomStream.cs
	src/KeePassLib2Android/Cryptography/HashingStreamEx.cs
	src/KeePassLib2Android/Cryptography/HmacOtp.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/CharSetBasedGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/CustomPwGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/CustomPwGeneratorPool.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PatternBasedGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PwCharSet.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PwGenerator.cs
	src/KeePassLib2Android/Cryptography/PasswordGenerator/PwProfile.cs
	src/KeePassLib2Android/Cryptography/PopularPasswords.cs
	src/KeePassLib2Android/Cryptography/QualityEstimation.cs
	src/KeePassLib2Android/Cryptography/SelfTest.cs
	src/KeePassLib2Android/Delegates/Handlers.cs
	src/KeePassLib2Android/Interfaces/IDeepCloneable.cs
	src/KeePassLib2Android/Interfaces/IStatusLogger.cs
	src/KeePassLib2Android/Interfaces/IStructureItem.cs
	src/KeePassLib2Android/Interfaces/ITimeLogger.cs
	src/KeePassLib2Android/Interfaces/IUIOperations.cs
	src/KeePassLib2Android/Interfaces/IXmlSerializerEx.cs
	src/KeePassLib2Android/Keys/CompositeKey.cs
	src/KeePassLib2Android/Keys/IUserKey.cs
	src/KeePassLib2Android/Keys/KcpCustomKey.cs
	src/KeePassLib2Android/Keys/KcpKeyFile.cs
	src/KeePassLib2Android/Keys/KcpPassword.cs
	src/KeePassLib2Android/Keys/KcpUserAccount.cs
	src/KeePassLib2Android/Keys/KeyProvider.cs
	src/KeePassLib2Android/Keys/KeyProviderPool.cs
	src/KeePassLib2Android/Keys/KeyValidator.cs
	src/KeePassLib2Android/Keys/KeyValidatorPool.cs
	src/KeePassLib2Android/Keys/UserKeyType.cs
	src/KeePassLib2Android/Native/NativeLib.cs
	src/KeePassLib2Android/Native/NativeMethods.cs
	src/KeePassLib2Android/Properties/AssemblyInfo.cs
	src/KeePassLib2Android/PwCustomIcon.cs
	src/KeePassLib2Android/PwDatabase.cs
	src/KeePassLib2Android/PwDefs.cs
	src/KeePassLib2Android/PwDeletedObject.cs
	src/KeePassLib2Android/PwEntry.cs
	src/KeePassLib2Android/PwEnums.cs
	src/KeePassLib2Android/PwGroup.cs
	src/KeePassLib2Android/PwUuid.cs
	src/KeePassLib2Android/Resources/KLRes.Generated.cs
	src/KeePassLib2Android/Security/ProtectedBinary.cs
	src/KeePassLib2Android/Security/ProtectedString.cs
	src/KeePassLib2Android/Security/XorredBuffer.cs
	src/KeePassLib2Android/Serialization/BinaryReaderEx.cs
	src/KeePassLib2Android/Serialization/FileLock.cs
	src/KeePassLib2Android/Serialization/FileTransactionEx.cs
	src/KeePassLib2Android/Serialization/HashedBlockStream.cs
	src/KeePassLib2Android/Serialization/IOConnection.cs
	src/KeePassLib2Android/Serialization/IOConnectionInfo.cs
	src/KeePassLib2Android/Serialization/KdbxFile.Read.Streamed.cs
	src/KeePassLib2Android/Serialization/KdbxFile.Read.cs
	src/KeePassLib2Android/Serialization/KdbxFile.Write.cs
	src/KeePassLib2Android/Serialization/KdbxFile.cs
	src/KeePassLib2Android/Serialization/OldFormatException.cs
	src/KeePassLib2Android/Translation/KPControlCustomization.cs
	src/KeePassLib2Android/Translation/KPFormCustomization.cs
	src/KeePassLib2Android/Translation/KPStringTable.cs
	src/KeePassLib2Android/Translation/KPStringTableItem.cs
	src/KeePassLib2Android/Translation/KPTranslation.cs
	src/KeePassLib2Android/Translation/KPTranslationProperties.cs
	src/KeePassLib2Android/Utility/AppLogEx.cs
	src/KeePassLib2Android/Utility/GfxUtil.cs
	src/KeePassLib2Android/Utility/MemUtil.cs
	src/KeePassLib2Android/Utility/MessageService.cs
	src/KeePassLib2Android/Utility/StrUtil.cs
	src/KeePassLib2Android/Utility/TimeUtil.cs
	src/KeePassLib2Android/Utility/UrlUtil.cs
2016-08-31 06:55:53 +02:00
Philipp Crocoll
a2f2e3d6f8 Keepass Orig KeePass_160826 2016-08-30 04:11:48 +02:00
Philipp Crocoll
6d1e28e502 Keepass original source code version 2.34 2016-08-30 04:09:53 +02:00
Philipp Crocoll
3585d4f61f Keepass original source code version 2.30 2016-08-30 04:09:26 +02:00
Philipp Crocoll
aaa6b371e0 Bug fixes:
* make sure we never have an invalid startIndex in PwGroup.SearchEvalAdd
 * make sure AndroidContentStorage does never throw (not if permission denial exception occurs) and make sure we always return a reason for read-only. Also don't return read-only when it's not.
 * StopListening doesn't log Invalid State Exception as unexpected
2016-01-18 21:18:22 +01:00
Philipp Crocoll
82b288ae71 switch back to Mono implementation for GZip 2016-01-11 21:57:54 +01:00