From 816ba51b09d557a731b61aac4ee10d39b3c793e4 Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Wed, 6 Sep 2023 15:30:18 +0530 Subject: [PATCH 1/2] fix authdata dump being ignored in release builds --- app/src/main/java/foundation/e/apps/AppLoungeApplication.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt b/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt index a9044e3fb..6b15a47c3 100644 --- a/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt +++ b/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt @@ -26,6 +26,7 @@ import androidx.hilt.work.HiltWorkerFactory import androidx.work.Configuration import androidx.work.ExistingPeriodicWorkPolicy import dagger.hilt.android.HiltAndroidApp +import foundation.e.apps.data.Constants.TAG_AUTHDATA_DUMP import foundation.e.apps.data.preference.DataStoreModule import foundation.e.apps.data.preference.PreferenceManagerModule import foundation.e.apps.install.pkg.PkgManagerBR @@ -81,7 +82,7 @@ class AppLoungeApplication : Application(), Configuration.Provider { Telemetry.init(BuildConfig.SENTRY_DSN, this) plant(object : Timber.Tree() { override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { - if (priority <= Log.WARN) { + if (priority <= Log.WARN || tag != TAG_AUTHDATA_DUMP) { return } Log.println(priority, tag, message) -- GitLab From 03d912d214a274ec466e626269cbf17bc2866e8b Mon Sep 17 00:00:00 2001 From: Sayantan Roychowdhury Date: Wed, 6 Sep 2023 16:36:33 +0530 Subject: [PATCH 2/2] fix again --- app/src/main/java/foundation/e/apps/AppLoungeApplication.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt b/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt index 6b15a47c3..368c89a3c 100644 --- a/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt +++ b/app/src/main/java/foundation/e/apps/AppLoungeApplication.kt @@ -82,7 +82,7 @@ class AppLoungeApplication : Application(), Configuration.Provider { Telemetry.init(BuildConfig.SENTRY_DSN, this) plant(object : Timber.Tree() { override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { - if (priority <= Log.WARN || tag != TAG_AUTHDATA_DUMP) { + if (priority <= Log.WARN && tag != TAG_AUTHDATA_DUMP) { return } Log.println(priority, tag, message) -- GitLab