A few weeks ago I tried flashing my LG G2 D802 with Cyanogenmod 11.
After completely wiping my device, I tried uploading the new ROM using ADB Sideload. (for more info see, previous post on Update TWRP & Sideload a ROM)
However, after putting in the commands in my terminal, I came across the following error:
Failed to write data, protocol fault!
Oh noes! What now?
Good news, there is no need to panic 😉 after exploring the xda forums some more, I came across the following solution here: http://forum.xda-developers.com/showthread.php?t=2720846
Rather then do “sideload”, I just stayed in ‘Advanced’ and performed:
adb push (romname) /sdcard
it successfully copied the rom to the sdcard folder, then I was able to install the rom just fine.
The forum suggests that, in stead of trying to upload the file with adb sideload, use a push command instead to put the files on your device.
After doing this, I rebooted in my TWRP Recovery and was able to flash the .zip I just pushed to my device.
PS: pushing the data to your device might take some time (up to 10 minutes in my case), don’t panic or pull out the usb cable while your adb is pushing without direct feedback 🙂
Phew! It worked!