<?php
$file='test.apk';
$fileBytes=file_get_contents($file, "rb");
package($fileBytes,'002');
function getValueFromBytes($tBytes){
$va = 0;
for($j=0;$j<count($tBytes);$j++){
$va += $tBytes[$j] * 256 ** $j;
}
return $va;
}
function decodeBytesFromNum($num,$lens=4){
$tBytes=[];
for ($i=0;$i<$lens;$i++){
$tBytes[]=($num & (0xff << 8 * $i)) >> 8 * $i;
}
return $tBytes;
}