ADB Error codes
<p>We have an android device and as part of testing I need to excute a console test application on the target device. If the test application detects an error it returns -1.</p>

<p>I can use adb shell to run the test applications remotely on the target but I can't find a way of getting back the return code. I need this so I that I can build this into an automated test suite. </p>

<p>I could try grepping the console output for some failure text but that is a bit grubby. Does anyone know of a more elegant solution?</p>
