Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting APK to JAR [duplicate]

Possible Duplicate:
apk to jar convertor

In order to have a multiplatform application, i have a question a little special:

It's how to convert the file "APK" to "JAR".

Thanks for all

like image 997
Zombie_Colonel Avatar asked Mar 21 '12 21:03

Zombie_Colonel


People also ask

Can I convert APK to jar?

Yes, MConverter supports batch converting of multiple APKs to JARs simultaneously. You can even drag and drop folders containing APKs to convert to JAR.

Can we extract source code from APK?

Use jadx. Jadx decompiles the code in a given APK to java source files. Use apktool. Apktool is a command line tool which extracts resources and decompiles code into smali for a given apk.


1 Answers

dex2jar converts .apk to .jar, but you still have .class files in there. Those that do not link to the Android framework (which are probably only a few utility classes) should be reusable for another platform.

Using jd-gui you can even look at the java code (most of the time at least)

And if you want to extract the resources (you probably need to images too if you want to "convert" it to a different platform) apktool

But there is absolutely no way to take an .apk and run it through a converter and have a Windows program.

like image 161
zapl Avatar answered Oct 17 '22 02:10

zapl