Hello, I was working a lot with a shell commands and I can say for sure, that adb tool is not stable.
It can randomly halt your script execution. I'm pushing scripts onto device, do chmod and use adb only to run the script on the device. How do you run ls -r? Using adb shell or directly from the java code/etc (I mean at device)? This way a bit more stable. Best regards, Yahor On Wed, Aug 24, 2011 at 9:48 PM, Morgan <[email protected]> wrote: > I'm wondering if anyone else has come across this problem, and if so > if they have found a workaround. I have a testing tool which generates > md5 checks on local files, and then attempts to match them to the > mirrored directory on android devices, then updates the file if it has > been modified, or adds it if it is not present. > > The problem is that occasionally the "ls -R" fails to recurse the > directory structure on the android device. It is intermittent, but > consistent. When it happens it will return the same information as > though no "-R" was included, i.e. the list of the contents of the base > directory. > > So when that happens, my testing tool believes that *none* of the > tests are present on the device, and re-copies all of them. Which can > take some time. > > Any insight or ideas for workarounds much appreciated. > > Thanks, > Morgan > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

