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>
This commit is contained in:
JP Abgrall
2011-06-27 22:16:04 -07:00
parent 27cb1fa96b
commit 2778a1ea73

View File

@@ -1062,7 +1062,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
Slog.w(TAG, "kernel does not support bandwidth control"); Slog.w(TAG, "kernel does not support bandwidth control");
return false; 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() { public long getPollInterval() {
return getSecureLong(NETSTATS_POLL_INTERVAL, 15 * MINUTE_IN_MILLIS); return getSecureLong(NETSTATS_POLL_INTERVAL, 15 * MINUTE_IN_MILLIS);