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?
/* * Your warranty is... still valid? * * I am not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about features included in this ROM * before flashing it! YOU are choosing to make these modifications, and if * you point the finger at me for messing up your device, I will laugh at you. * */
LITTLE big Avg battery current (positive = battery is draining) 2188800 kHz + 2342400 kHz = 656000 uA 1593600 kHz + 2342400 kHz = 651000 uA 1516800 kHz + 2342400 kHz = 649000 uA 1440000 kHz + 2342400 kHz = 647000 uA 2188800 kHz + 2246400 kHz = 633000 uA [B]2188800 kHz + 2150400 kHz = 609000 uA <-- optimal configuration[/B] 2188800 kHz + 2054400 kHz = 604000 uA 2188800 kHz + 1900800 kHz = 603000 uA