Skip to content

Patch adbd for handling usb disconnection #10

@lucarin91

Description

@lucarin91

The adbd seems unable to handle USB client disconnection, without rebooting.

To reproduce the issue do the following:

adb shell
adb kill-server
adb shell

After that, it is not possible to connect again till the board or service is restarted.

It seems that the adbd service return the following error, and doesn't accept a new USB connection.

Nov 25 14:34:15 jack adbd[2453]: 11-25 14:34:15.076  2453  2469 I adbd    : transport.cpp:1253 UsbFfs: connection terminated: read 24 failed with error Broken pipe
Nov 25 14:34:15 jack adbd[2453]: 11-25 14:34:15.077  2453  2453 I adbd    : adb.cpp:177 UsbFfs: offline
Nov 25 14:34:15 jack adbd[2453]: 11-25 14:34:15.077  2453  2453 I adbd    : transport.cpp:936 destroying transport UsbFfs
Nov 25 14:34:15 jack adbd[2453]: 11-25 14:34:15.077  2453  2453 I adbd    : usb.cpp:169 UsbFfsConnection being destroyed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions