Merge changes I4a8aa840,I9708f2a3

* changes:
  adb: check for an error response from adbd between each write.
  adbd: restore the old error handling behavior.