[Bug 264563] devel/android-tools-adb causes USB issues with "sideload"
Date: Thu, 09 Jun 2022 05:20:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264563
Bug ID: 264563
Summary: devel/android-tools-adb causes USB issues with
"sideload"
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: usb
Assignee: usb@FreeBSD.org
Reporter: nc@FreeBSD.org
I am attempting to update the devel/android-tools-adb port and ran into a
possible USB bug with the kernel which affects adb.
Branch: https://github.com/neelchauhan/freebsd-android-tools/tree/fbsd-31.0.3p1
Relevant lines:
https://github.com/neelchauhan/freebsd-android-tools/tree/fbsd-31.0.3p1vendor/adb/client/commandline.cpp#L928
(ReadFdExactly call)
https://github.com/neelchauhan/freebsd-android-tools/tree/fbsd-31.0.3p1vendor/adb/adb_io.cpp#L83
(adb_read call)
https://github.com/neelchauhan/freebsd-android-tools/tree/fbsd-31.0.3p1vendor/adb/sysdeps.h#L526
(adb_read definition, this calls read())
It seems that when using a USB file via read() calls, read() returns 0 even
when asked to return 8 bytes. In the second file, it seems the device gets
"disconnected".
Description is here:
https://lists.freebsd.org/archives/freebsd-hackers/2022-June/001208.html
This issue also happens with the port (older version), but does not happen on
Linux or macOS.
--
You are receiving this mail because:
You are the assignee for the bug.