How to view AndroidManifest.xml from APK file?

2019-01-03 00:40发布

Is it possible to view Androidmanifest.xml file?

I just changed the extension of the apk file to zip. This zip file contains the Androidmanifest.xml file. But I am unable view the contents of Androidmanifest.xml. It is fully encrypted.

How can I view the Androidmanifest.xml file?

12条回答
Fickle 薄情
2楼-- · 2019-01-03 01:14

Android Studio can now show this. Go to Build > Analyze APK... and select your apk. Then you can see the content of the AndroidManifset file.

查看更多
等我变得足够好
3楼-- · 2019-01-03 01:14

You can use this command: save to file AndroidManifest.txt

aapt dump xmltree gmail.apk AndroidManifest.xml > AndroidManifest.txt
查看更多
Emotional °昔
4楼-- · 2019-01-03 01:16

The AXMLParser and APKParser.jar can also do the job, you can see the link. AXMLParser

查看更多
Ridiculous、
5楼-- · 2019-01-03 01:18

In this thread, Dianne Hackborn tells us we can get info out of the AndroidManifest using aapt.

I whipped up this quick unix command to grab the version info:

aapt dump badging my.apk | sed -n "s/.*versionName='\([^']*\).*/\1/p"
查看更多
地球回转人心会变
6楼-- · 2019-01-03 01:20

There is an online tool that lets you upload an APK It decompiles it and finally lets you to download a zip with all sources, manifest XML file and so on decompiled, all of that without having to install any program on your computer: http://www.javadecompilers.com/apk

Also if you wish just to check on some params you can, by their UI

查看更多
叼着烟拽天下
7楼-- · 2019-01-03 01:21

You can directly use aapt l -a name.apk command to see the manifest.xml.

This link might help http://elinux.org/Android_aapt

(This will also dump the resource table.)

查看更多
登录 后发表回答