| Index: build/android/pylib/android_commands.py | 
| diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py | 
| index c6da8e5b6032b848f66a643f1177022b92f1a539..3cfcab52d2588d735d1e4f33a9e487239f00d370 100644 | 
| --- a/build/android/pylib/android_commands.py | 
| +++ b/build/android/pylib/android_commands.py | 
| @@ -1011,7 +1011,14 @@ class AndroidCommands(object): | 
| assert '"' not in file_name, 'file_name cannot contain double quotes' | 
| status = self._adb.SendShellCommand( | 
| '\'test -f "%s"; echo $?\'' % (file_name)) | 
| -    return int(status) == 0 | 
| +    if not status[0].find('test: not found'): | 
| +      return int(status) == 0 | 
| + | 
| +    status = self._adb.SendShellCommand('ls "%s"' % (file_name)) | 
| +    if 'No such file or directory' not in status[0]: | 
| +      return True | 
| + | 
| +    return False | 
|  | 
| def RunMonkey(self, package_name, category=None, throttle=100, seed=None, | 
| event_count=10000, verbosity=1, extra_args=''): | 
|  |