summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-06-27 22:16:04 -0700
committerJP Abgrall <jpa@google.com>2011-06-27 22:16:04 -0700
commitd94585279f0903259c4434aabe0dbdd141b6dbab (patch)
treebef812fe3f0da518e3b28d44dc6c32682c84f5bc
parenta084c841aa4b5c0ab2e0e7a62c58a852633adb62 (diff)
downloadframeworks_base-d94585279f0903259c4434aabe0dbdd141b6dbab.zip
frameworks_base-d94585279f0903259c4434aabe0dbdd141b6dbab.tar.gz
frameworks_base-d94585279f0903259c4434aabe0dbdd141b6dbab.tar.bz2
NetworkStatsService: disabled by default
For now, there is still too much breakage around the kernel's new qtaguid netfilter. So no netstats up front. But enable on the device until wiped: ./vendor/google/tools/override-gservices secure:netstats_enabled=1 adb reboot Bug: 4903513 Change-Id: I230bd2d4efab85cac5c9abaa7d638c94f5e0c7d6 Signed-off-by: JP Abgrall <jpa@google.com>
-rw-r--r--services/java/com/android/server/net/NetworkStatsService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/net/NetworkStatsService.java b/services/java/com/android/server/net/NetworkStatsService.java
index 524dd40..4a79d17 100644
--- a/services/java/com/android/server/net/NetworkStatsService.java
+++ b/services/java/com/android/server/net/NetworkStatsService.java
@@ -1062,7 +1062,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
Slog.w(TAG, "kernel does not support bandwidth control");
return false;
}
- return Settings.Secure.getInt(mResolver, NETSTATS_ENABLED, 1) != 0;
+ // TODO: once things stabilize, enable by default.
+ // For now: ./vendor/google/tools/override-gservices secure:netstats_enabled=1
+ return Settings.Secure.getInt(mResolver, NETSTATS_ENABLED, 0) != 0;
}
public long getPollInterval() {
return getSecureLong(NETSTATS_POLL_INTERVAL, 15 * MINUTE_IN_MILLIS);