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

Commit 8cceb1e4 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Enable network stats module by default."

parents 37cc31c6 05355c3e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -188,10 +188,9 @@ class NetworkManagementService extends INetworkManagementService.Stub {

        // only enable bandwidth control when support exists, and requested by
        // system setting.
        // TODO: eventually migrate to be always enabled
        final boolean hasKernelSupport = new File("/proc/net/xt_qtaguid/ctrl").exists();
        final boolean shouldEnable =
                Settings.Secure.getInt(mContext.getContentResolver(), NETSTATS_ENABLED, 0) != 0;
                Settings.Secure.getInt(mContext.getContentResolver(), NETSTATS_ENABLED, 1) != 0;

        mBandwidthControlEnabled = false;
        if (hasKernelSupport && shouldEnable) {