From 30dd7c567c15f34d8d15ff01feafd126aa07cf35 Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Mon, 8 Sep 2025 15:17:09 +0200 Subject: [PATCH 1/2] fix: Autofill compatibility package --- app/src/main/res/xml/dataset_service.xml | 196 ++++++++++++----------- 1 file changed, 101 insertions(+), 95 deletions(-) diff --git a/app/src/main/res/xml/dataset_service.xml b/app/src/main/res/xml/dataset_service.xml index 870cf884a..94b60987b 100644 --- a/app/src/main/res/xml/dataset_service.xml +++ b/app/src/main/res/xml/dataset_service.xml @@ -28,269 +28,275 @@ Settings Activity. This is pointed to in the service's meta-data in the applicat tools:ignore="UnusedAttribute"> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="711900039" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="427912623" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> - - + android:maxLongVersionCode="711900039" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="2015836711" /> + android:maxLongVersionCode="2015849447" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> + android:maxLongVersionCode="10000000000" /> - + android:maxLongVersionCode="10000000000" /> From e8ec27dc38cc4f9f155f617c849ae74741a5434f Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Tue, 9 Sep 2025 11:45:30 +0200 Subject: [PATCH 2/2] fix: Upgrade to API 35 --- app/build.gradle | 4 ++-- .../kunzisoft/keepass/activities/AboutActivity.kt | 2 +- .../kunzisoft/keepass/activities/GroupActivity.kt | 3 ++- .../keepass/services/NotificationService.kt | 13 ++++++++++++- app/src/main/res/layout/activity_about.xml | 3 ++- app/src/main/res/layout/activity_file_selection.xml | 1 + app/src/main/res/layout/activity_icon_picker.xml | 5 +++-- app/src/main/res/layout/activity_key_generator.xml | 5 +++-- .../main/res/layout/activity_main_credential.xml | 1 + app/src/main/res/layout/activity_toolbar.xml | 1 + app/src/main/res/layout/keyboard_container.xml | 6 ++++-- crypto/build.gradle | 4 ++-- database/build.gradle | 4 ++-- icon-pack/build.gradle | 4 ++-- icon-pack/classic/build.gradle | 4 ++-- icon-pack/material/build.gradle | 4 ++-- 16 files changed, 42 insertions(+), 22 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3d2414fe0..4b5287f6a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,12 +5,12 @@ apply plugin: 'kotlin-kapt' android { namespace 'com.kunzisoft.keepass' - compileSdkVersion 34 + compileSdkVersion 36 defaultConfig { applicationId "com.kunzisoft.keepass" minSdkVersion 19 - targetSdkVersion 34 + targetSdkVersion 35 versionCode = 139 versionName = "4.1.7" multiDexEnabled true diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt index 105810a1d..d117418f4 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/AboutActivity.kt @@ -58,7 +58,7 @@ class AboutActivity : StylishActivity() { var version: String var build: String try { - version = packageManager.getPackageInfoCompat(packageName).versionName + version = packageManager.getPackageInfoCompat(packageName).versionName ?: "" build = BuildConfig.BUILD_VERSION } catch (e: NameNotFoundException) { Log.w(javaClass.simpleName, "Unable to get the app or the build version", e) diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt index 03aacc6f2..c0704dc0a 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/GroupActivity.kt @@ -1373,7 +1373,8 @@ class GroupActivity : DatabaseLockActivity(), } else -> { // Load the previous group - loadMainGroup(mPreviousGroupsIds.removeLast()) + loadMainGroup(mPreviousGroupsIds + .removeAt(mPreviousGroupsIds.lastIndex)) } } } diff --git a/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt b/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt index f116eaf60..4d7fae28c 100644 --- a/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt +++ b/app/src/main/java/com/kunzisoft/keepass/services/NotificationService.kt @@ -12,6 +12,7 @@ import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE import android.os.Build import android.os.IBinder +import android.util.Log import android.util.TypedValue import android.widget.Toast import androidx.core.app.NotificationCompat @@ -156,11 +157,21 @@ abstract class NotificationService : Service() { mReset = true } - override fun onDestroy() { + override fun onTimeout(startId: Int, fgsType: Int) { + super.onTimeout(startId, fgsType) + Log.e(javaClass::class.simpleName, "The service took too long to execute") + cancelNotification() + stopSelf() + } + + protected fun cancelNotification() { mTimerJob?.cancel() mTimerJob = null notificationManager?.cancel(notificationId) + } + override fun onDestroy() { + cancelNotification() super.onDestroy() } diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index d956bfc9d..b0211987e 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -19,10 +19,11 @@ --> + android:filterTouchesWhenObscured="true"> + android:filterTouchesWhenObscured="true"> . --> -