Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Tof37

12th November 2012, 03:19 PM   |  #1  
Tof37's Avatar
OP Senior Member
Flag Tours
Thanks Meter: 2,690
 
612 posts
Join Date:Joined: Oct 2009
Donate to Me
More
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, 58 views)
Last edited by Tof37; 12th November 2012 at 03:47 PM.
The Following 8 Users Say Thank You to Tof37 For This Useful Post: [ View ]
15th September 2014, 04:05 PM   |  #3  
FeraVolt's Avatar
Senior Member
Thanks Meter: 13,207
 
1,771 posts
Join Date:Joined: Dec 2011
Donate to Me
More
@Tof37

Bro, please reupload file, link is down
Thanks

EDIT:
sorry, i am dumb. THX a lot!
Last edited by FeraVolt; 15th September 2014 at 05:16 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes