Change test to use set-mode cmd.
Change-Id: I23c0888ba105067f19ebe516ce3fbc6868ed2b17
This commit is contained in:
@@ -700,9 +700,9 @@ abstract class AbstractRestrictBackgroundNetworkTestCase extends Instrumentation
|
||||
Log.i(TAG, "Setting Battery Saver Mode to " + enabled);
|
||||
if (enabled) {
|
||||
turnBatteryOff();
|
||||
executeSilentShellCommand("settings put global low_power 1");
|
||||
executeSilentShellCommand("cmd power set-mode 1");
|
||||
} else {
|
||||
executeSilentShellCommand("settings put global low_power 0");
|
||||
executeSilentShellCommand("cmd power set-mode 0");
|
||||
turnBatteryOn();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user