Loading tools/aconfig/aconfig_flags/flags.aconfig +8 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,11 @@ flag { bug: "369808805" description: "When enabled, launch aconfigd from config infra module." } flag { name: "enable_system_aconfigd_rust" namespace: "core_experiments_team_internal" bug: "378079539" description: "When enabled, the aconfigd cc_binary target becomes a no-op, and the rust_binary aconfigd-system target starts up." is_fixed_read_only: true } tools/aconfig/aconfig_flags/src/lib.rs +11 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,11 @@ pub mod auto_generated { pub fn enable_aconfigd_from_mainline() -> bool { aconfig_flags_rust::enable_only_new_storage() } /// Returns the value for the enable_system_aconfigd_rust flag. pub fn enable_system_aconfigd_rust() -> bool { aconfig_flags_rust::enable_system_aconfigd_rust() } } /// Module used when building with cargo Loading @@ -55,4 +60,10 @@ pub mod auto_generated { // Used only to enable typechecking and testing with cargo true } /// Returns a placeholder value for the enable_system_aconfigd_rust flag. pub fn enable_system_aconfigd_rust() -> bool { // Used only to enable typechecking and testing with cargo true } } tools/aconfig/aflags/src/aconfig_storage_source.rs +6 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,12 @@ fn read_from_socket() -> Result<Vec<ProtoFlagQueryReturnMessage>> { special_fields: SpecialFields::new(), }; let mut socket = UnixStream::connect("/dev/socket/aconfigd")?; let socket_name = if aconfig_flags::auto_generated::enable_system_aconfigd_rust() { "/dev/socket/aconfigd_system" } else { "/dev/socket/aconfigd" }; let mut socket = UnixStream::connect(socket_name)?; let message_buffer = messages.write_to_bytes()?; let mut message_length_buffer: [u8; 4] = [0; 4]; Loading Loading
tools/aconfig/aconfig_flags/flags.aconfig +8 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,11 @@ flag { bug: "369808805" description: "When enabled, launch aconfigd from config infra module." } flag { name: "enable_system_aconfigd_rust" namespace: "core_experiments_team_internal" bug: "378079539" description: "When enabled, the aconfigd cc_binary target becomes a no-op, and the rust_binary aconfigd-system target starts up." is_fixed_read_only: true }
tools/aconfig/aconfig_flags/src/lib.rs +11 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,11 @@ pub mod auto_generated { pub fn enable_aconfigd_from_mainline() -> bool { aconfig_flags_rust::enable_only_new_storage() } /// Returns the value for the enable_system_aconfigd_rust flag. pub fn enable_system_aconfigd_rust() -> bool { aconfig_flags_rust::enable_system_aconfigd_rust() } } /// Module used when building with cargo Loading @@ -55,4 +60,10 @@ pub mod auto_generated { // Used only to enable typechecking and testing with cargo true } /// Returns a placeholder value for the enable_system_aconfigd_rust flag. pub fn enable_system_aconfigd_rust() -> bool { // Used only to enable typechecking and testing with cargo true } }
tools/aconfig/aflags/src/aconfig_storage_source.rs +6 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,12 @@ fn read_from_socket() -> Result<Vec<ProtoFlagQueryReturnMessage>> { special_fields: SpecialFields::new(), }; let mut socket = UnixStream::connect("/dev/socket/aconfigd")?; let socket_name = if aconfig_flags::auto_generated::enable_system_aconfigd_rust() { "/dev/socket/aconfigd_system" } else { "/dev/socket/aconfigd" }; let mut socket = UnixStream::connect(socket_name)?; let message_buffer = messages.write_to_bytes()?; let mut message_length_buffer: [u8; 4] = [0; 4]; Loading