Android vs WPD bug. Wrong filesizes reported

I stumbled upon a strange bug in what Android can report to e.g. Windows trough the MTP/WPD interface.

Under some circumstances it reports a VERY wrong file size, but if you by WPD open a stream and copy the file until it sends no more bytes, it returns the correct full content.

Continue reading “Android vs WPD bug. Wrong filesizes reported”