Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1f0ff37 authored by Ted Bauer's avatar Ted Bauer
Browse files

Read from aconfigd_socket when flag flipped

Bug: 378079539
Test: m
Change-Id: Ieef185aabea70b61aab58d764a0a7c42d0afeff2
Merged-In: Ieef185aabea70b61aab58d764a0a7c42d0afeff2
parent 6cc7c9df
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ java_library_static {
        "core_os_flags_lib",
        "connectivity_flags_lib",
        "dreams_flags_lib",
        "aconfig_flags_java",
        "aconfig_new_storage_flags_lib",
        "powerstats_flags_lib",
        "locksettings_flags_lib",
+5 −2
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ import android.aconfigd.Aconfigd.StorageRequestMessages;
import android.aconfigd.Aconfigd.StorageReturnMessage;
import android.aconfigd.Aconfigd.StorageReturnMessages;
import static com.android.aconfig_new_storage.Flags.enableAconfigStorageDaemon;
import static com.android.aconfig.flags.Flags.enableSystemAconfigdRust;

import java.io.DataInputStream;
import java.io.DataOutputStream;
@@ -391,9 +392,11 @@ public class SettingsToPropertiesMapper {
    static ProtoInputStream sendAconfigdRequests(ProtoOutputStream requests) {
        // connect to aconfigd socket
        LocalSocket client = new LocalSocket();
        String socketName = enableSystemAconfigdRust()
                    ? "aconfigd_system" : "aconfigd";
        try {
            client.connect(new LocalSocketAddress(
                "aconfigd", LocalSocketAddress.Namespace.RESERVED));
                socketName, LocalSocketAddress.Namespace.RESERVED));
            Slog.d(TAG, "connected to aconfigd socket");
        } catch (IOException ioe) {
            logErr("failed to connect to aconfigd socket", ioe);