add native_flags_health_check_enabled to Settings.Global
add native_flags_health_check_enabled to Settings.Global. It is used to receive the corresponding experiment flag from P/H. Bug: 119627143 Test: manual on device Change-Id: I980f73925818a5cb6f756d78bad324bafefc3784
This commit is contained in:
@@ -13700,6 +13700,15 @@ public final class Settings {
|
||||
*/
|
||||
public static final String LAST_ACTIVE_USER_ID = "last_active_persistent_user_id";
|
||||
|
||||
|
||||
/**
|
||||
* Whether we've enabled native flags health check on this device. Takes effect on
|
||||
* reboot. The value "1" enables native flags health check; otherwise it's disabled.
|
||||
* @hide
|
||||
*/
|
||||
public static final String NATIVE_FLAGS_HEALTH_CHECK_ENABLED =
|
||||
"native_flags_health_check_enabled";
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -550,6 +550,10 @@ message GlobalSettingsProto {
|
||||
}
|
||||
optional MultiSim multi_sim = 76;
|
||||
|
||||
// Whether we've enabled native flags health check on this device. Takes effect on
|
||||
// reboot. The value "1" enables native flags health check; otherwise it's disabled.
|
||||
optional SettingProto native_flags_health_check_enabled = 144 [ (android.privacy).dest = DEST_AUTOMATIC ];
|
||||
|
||||
message Netstats {
|
||||
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
||||
|
||||
@@ -987,5 +991,5 @@ message GlobalSettingsProto {
|
||||
|
||||
// Please insert fields in alphabetical order and group them into messages
|
||||
// if possible (to avoid reaching the method limit).
|
||||
// Next tag = 144;
|
||||
// Next tag = 145;
|
||||
}
|
||||
|
||||
@@ -308,6 +308,7 @@ public class SettingsBackupTest {
|
||||
Settings.Global.MULTI_SIM_SMS_SUBSCRIPTION,
|
||||
Settings.Global.MULTI_SIM_VOICE_CALL_SUBSCRIPTION,
|
||||
Settings.Global.MULTI_SIM_VOICE_PROMPT,
|
||||
Settings.Global.NATIVE_FLAGS_HEALTH_CHECK_ENABLED,
|
||||
Settings.Global.NETSTATS_DEV_BUCKET_DURATION,
|
||||
Settings.Global.NETSTATS_DEV_DELETE_AGE,
|
||||
Settings.Global.NETSTATS_DEV_PERSIST_BYTES,
|
||||
|
||||
@@ -855,6 +855,10 @@ class SettingsProtoDumpUtil {
|
||||
GlobalSettingsProto.MultiSim.SMS_PROMPT);
|
||||
p.end(multiSimToken);
|
||||
|
||||
dumpSetting(s, p,
|
||||
Global.NATIVE_FLAGS_HEALTH_CHECK_ENABLED,
|
||||
GlobalSettingsProto.NATIVE_FLAGS_HEALTH_CHECK_ENABLED);
|
||||
|
||||
final long netstatsToken = p.start(GlobalSettingsProto.NETSTATS);
|
||||
dumpSetting(s, p,
|
||||
Settings.Global.NETSTATS_ENABLED,
|
||||
|
||||
@@ -65,6 +65,7 @@ class SettingsToPropertiesMapper {
|
||||
// permission in the corresponding .te file your feature belongs to.
|
||||
@VisibleForTesting
|
||||
static final String[] sGlobalSettings = new String[] {
|
||||
Settings.Global.NATIVE_FLAGS_HEALTH_CHECK_ENABLED,
|
||||
};
|
||||
|
||||
@VisibleForTesting
|
||||
|
||||
Reference in New Issue
Block a user