I found an error:
$name_file="test2.apk"; $path="/home/user/public_html/apk/"; $dimension_file=(string)filesize($name_file);
i retrieved the size using only the file name instead of using the full path
filesize($name_file) ---> filesize( $path . $name_file)
the error was hidden from
header("Content-Type: application/vnd.android.package-archive");
and the response to the php error is added to the contents of the downloaded file.
So, I suggest who has such problems to comment on the "Content-Type" during debugging, to find out if there are any errors in the PHP code, and when all the code seems to activate the "Content-Type" again, heading.
On my server spaces in code before
readfile($path.$name_file);
does not affect the checksum
Thanks to Vladimir and Rocket for good practice tips.
source share