| Index: adb/contrib/high.py
|
| diff --git a/adb/contrib/high.py b/adb/contrib/high.py
|
| index 645d7c238c7d06afa7024e1363e93d822e2cf430..f1946d7fad1914ea99c240b2e4f96710983efbd9 100644
|
| --- a/adb/contrib/high.py
|
| +++ b/adb/contrib/high.py
|
| @@ -144,7 +144,7 @@ def _InitCache(device):
|
| # due to SELinux permission errors. Try again by executing su via shell.
|
| if not has_su:
|
| out, exit_code = device.Shell('/system/xbin/su root whoami')
|
| - if not exit_code and out.strip() == 'root':
|
| + if not exit_code and out and out.strip() == 'root':
|
| has_su = True
|
|
|
| available_governors = KNOWN_CPU_SCALING_GOVERNOR_VALUES
|
|
|