获取的Andr​​oid的.apk文件VERSIONNAME或版本code,而无需安装APK [英] Get Android .apk file VersionName or VersionCode WITHOUT installing apk

查看:182
本文介绍了获取的Andr​​oid的.apk文件VERSIONNAME或版本code,而无需安装APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何才能让编程。

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="xxx.xx.xxx"
    android:versionCode="1"
    android:versionName="1.1" >

例如我要检查是否有新版本上传到我的IIS服务之后对设备进行安装,如果没有一个新的版本,我不想安装它。

For example I want to check if a new version is uploaded on my IIS service after that install it on device, if not a new version I don't want to install it.

推荐答案

以下为我工作的命令行:

Following worked for me from the command line:

aapt dump badging myapp.apk

这篇关于获取的Andr​​oid的.apk文件VERSIONNAME或版本code,而无需安装APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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