WHAT IS APK FILE ?
We can say APK files are a type of archive file, These files are specifically in zip format packages based on the JAR file format, with .apk as the filename extension. The MIME type associated with APK files is application/vnd.android.package-archive.We can extract the code from apk file these are some of the tools that will help you to extract the source code and xml layout file from the apk files.
HOW THE EXTRACT THE APK FILE ?
To extract the APK File,There are three tools you will need :
Make sure you follow the installation instructions for APKTool. Windows users will have to
download two files to get it working.
Once you have these downloaded and installed, the next thing you will need is an APK.
Now, that you have everything you will need to do the following:
You now have the raw data available to you. You can use JD-Gui to peruse the extracted
classes and even save the source down as Java. All of the layouts, manifest, strings, images, and assets are also available to you in the appropriate folders.
We can say APK files are a type of archive file, These files are specifically in zip format packages based on the JAR file format, with .apk as the filename extension. The MIME type associated with APK files is application/vnd.android.package-archive.We can extract the code from apk file these are some of the tools that will help you to extract the source code and xml layout file from the apk files.
HOW THE EXTRACT THE APK FILE ?
To extract the APK File,There are three tools you will need :
- apktool,
- dex2jar,
- and jd-gui
- http://code.google.com/p/dex2jar/
- http://code.google.com/p/android-apktool/
- http://java.decompiler.free.fr/?q=jdgui
Make sure you follow the installation instructions for APKTool. Windows users will have to
download two files to get it working.
Once you have these downloaded and installed, the next thing you will need is an APK.
Now, that you have everything you will need to do the following:
- Extract the APK using APKTool.
- Run: apktool d <apk>
- Extract the classes.dex file found in the APK file.
- Run: jar xvf <apk> classes.dex
- Extract the classes from classes.dex file.
- Run: dex2jar classes.dexExtract the classes.dex.dex2jar.jar.
- Run: jar xvf classes.dex.dex2jar.jar
You now have the raw data available to you. You can use JD-Gui to peruse the extracted
classes and even save the source down as Java. All of the layouts, manifest, strings, images, and assets are also available to you in the appropriate folders.
HAPPY BLOGGING
0 comments:
Post a Comment