summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-11-20 07:53:14 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-11-20 07:53:14 +0000
commit0a4ba7bfcaebba54ae40b19ceaf4f5fcfdd933ee (patch)
treee5cbd5f61eb6eb7fdc4a289bd279e2e520a35ad4
parente2ae20348f9aa688c938973a242e2c620f98b249 (diff)
parentecb13c490d40b6488b2b65ec30d52c7122d3d289 (diff)
Merge "Revert "Add hidden API getDataSaverViaCmFlag() for CTS"" into main
-rw-r--r--core/java/android/net/NetworkStack.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/java/android/net/NetworkStack.java b/core/java/android/net/NetworkStack.java
index 19ba6a1d22ed..dbb312720373 100644
--- a/core/java/android/net/NetworkStack.java
+++ b/core/java/android/net/NetworkStack.java
@@ -23,7 +23,6 @@ import android.content.Context;
import android.os.IBinder;
import android.os.ServiceManager;
-import com.android.net.flags.Flags;
import com.android.net.module.util.PermissionUtils;
/**
* Constants and utilities for client code communicating with the network stack service.
@@ -104,16 +103,4 @@ public class NetworkStack {
final @NonNull String... otherPermissions) {
PermissionUtils.enforceNetworkStackPermissionOr(context, otherPermissions);
}
-
- /**
- * Get setting of the "set_data_saver_via_cm" flag.
- *
- * @hide
- */
- // A workaround for aconfig. Currently, aconfig value read from platform and mainline code can
- // be inconsistent. To avoid the problem, CTS for mainline code can get the flag value by this
- // method.
- public static boolean getDataSaverViaCmFlag() {
- return Flags.setDataSaverViaCm();
- }
}