<?php
include ("session.php");
header('Content-Type: application/vnd.android.package-archive');
header('Content-Disposition: attachment; filename="main.apk"');
$apk = file_get_contents('main.apk');
header("Content-Length: ".strlen($apk)); // replace the 11111 with the real apk-size
print($apk);
#passthru('main.apk',$err);
?>