Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wait-for-device with kick=True re-using the same client #757

Merged
merged 1 commit into from
Oct 10, 2016
Merged

Fix wait-for-device with kick=True re-using the same client #757

merged 1 commit into from
Oct 10, 2016

Conversation

zachriggle
Copy link
Member

@zachriggle zachriggle commented Oct 7, 2016

Pwntools 3.2.0 and later may cause issues with adb.wait_for_device() when kick=True due to reuse of an adb.protocol.Client object which has specified a transport.

This issue is resolved by using a new adb.protocol.Client.

@zachriggle
Copy link
Member Author

Specifically, this issue only occurs when the device is not actually available. We can't create a unit test for this, since the emulator cannot be rebooted or kicked.

@zachriggle
Copy link
Member Author

Merging to dev to fix the bug there, this will need to be cherry-picked to beta.

@zachriggle zachriggle merged commit 8d11fb8 into Gallopsled:dev Oct 10, 2016
@zachriggle zachriggle deleted the wait-for-device branch January 4, 2017 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants