Merge changes I8d0c60e5,Ib8ad0ad6

* changes:
  adb: boolify check_header and check_data.
  adb: redirect stdout/stderr before initializing usb.