2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Enable encryption of persisted FxA account state

This commit is contained in:
Grisha Kruglov 2019-11-19 18:16:39 -08:00 committed by Grisha Kruglov
parent 4d33b453ba
commit 2265e8ee61

View File

@ -36,6 +36,7 @@ import mozilla.components.service.fxa.manager.SCOPE_SYNC
import mozilla.components.service.fxa.sync.GlobalSyncableStoreProvider
import mozilla.components.service.sync.logins.SyncableLoginsStore
import mozilla.components.support.base.log.logger.Logger
import org.mozilla.fenix.Config
import org.mozilla.fenix.Experiments
import org.mozilla.fenix.R
import org.mozilla.fenix.components.metrics.Event
@ -84,7 +85,12 @@ class BackgroundServices(
// NB: flipping this flag back and worth is currently not well supported and may need hand-holding.
// Consult with the android-components peers before changing.
// See https://github.com/mozilla/application-services/issues/1308
capabilities = setOf(DeviceCapability.SEND_TAB)
capabilities = setOf(DeviceCapability.SEND_TAB),
// 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
)
// If sync has been turned off on the server then disable syncing.
@VisibleForTesting(otherwise = PRIVATE)