7

I am trying to decode AndroidManifest.xml

I don't want to use APKTOOL or any of its related depedencies because I am trying to write a program that will execute on a machine/device without support for them.

Is there a name to the type of encoding of AndroidManifest.xml?

I am trying to write the program in Java, is there any supported libraries that could help?

Unheilig
  • 16,196
  • 193
  • 68
  • 98
iordanis
  • 1,284
  • 2
  • 15
  • 28
  • tried apk parser? : https://github.com/xiaxiaocao/apk-parser – Tharif Mar 24 '15 at 06:37
  • See: [How to view AndroidManifest.xml from APK file?](https://stackoverflow.com/questions/4191762/2533433) and also [How to parse the AndroidManifest.xml file inside an .apk package](https://stackoverflow.com/questions/2097813/2533433). The latter even contains Java code to do that. – Izzy May 26 '17 at 12:08
  • 2
    When I posted this question, I wanted to avoid APK tool, I wanted a java native solution only. – iordanis May 26 '17 at 12:11

2 Answers2

2

You don't need to use/download any external tools

Recent versions of Android Studio have a tool to analyze and profile APKs.

In the latest version 3.1.2 (May 12, 2018): Go to File > Profile or Debug Apk does the job and more.

Ace
  • 2,108
  • 22
  • 29
0

You could try this code: https://gist.github.com/seymores/2425692
It only uses the Java FrameWork and nothing else.