Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Unified Diff: build/android/pylib/android_commands.py

Issue 12230008: Android: further "user build" perf test automation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 4c3c6fe65b58e1491003dd13d7b1a462df9cd992..a4340b2a5d64384e881b52f5c7c3547e18e68c44 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -729,7 +729,7 @@ class AndroidCommands(object):
Devices running user builds don't have adb root, but may provide "su" which
can be used for accessing protected files.
"""
- return self.RunShellCommand('su -c echo') == ['']
+ return self.RunShellCommand('su -c cat /dev/null') == ['']
Sami 2013/02/13 11:05:34 This could be slightly more reliable if we tried t
bulach 2013/02/13 11:08:57 :)
def GetProtectedFileContents(self, filename, log_result=False):
"""Gets contents from the protected file specified by |filename|.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698