commit | 76d17db5614576ce6ad601f981ed79598b27541f | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Tue May 15 16:20:41 2018 -0700 |
committer | Jerry Zhang <zhangjerry@google.com> | Tue Jul 17 11:53:30 2018 -0700 |
tree | 34d622dfe7c59645dbe22faa2386dfdf6b725e3a | |
parent | d4fe8b6c6ac9a745a97f15aac37606c36dcbfe42 [diff] |
adb: Have device usb_handle return io size Previously, read and write would return 0 on success. Now it will return the number of bytes read/write. This is more consistent with other usb handles and is needed in order to handle partial packets (for fastbootd). Update usb_write in other usb handles to return amount written. Change transport_usb accordingly. Test: adb works Bug: 78793464 Change-Id: If07ff05fbc8120343f20661475d34f4e5ff805de