diff options
author | Ng Zhi An <zhin@google.com> | 2018-01-29 13:13:53 -0800 |
---|---|---|
committer | Ng Zhi An <zhin@google.com> | 2018-01-29 13:13:53 -0800 |
commit | b7c1c686448858876b41f87d0b440a5c478f9095 (patch) | |
tree | 82859b6f29511b44f3141d2a58c46a4346962e6f /app-launcher | |
parent | a42240edecc69835b55755cae58913d8c13741c6 (diff) | |
download | extras-b7c1c686448858876b41f87d0b440a5c478f9095.tar.gz |
Fix cpufreg_go to use adb -s
cpufreq_go used the plain adb, this changes it to use $adb,
which is set to adb -s if -s was passed, allowing the go test
to run when multiple devices are connected.
Bug: 72652287
Test: manual
Change-Id: Iffd658e9f1f99cbe992a5e1a5a07adc70d334653
Diffstat (limited to 'app-launcher')
-rwxr-xr-x | app-launcher/app-launcher | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app-launcher/app-launcher b/app-launcher/app-launcher index 076d70b2..46dd2cd0 100755 --- a/app-launcher/app-launcher +++ b/app-launcher/app-launcher @@ -240,12 +240,12 @@ cpufreq_angler () { cpufreq_go() { echo "Setting Governor to performance" - adb shell 'echo 0 > /proc/hps/enabled' + $adb shell 'echo 0 > /proc/hps/enabled' for i in 0 1 2 3 do - adb shell "echo 1 > /sys/devices/system/cpu/cpu$i/online" - adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor" - adb shell "echo 1092000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq" + $adb shell "echo 1 > /sys/devices/system/cpu/cpu$i/online" + $adb shell "echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor" + $adb shell "echo 1092000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq" done } |