Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/ApkInfo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  Apk Parser  >  examples/ApkInfo.php  >  Download  
File: examples/ApkInfo.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Apk Parser
Extract Application Package files in APK format
Author: By
Last change: used new methods in examle. getVersion(Code|Name)()
Date: 2012-04-10 04:30
Size: 701 bytes
 

Contents

Class file image Download
<?php
    
include '../ApkParser.php';
    
$apk = new ApkParser('EBHS.apk');

    
$manifest $apk->getManifest();
    
$permissions $manifest->getPermissions();

    echo 
'<pre>';
    echo 
"Package Name      : " $manifest->getPackageName()  . "\r\n";
    echo 
"Vesrion           : " $manifest->getVersionName()  . " (" $manifest->getVersionCode() . ")\r\n";
    echo 
"Min Sdk Level     : " $manifest->getMinSdkLevel()  . "\r\n";
    echo 
"Min Sdk Platfrom  : " $manifest->getMinSdk()->platform['name'] ."\r\n";

    echo 
"------------- Permssions List -------------\r\n";
    foreach(
$permissions as $perm => $description)
    {
        echo 
$perm "\t=> " $description ." \r\n";
    }