USB Data Corruption
new OP3T. flashed recommended firmware. reformatted data to ext4. wiped system. flashed your current build. boots fine.
now, every time i copy a big file (700+MB) via MTP (from linux mint 17.3), i get no errors but a corrupted copy of the data in the phone.
i read the file back to the PC over MTP and i get a bit-perfect copy in that direction.
this all checked with hashes in PC and phone.
every time i copy from PC to phone i get a new, differently corrupted file.
the length of the corrupted file is always correct though.
THE SILENT CORRUPTION BUSINESS IS AS BAD A THING AS ONE COULD FEAR.
i switch to using adb push, then this happens:
$ adb push xxx.tar.lzo /sdcard/
adb: error: failed to copy 'xxx.tar.lzo' to '/sdcard/xxx.tar.lzo': no response: Success
after some variable amount of file copied, adb push aborts with that message.
after about 10 tries, i give up.
next, i switch the USB cable with a different one. results:
-MTP no longer corrupts files
-adb push succeeds
the original flashing files (firmware, rom, gapps) were pushed via TWRP 3.1.0-1 MTP using the BAD CABLE. flashing did not complain about corruption in zips. maybe TWRP's kernel USB controller driver recovers from USB corruption at the link layer, as it should?
|Thread Tools||Search this Thread|