Add a feature flag to control new opt out behaviour

Introduce a lever we can use to enable / disable all new backup
eligibility behaviours from one place.

Bug: 174216309
Test: m -j
Change-Id: I17618a72c04f138204c5c0ca2c23330044c169e7
This commit is contained in:
Ruslan Tkhakokhov
2021-02-19 14:45:49 +00:00
parent c3bf79a2cd
commit 6e1b079c9a

View File

@@ -46,6 +46,9 @@ public class FeatureFlagUtils {
"settings_do_not_restore_preserved";
/** @hide */
public static final String SETTINGS_PROVIDER_MODEL = "settings_provider_model";
/** @hide */
public static final String SETTINGS_USE_NEW_BACKUP_ELIGIBILITY_RULES
= "settings_use_new_backup_eligibility_rules";
private static final Map<String, String> DEFAULT_FLAGS;
@@ -68,6 +71,7 @@ public class FeatureFlagUtils {
DEFAULT_FLAGS.put("settings_silky_home", "false");
DEFAULT_FLAGS.put("settings_contextual_home", "false");
DEFAULT_FLAGS.put(SETTINGS_PROVIDER_MODEL, "false");
DEFAULT_FLAGS.put(SETTINGS_USE_NEW_BACKUP_ELIGIBILITY_RULES, "false");
}
private static final Set<String> PERSISTENT_FLAGS;