Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view AndroidManifest.xml from APK file?

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?

like image 898
bharath Avatar asked Nov 16 '10 06:11

bharath


People also ask

Which tool is used to extract the AndroidManifest file from the apk file?

- [Instructor] The file AndroidManifest. xml is used to describe the functionality and requirements of an Android application. And it's generated as part of the build process for that Android application. This is a compiled XML binary file and, to read it, we'll use a tool called Apktool.

How do I view the contents of an apk file?

Since APK files come in compressed ZIP format, any ZIP decompression tool can open it. So, for viewing the contents of an APK file, all you have to do is rename its extension to . zip and open it. Or, you can open it directly through an open dialogue box of a zip application.


2 Answers

Yes you can view XML files of an Android APK file. There is a tool for this: android-apktool

It is a tool for reverse engineering 3rd party, closed, binary Android apps

How to do this on your Windows System:

  1. Download apktool-install-windows-* file
  2. Download apktool-* file
  3. Unpack both to your Windows directory

Now copy the APK file also in that directory and run the following command in your command prompt:

apktool d HelloWorld.apk ./HelloWorld 

This will create a directory "HelloWorld" in your current directory. Inside it you can find the AndroidManifest.xml file in decrypted format, and you can also find other XML files inside the "HelloWorld/res/layout" directory.

Here HelloWorld.apk is your Android APK file.

See the below screen shot for more information: alt text

like image 81
Vikas Patidar Avatar answered Sep 21 '22 08:09

Vikas Patidar


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

like image 44
Jonas Jongejan Avatar answered Sep 19 '22 08:09

Jonas Jongejan