Netd unconditionally enable bandwidth control
Remove corresponding netd command, and default enable bandwidth
controller.
Test: The bindwith control start correctly on new devices.
Change-Id: I05e1bd365af1edfade28d445cec897cc6b6b2f08
diff --git a/server/BandwidthController.cpp b/server/BandwidthController.cpp
index 4abbc61..5b08819 100644
--- a/server/BandwidthController.cpp
+++ b/server/BandwidthController.cpp
@@ -291,15 +291,7 @@
return 0;
}
-int BandwidthController::enableBandwidthControl(bool force) {
- char value[PROPERTY_VALUE_MAX];
-
- if (!force) {
- property_get("persist.bandwidth.enable", value, "1");
- if (!strcmp(value, "0"))
- return 0;
- }
-
+int BandwidthController::enableBandwidthControl() {
/* Let's pretend we started from scratch ... */
mSharedQuotaIfaces.clear();
mQuotaIfaces.clear();