如何分析内部的的apk包的Andr​​oidManifest.xml文件 [英] How to parse the AndroidManifest.xml file inside an .apk package

查看:135
本文介绍了如何分析内部的的apk包的Andr​​oidManifest.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该文件似乎是一个二进制XML格式。这是什么格式,怎么能编程方式解析(而不是使用SDK中AAPT转储工具)?

这二进制格式没有在文件这里讨论。<​​/ P>

注意:我想从pferably从Java访问这些信息在Android环境之外,$ P $

解决方案

采用Android-apktool

有读取的apk文件和德codeS XMLS到接近原始形式的应用程序。

用法:

  apktoolðGmail.apk和放大器;&安培;猫的Gmail / AndroidManifest.xml中
 

检查的Andr​​oid apktool 了解详情

This file appears to be in a binary XML format. What is this format and how can it be parsed programmatically (as opposed to using the aapt dump tool in the SDK)?

This binary format is not discussed in the documentation here.

Note: I want to access this information from outside the Android environment, preferably from Java.

解决方案

Use android-apktool

There is an application that reads apk files and decodes XMLs to nearly original form.

Usage:

apktool d Gmail.apk && cat Gmail/AndroidManifest.xml

Check android-apktool for more information

这篇关于如何分析内部的的apk包的Andr​​oidManifest.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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