From: Jerry Z. <zha...@go...> - 2018-03-13 19:50:38
|
> > So, you saw from the other thread that my problem was due to libmtp > never reading the extended properties when downloading a file. The > ObjectCompressedSize is defined as a 32bit value, so it will always be > truncated - that's the spec. You always have to read the ObjectSize > property to get the real filesize. > Agreed > > Completely separately, is the issue of DEVICE_FLAG_PROPLIST_OVERRIDES_OI > Based on my testing, and your understanding of the device code, this > flag shouldn't be set for Nexus/Pixel devices. > Yes. I've added logging to the code where it serializes data into the buffer for writing, and at that moment, on a P device, it is not being truncated. I haven't yet done a similar check for pre-P devices, so if you let me know what version you are seeing the truncation behavior on, I can pull out the sniffer and investigate further. --Jerry |