summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Maciej Żenczykowski <maze@google.com> 2021-04-14 08:22:05 -0700
committer Maciej Żenczykowski <maze@google.com> 2021-11-18 06:11:00 +0000
commit1af65153da0d8d767892c6eb327deafe8315a3e9 (patch)
treedf0f922a050f33fc05c4164494ece6733d092444
parentc9b46078fce6e51d20cf155ab55d132c00a7c21a (diff)
bpf is required so /sys/fs/bpf/map_netd_app_uid_stats_map always exists
(we cannot just remove the argument, since the test code path still goes via the legacy xt_qtaguid code paths with sample data) Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I044d0363aaab0dbbb90c40ca466cc48f169d649a
-rw-r--r--services/core/java/com/android/server/net/NetworkStatsFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/net/NetworkStatsFactory.java b/services/core/java/com/android/server/net/NetworkStatsFactory.java
index 431b00914f02..e6433db11d7b 100644
--- a/services/core/java/com/android/server/net/NetworkStatsFactory.java
+++ b/services/core/java/com/android/server/net/NetworkStatsFactory.java
@@ -159,7 +159,7 @@ public class NetworkStatsFactory {
}
public NetworkStatsFactory() {
- this(new File("/proc/"), new File("/sys/fs/bpf/map_netd_app_uid_stats_map").exists());
+ this(new File("/proc/"), true);
}
@VisibleForTesting