diff options
author | Serban Constantinescu <serban.constantinescu@linaro.org> | 2016-09-02 14:31:08 +0100 |
---|---|---|
committer | Serban Constantinescu <serban.constantinescu@linaro.org> | 2016-09-02 14:38:54 +0100 |
commit | 649bb5d0f142b54f3f53a11b575c75770bb1caea (patch) | |
tree | 088c2c6a0349eff524d0cf3a5cdedeb85f2da880 /devices | |
parent | 4de5f37c1065e5607f4900bafc0268394dee2c81 (diff) |
Fix set_cpu_freq.sh --default
Without this fix:
$adb kill-server
$./set_cpu_freq.sh --default
would fail with:
"ERROR: Device * daemon not running. starting it now on port 5037 *"
Extra points for the one that gets why :-).
Change-Id: I7ecec04265fe365df6622f24c1f81039c76eac5d
Diffstat (limited to 'devices')
-rwxr-xr-x | devices/set_cpu_freq.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devices/set_cpu_freq.sh b/devices/set_cpu_freq.sh index 90f9bae..a695e24 100755 --- a/devices/set_cpu_freq.sh +++ b/devices/set_cpu_freq.sh @@ -117,6 +117,9 @@ set_device_freq() { main() { arguments_parser "$@" + # Make sure that adb is started before checking the board name. + safe adb start-server + readonly target_device=$(safe adb_shell_strip getprop ro.product.board) log I "Detected device ${target_device}" |