dadb icon indicating copy to clipboard operation
dadb copied to clipboard

Fixed the problem that packet id: "FAIL" was returned when UTF8 characters appeared in the "path" parameter of the "push" method.

Open flyfishxu opened this issue 2 years ago • 0 comments

In the period version, "java.io.IOException: Unexpected sync packet id: FAIL" was thrown when UTF8 characters appeared in the path parameter of the push method. Screenshot 2024-01-22 18 48 16 Screenshot 2024-01-22 17 44 20

Because characters other than ASCII do not occupy only one byte in UTF8 encoding, so using the "remote.length" method to calculate the byte length will result in an incorrect length result, resulting in a "FAIL".

flyfishxu avatar Jan 22 '24 10:01 flyfishxu