[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
Change-Id: Id254c85d140dd854e095e47c1465b73426053fc5
This commit is contained in:
@@ -637,6 +637,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user