Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,819 Members 41,617 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL][DEV][LINUX ONLY] Fast java src decompiler

Tip us?
 
Tof37
Old
(Last edited by Tof37; 12th November 2012 at 02:47 PM.)
#1  
Tof37's Avatar
Senior Member - OP
Thanks Meter 2583
Posts: 602
Join Date: Oct 2009
Location: Tours

 
DONATE TO ME
Default [TOOL][DEV][LINUX ONLY] Fast java src decompiler

Hello !!!

I'm not a real developper but I manage to make a little tool FOR DEVS to accelerate java src decompile

I don't know if it can be useful, but I wanted to share it ...

I don't really create something, all the tools already exist, you know them all :

JD-GUI : Java decompiler

Dex2jar : useful tool to transform .dex in readable .jar to get java src


Why did I made this ?

I searched how to get java src, useful to build apk or even compile sources, but only found manual way.
Ok decompiling one or 2 files is not a big deal ... but when you need to decompile a whole rom ......

What can this tool do ?
  • getting the java src from an apk and / or a .jar (framework.jar for eg) dex2jar and jd-gui already allow it
  • can decompile several files (.jar and or .apk)
  • rename each file to is native name

How to use it ?

This tool only works on Linux
  • Download attached zip or here
  • Unzip the file in home folder The folder must be in home and musn't be renamed or it won't work properly
  • launch the dex.sh (double click in graphic or use ./dex.sh commande in terminal)
  • Follow the instructions

.classes files need to be associated to JD-GUI use this programm. If you don't know if they already are or not, don't worry let the command do it ...

For more information, I included lines to make .jar files open by JD-GUI.

If you don't need / want these files to be associated after you use this tool type in terminal

PHP Code:
cd ~/.gnome2/nautilus-scripts
sudo rm open
-in-jd-gui.sh 


This tool is not perfect ... firstly I made it for me ....but finally wanted to share it ...

if you like it just tell me and use it ... if you don't .... ok just tell me why I would improve it ...


Huge thanks to :

JD-GUI Developpers : http://java.decompiler.free.fr/?q=jdgui

DEX2JAR Developpers : http://code.google.com/p/dex2jar/

tommytomatoe : for his wonderful Android Utility and for the command lines that helped me more than a lot !!!
Attached Files
File Type: zip jar2dex.zip - [Click for QR Code] (2.56 MB, 46 views)
If you like my work, and want to help me click here to donate

Semc Debrand Engine Contributor

Member of Team XSonX10
---------------------------------------------------------
My contributions on XDA

Achotjan's remplacement Stock- Light Version

X10s Rom

Fast java sources decompiler
The Following 8 Users Say Thank You to Tof37 For This Useful Post: [ Click to Expand ]
 
championswimmer
Old
#2  
championswimmer's Avatar
Recognized Developer
Thanks Meter 7450
Posts: 4,860
Join Date: Oct 2011
Location: Delhi College of Engineering (Delhi Technological University)

 
DONATE TO ME
this is really useful
especially to decompile stock sony jar/apk to port some java classes from their frameworks
If you like my work, you can donate or buy some of my apps on Play Store

CONTRIBUTIONS :
AOKP | TWRPXperia | Kernel Kitchen| TWRP Xperia (Legacy) | Xperia X10

My sources on github
List of donators
My download mirrors : AndroidFileHost || Goo.im

Phones

Xperia :: tipo . X10 . J . S . V . SP . ZR . Z . Z1compact . Z1 . Z2 . Z Ultra . Tablet Z
The Following User Says Thank You to championswimmer For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes