[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
Change-Id: If9c72d61d403b37ecd398179d5d3b447d252d7dc
This commit is contained in:
@@ -610,6 +610,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