使用PHP脚本从APK应用程序获取信息 [英] Get Application information from an APK using PHP script

查看:123
本文介绍了使用PHP脚本从APK应用程序获取信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能获得版本code 的versionName 从APK,应用程序图标和应用标签用PHP

How can I get the versionCode, versionName, application icon and application label from an APK with PHP

推荐答案

我没那么熟悉PHP,所以我不能提供任何code,但这个想法是:

I'm not that familiar with php so I can't provide any code, but the idea is:


  • 解压APK文件(因为它是例正常zip格式)

  • 打开的Andr​​oidManifest.xml

  • 解析<清单> 标记安卓版本code 安卓的versionName

  • unzip the APK file (since it's "nomal" zip format)
  • open the AndroidManifest.xml and
  • parse the <manifest> tag for android:versionCode and android:versionName

这篇关于使用PHP脚本从APK应用程序获取信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆