Convert Your .apk files to .jar files



*Links Updated.Sorry for the technical problems.Keep visiting our sites. CHEERS
I have searched a lot for a bit of information on converting .apk files to .jar files. I will share it with you.Let's get sarted.

Download .apk file from market

  • Download any app from the Android Market [Go]
  • Install Astro File Manager from Android Market [Go]  
  • Open Astro > Tools > Application Manager/Backup and select the application to backup on SD card.
  • Mount the phone as USB and access 'BACKUPAPPS' folder to find the apk of targetapp.(lets call this targetapp.apk).
  • Copy it to your hard disk.

Decomiling apk to Dex format

  • Download Dex2Jar [GO] 
  • Android runs applications which are in Dalvik Executable (.dex) format.
  • Run the following command to convert apk to jar.
dex2jar targetapp.apk file(./dex2jar targetapp.apk on terminal)
                                                 File 'targetapp.apk.dex2jar.jar' is created

[Click to Enlarge]

Viewing/Decompiling the Jar files to Java


Method 1 : Use JavaDecomiler (JD)

  • Open 'targetapp.apk.dex2jar.jar' with jd-gui [Click to Download]  
  • File > Save All Sources to save the class files in jar to java files.
Method 2 : JAD
  • Extract contents of jar file on to a folder named src.  Use and unarchival utility like 7zip.
  • Keep 'src' folder in the same directory where JAD and targetapp jar is present.
  • Open JAD in cmd and execute the following command
jad -o -r -sjava -dsrc src/**/*.class (./jad on terminal)




Now src will contain decompiled Java files ready for manual code review.


Enjoy :)

36 comments:

  1. Is this possible? i am ordinery user. can u make it possible to convert talking tom 2 apk to working .jar file? sir, i m waiting for ur reply.

    ReplyDelete
  2. @hemant123456789

    Thats simple. No. This is just for manual code review. In the end, you have to start writing the .jar files from scratch anyways. So, better get an android rather than trying to get a .jar talking tom. I mean, do you even know how much heap memory it will require.

    Atleast get some basic knowledge before asking something. I mean, I am just 14 years old and still know all the basic shits of a mobile. Shame on you.

    ReplyDelete
    Replies
    1. you may be now 16 year old but i think you still don't know that .jar talking tom can not be installed on a java phone.
      so keep your knowledge with you and don't try to deceive someone.
      ok

      Delete
    2. i mean talking tom.apk can't be install on a java phone.
      ok

      Delete
    3. nobody born with knowledge dont be pride small boy

      Delete
  3. my comand prompt can't open dex2jar.bat
    it sais that `java` isn't an internal or ...
    how can I make it work?

    ReplyDelete
  4. plsssssssssssss help me sme1 :(

    ReplyDelete
  5. Thanks Its easy to convert apk to java file.

    ReplyDelete
  6. once explain me
    it shows wrong command

    ReplyDelete
  7. THIS IS IMPOSIBLE

    ReplyDelete
  8. PLEASE HELP ME HOW CAN I DOWNLOAD ANDROID TO MY CORBY2 ...???

    ReplyDelete
  9. I want to convert the bike race free game to jar file how can i do this, is it possible?
    Please help me.

    ReplyDelete
  10. Really informative article on How to Convert jar to Android apk format. I love this blog. Thank you

    ReplyDelete
  11. Sir,can u make video for converting .apk to .jar

    ReplyDelete
  12. You have written the article and now its wasting our time.
    We request you to answer are queries ....please.

    ReplyDelete
  13. at step three cannot run on cmd jad -o -r -sjava -dsrc src/**/*.class this is u try or not

    ReplyDelete
  14. Nejde to na mobil. píchněte si šipky do prdele

    ReplyDelete
  15. I can't download JavaDecomiler (JD)

    ReplyDelete
  16. but mobile system say invalid file

    ReplyDelete
  17. i want apk file to zar file,, reply me in inbox

    ReplyDelete
  18. Sir
    can you create whatsapp jar files and it send to my email
    Raj.raj.rajmay@gmail.com

    please

    ReplyDelete
  19. It was not helpful trying another article.

    ReplyDelete
  20. Nixe post i like it .....i must install apk file and share my friends list ......
    Update Kingroot Download

    ReplyDelete
  21. sar share your mail id i want convert one app

    ReplyDelete
  22. i have tried it several times and its not working

    ReplyDelete
  23. zip code for nigeria, Gossip & Entertainment,Latest Nigerian Entertainment & nollywood news. Nigerian celebrity gist, paypal nigeria, celebrity gossip… Do you like reading Fun Trivia Questions? If so below are all nigerian newspapers. When a gist is going viral, you will find it here on Nigerian gist list and on nigerian newspapers

    ReplyDelete
  24. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. onlineconvertfree.com

    ReplyDelete