Add setting for requesting user account data.

This commit is contained in:
Clark
2023-03-23 14:39:31 -04:00
committed by Cody Henthorne
parent b194c0e84b
commit d6a9ed1a8d
18 changed files with 874 additions and 9 deletions

View File

@@ -108,6 +108,7 @@ public final class FeatureFlags {
private static final String ANY_ADDRESS_PORTS_KILL_SWITCH = "android.calling.fieldTrial.anyAddressPortsKillSwitch";
private static final String CALLS_TAB = "android.calls.tab";
private static final String TEXT_FORMATTING_SPOILER_SEND = "android.textFormatting.spoilerSend";
private static final String EXPORT_ACCOUNT_DATA = "android.exportAccountData";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -166,7 +167,8 @@ public final class FeatureFlags {
TEXT_FORMATTING,
ANY_ADDRESS_PORTS_KILL_SWITCH,
CALLS_TAB,
TEXT_FORMATTING_SPOILER_SEND
TEXT_FORMATTING_SPOILER_SEND,
EXPORT_ACCOUNT_DATA
);
@VisibleForTesting
@@ -603,6 +605,13 @@ public final class FeatureFlags {
return getBoolean(CALLS_TAB, false);
}
/**
* Whether or not the ability to export account data is enabled
*/
public static boolean exportAccountData() {
return getBoolean(EXPORT_ACCOUNT_DATA, false);
}
/** Only for rendering debug info. */
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
return new TreeMap<>(REMOTE_VALUES);