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

Commit 05355c3e authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Enable network stats module by default.

Bug: 5138315
Change-Id: Id4cffdc126bf14a005fc2d3aece87ea036a51999
parent af61fd0f
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) {