ysfchn / SamFetch

A web API to download Samsung firmware easily without headers, authorization or anything that you don't want.
GNU Affero General Public License v3.0
46 stars 17 forks source link

Warning "There are some data after the end of the payload data." #1

Closed ysfchn closed 3 years ago

ysfchn commented 4 years ago

As SamFetch directly streams the file to the browser, I can't unpad the bytes of the last chunk of the file because Iterator and/or Generator doesn't allow me to know which chunk is the last, but it is normal, because SamFetch doesn't know when the file will finish downloading.

So it appends unnecessary bytes to the end of the file. And 7Zip (or etc) may return this warning. (not an error) when opening the archive.

There are some data after the end of the payload data.

But looks like it is not a critical issue because such programs like 7Zip can handle that as payload data is already stable/safe and file contents are decrypted as expected.

Anyways, if you get any errors while opening the archive because of the above error, use something like 7Zip.

Because of that hash values of the firmware archive also are different than shown on the Kies servers.