Merge "[CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for “CtsHostsideNetworkTests” test case." into nougat-cts-dev

This commit is contained in:
Tina Zhou
2016-10-13 15:39:50 +00:00
committed by Gerrit Code Review

View File

@@ -610,6 +610,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
executeSilentShellCommand("cmd battery unplug"); executeSilentShellCommand("cmd battery unplug");
executeSilentShellCommand("settings put global low_power 1"); executeSilentShellCommand("settings put global low_power 1");
} else { } else {
executeSilentShellCommand("settings put global low_power 0");
turnBatteryOn(); turnBatteryOn();
} }
} }