Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

fix "checksum error" in adb_protocol.py#5

Closed
jameyhicks wants to merge 1 commit intogoogle:masterfrom
cambridgehackers:master
Closed

fix "checksum error" in adb_protocol.py#5
jameyhicks wants to merge 1 commit intogoogle:masterfrom
cambridgehackers:master

Conversation

@jameyhicks
Copy link
Copy Markdown
Contributor

This fixes a problem where python-adb would report "checksum error" when receiving large amounts of data from the device.

@fahhem
Copy link
Copy Markdown
Contributor

fahhem commented Mar 27, 2015

So it wasn't reading all of the data in before? That means the underlying Handle caused the problem by not obeying the length given. Which Handle did you see this with, Tcp or Usb?

@jameyhicks
Copy link
Copy Markdown
Contributor Author

This problem was with a Tcp handle. Should this fix be moved to its BulkRead method?

@fahhem
Copy link
Copy Markdown
Contributor

fahhem commented Mar 31, 2015

No, looks like libusb1's bulkRead function has the same semantics around the length parameter.

@fahhem
Copy link
Copy Markdown
Contributor

fahhem commented Mar 31, 2015

LGTM

@fahhem fahhem closed this in 651253f Oct 27, 2015
maruel added a commit to maruel/python-adb that referenced this pull request Jun 17, 2016
Fix fallback-to-shell in HighDevice.SetCPUSpeed()
@rytilahti rytilahti mentioned this pull request Dec 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants