View Single Post
Old 08-13-2016, 03:00 PM   #928
Sukarn
Enthusiast
Sukarn began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2015
Device: Kindle PaperWhite 2
Quote:
Originally Posted by wodan15 View Post
Sorry @sukran the quote didn't show up.
That's okay, really. I already said I can't find any fault with you when you were only trying to help :-)

Quote:
Originally Posted by knc1 View Post
...create a file of 512 bytes of zeros (or as few as one) as that name.
The dumb software will 'continue' to append the OTA file to it.
Which of course will fail to install because the signed checksum will fail.

That will leave you with a nice copy of the OTA file (which you will probably have to un-delete from USB storage) once you trim your dummy header off of it.
That does assume that you can replace the dummy header with the actual header, i.e. you have the correct header lying around with you elsewhere, because if it's appending data like a pure "wget -c" then it will just start appending from byte 513 by starting a download offset by 512 bytes.

Then, it additionally assumes that when the update fails an integrity check or whatever kind of check they have, the software does not do an "rm update.bin.whatever.the.name.was" followed by attempting the download again at some random point of time in future.
After all, they wouldn't want people to stop receiving updates just because one update at one time was corrupted while being downloaded.
Sukarn is offline   Reply With Quote