[CTS]It should be more reasonable to control battery saver function from setting DB instead of plugging/unplugging charger for CtsHostsideNetworkTests test case. am: 2ecad8d87d am: ca83ca8472 am: 9e20cad5eb
am: 24c9b794f6
Change-Id: I3bf7f653472978babd2a639cf79cbca2500faf3b
This commit is contained in:
@@ -635,6 +635,7 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
|
||||
executeSilentShellCommand("cmd battery unplug");
|
||||
executeSilentShellCommand("settings put global low_power 1");
|
||||
} else {
|
||||
executeSilentShellCommand("settings put global low_power 0");
|
||||
turnBatteryOn();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user