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

Commit ede84b60 authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Link to android experimental flags API

Bug: 120013793
Test: Build and atest NetworkStackTests
Change-Id: I5c12b48e886e124025ecaa8548b70f26ebd20263
parent 5a8d9eae
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.net.util;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.provider.DeviceConfig;
import android.util.SparseArray;

import java.io.FileDescriptor;
@@ -94,7 +95,7 @@ public class NetworkStackUtils {
    @Nullable
    public static String getDeviceConfigProperty(@NonNull String namespace, @NonNull String name,
            @Nullable String defaultValue) {
        // TODO: Link to DeviceConfig API once it is ready.
        return defaultValue;
        String value = DeviceConfig.getProperty(namespace, name);
        return value != null ? value : defaultValue;
    }
}