Required software's and Tools
or
Get APK source code files for Mac OS X
or
Get APK source code files for Linux
Step
1. Rename
the .apk file you wish to retrieve and change the extension to .zip.
Then extract the file that it creates.
Step
2. Copy
the contents of the dex2jar folder to the extracted folder to make it
easier for yourself, and run:
dex2jar classes.dex
and
copy the resulting “classes.dex.dex2jar.jar” into a new folder.
Step
3. Open
up the Java Decompiler and drag “classes.dex.dex2jar.jar” into
the window and then go to File > Save and save the source in a
.zip file.
Step
4. Extract
the saved .zip and copy the contents to a new folder somewhere. This
will be where we keep your source code.
Step
5. Now,
copy “framework-res.apk” and “yourapk.apk” to the APKTool
folder. Then open a command prompt or Terminal window and type:
apktool if framework-res.apk apktool d <yourapk.apk>
Step
6. Now
just copy the contents of the resulting folder to the same place you
copied the contents of “classes.dex.dex2jar.jar” earlier and
voila, you have your source code. You may need to remove a couple of
things as shown in the video, but your entire code should be there!
Import project into eclipse
Step By step
1.
Navigate to Import section
2. Select ‘Existing Android project into workshop’ option under ‘Android’ section and click on ‘Next’
3. In the next screen browse and select the app folder, check the option ‘Copy project into workspace’.
2. Select ‘Existing Android project into workshop’ option under ‘Android’ section and click on ‘Next’
3. In the next screen browse and select the app folder, check the option ‘Copy project into workspace’.
4.App is imported successfully.
Hope this help you guys:)