mirror of
https://github.com/ARM-software/devlib.git
synced 2025-04-07 10:20:03 +01:00
If we execute a command such as: 'am start -a android.intent.action.VIEW -d nothing' on Hikey960 with AOSP master, we do get an error message: 'Error: Activity not started, unable to resolve Intent ...' but the error code is set to 0. Furthermore, that error message is outputted to STDERR and not STDOUT. The current error checking in adb_shell() is done by either reading the error code or finding an error string in the standard output. This commit adds a check of the error output, and also changes the regular expression that is used to find an error string as it wasn't generic enough.