Get application info from APK using PHP script

How can I get the icon versionCode, versionNamethe application image and label applications from the APK with PHP

+5
source share
4 answers

I am not familiar with php, so I cannot provide any code, but the idea is this:

  • unzip the APK file (as this is the “null” zip format)
  • open AndroidManifest.xmland
  • parse the tag <manifest>for android:versionCodeandandroid:versionName
+5
source

If I'm not mistaken, APKs are just zip files. And the android packages will have some kind of XML file that will mention version information.

PHP , XML .

+2

, APK - ZIP- XML.

apks , .

PHP.

+1

,

, apk zip , . xml xml. Android.

apktool, xml, Java , Java .

Python, AXMLParsePY

AXmlPrinter2, Java

I myself am looking for a PHP library and have refused. Now, looking at something easy, I can convert from another language.

+1
source

All Articles