Files
IronFox/patches/enable-secure-storage.patch
celenity 63a99045b4 WIP: v141.0
Signed-off-by: celenity <celenity@celenity.dev>
2025-07-22 08:21:43 -04:00

27 lines
1.5 KiB
Diff

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt
index 028742f2b3..7ae3b50470 100644
--- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt
+++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt
@@ -113,7 +113,7 @@ class BackgroundServices(
// Enable encryption for account state on supported API levels (23+).
// Just on Nightly and local builds for now.
// Enabling this for all channels is tracked in https://github.com/mozilla-mobile/fenix/issues/6704
- secureStateAtRest = Config.channel.isNightlyOrDebug,
+ secureStateAtRest = true,
)
@VisibleForTesting
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Core.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Core.kt
index 6875486c72..5a79c0cb55 100644
--- a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Core.kt
+++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Core.kt
@@ -663,7 +663,7 @@ class Core(
SecureAbove22Preferences(
context = context,
name = KEY_STORAGE_NAME,
- forceInsecure = !Config.channel.isNightlyOrDebug,
+ forceInsecure = false,
)
// Temporary. See https://github.com/mozilla-mobile/fenix/issues/19155