Search This Blog

July 17, 2015

How to Convert Android .apk to Source Code (Java and XML Code)


Finally we found a way to easily decompile Android apk to original java source code. Here are the instructions to decompile android apk to java source code. This method is also called as Reverse Engineering.

Android .apk to source code




Procedure for decoding .apk files, step-by-step method:

Step 1:

1.    Make a new folder and copy over the .apk file that you want to decode.
2.    Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.

Step 2:

1.    Now extract this .zip file in the same folder (or NEW FOLDER).
2.    Download dex2jar and extract it to the same folder (or NEW FOLDER).
3.    Move the classes.dex file into the dex2jar folder.
4.    Now open command prompt and change directory to that folder (or NEW FOLDER). Then write d2j-dex2jar classes.dex (for mac terminal or ubuntu write ./d2j-dex2jar.sh classes.dex) and press enter. You now have the classes.dex.dex2jar file in the same folder.
5.    Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.
6.    Save all of these class files (In jd-gui, click File -> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.

 

Step 3:

Now open another new folder
1.    Put in the .apk file which you want to decode
2.    Download the latest version of apktool AND apktoolinstall window (both can be downloaded from the same link) and place them in the same folder
3.    Download framework-res.apk and put it in the same folder (Not all apk file need this file, but it doesn't hurt)
4.    Open a command window
5.    Navigate to the root directory of APKtool and type the following command: apktool if framework-res.apk
6.    apktool d myApp.apk (where myApp.apk denotes the filename that you want to decode)
now you get a file folder in that folder and can easily read the apk's xml files.

Step 4:
It's not any step just copy contents of both folder(in this case both new folder)to the single one
and enjoy the source code...

10 comments:

  1. Thank you. Found it interesting and useful. Java is a general purpose, high-level, class-based and object-oriented programming language. And we provide Java training in Chennai

    ReplyDelete
    Replies
    1. Solution From Internet: How To Convert Android .Apk To Source Code (Java And Xml Code) >>>>> Download Now

      >>>>> Download Full

      Solution From Internet: How To Convert Android .Apk To Source Code (Java And Xml Code) >>>>> Download LINK

      >>>>> Download Now

      Solution From Internet: How To Convert Android .Apk To Source Code (Java And Xml Code) >>>>> Download Full

      >>>>> Download LINK VI

      Delete
  2. free source code android canyon
    May be useful for all of us

    http://www.vellisya.com/download-gratis-source-code-aplikasi-android/

    ReplyDelete
  3. Hadoop is one of the best cloud based tool for analysisng the big data. With the increase in the usage of big data there is a quite a demand for hadoop professionals.
    Big data training in Chennai | Hadoop training Chennai | Hadoop training in Chennai

    ReplyDelete
  4. http://technikes.com/find-a-source-code-from-apk-file/ maybe this link help you.visit once

    ReplyDelete
  5. This post is so interactive and informative.keep update more information...
    Scope of Graphic Designing
    Demand for Graphic Designer

    ReplyDelete
  6. Solution From Internet: How To Convert Android .Apk To Source Code (Java And Xml Code) >>>>> Download Now

    >>>>> Download Full

    Solution From Internet: How To Convert Android .Apk To Source Code (Java And Xml Code) >>>>> Download LINK

    >>>>> Download Now

    Solution From Internet: How To Convert Android .Apk To Source Code (Java And Xml Code) >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete
  7. Thanks for sharing very important information, keep us posted more Python Training in Pune
    python classes in pune with placement

    ReplyDelete

Earn Money From Home