Skip to content

Conversation

@a1rwulf
Copy link

@a1rwulf a1rwulf commented Jun 4, 2022

This is an attempt to fix an exception on disconnect, although it successfully disconnects.

The reason is that "disconnected IP" is a possible value for successfull adb disconnects at least on Android11.
See Android 11 source:
https://cs.android.com/android/platform/superproject/+/android-11.0.0_r48:system/core/adb/adb.cpp;l=1224

Tested with an Nvidia Shield with Shield Experience 9.0.2 which is Android 11.

Copy link
Member

@koral-- koral-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but please add a sign-off.

"disconnected IP" is a possible value for successfull
adb disconnects.
See Android 11 source:
https://cs.android.com/android/platform/superproject/+/android-11.0.0_r48:system/core/adb/adb.cpp;l=1224

Signed-off-by: Wolfgang Haupt <haupt.wolfgang@gmail.com>
@a1rwulf a1rwulf force-pushed the adb-connection-fixes branch from b36c50f to 9d1a4c3 Compare June 4, 2022 11:49
@koral-- koral-- merged commit 3453bb4 into DeviceFarmer:master Jun 4, 2022
@a1rwulf a1rwulf deleted the adb-connection-fixes branch June 5, 2022 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants