Questions tagged [dex2jar]

Dex2jar is a set of tools to work with Android .dex and java .class files.

Tools to work with Android .dex and java .class files

  • dex-reader/writer: Read/write the Dalvik Executable (.dex) file. It has a light weight API similar with ASM.
  • d2j-dex2jar: Convert .dex file to .class files (zipped as jar).
  • smali/baksmali: disassemble dex to smali files and assemble dex from smali files. Different implementation to smali/baksmali, same syntax, but with support to escape in type desc "Lcom/dex2jar\t\u1234;"
  • other tools: d2j-decrypt-string

Official website

dex2jar

52 questions
63
votes
2 answers

Cannot use dex2jar on my mac: permission denied

I downloaded dex2jar and now trying to use it, but if I type 'sh d2j-dex2jar.sh' it shows the following message. d2j-dex2jar.sh: line 36: ./d2j_invoke.sh: Permission denied At first I thought that the permission was denied because the programme…
user4911668
41
votes
3 answers

using java decompiler jd-gui and getting // INTERNAL ERROR //

I decompiled an apk file using dex2jar and opened the resulting jar file in jd-gui. I can view almost all of the code nicely but one section - the constants - displays only // INTERNAL ERROR // and nothing else. Is there a way to retrieve the…
blizz
  • 4,102
  • 6
  • 36
  • 60
18
votes
1 answer

Alternative to dex2jar and jd-GUI?

it seems that either dex2jar and/or jd-GUI gives bad de-obfuscation even for the simplest code of if-else condition (they show a while(true) loop which has a return; on its first line . are there any other freeware apps that do the same work of…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
12
votes
7 answers

Apk decompile error: d2j-dex2jar command not found

I try to get source code from an .apk I followed the steps from right here Is there a way to get the source code from an APK file? but on Step 2.4 when I wrote on my cmd dex2jar path> d2j-dex2jar classes.dex I get "'d2j-dex2jar' is not recognized…
ghita
  • 2,746
  • 7
  • 30
  • 54
5
votes
2 answers

java heap size error dex2jar android decompile solution?

i was working on a android project but my laptop was formatted so i lost all code but i had a signed apk of the file on my phone .. whenever i try to use dex2jar it stops converting mid way with this error. how can i increase the heap size or is…
Anurag Dalia
  • 156
  • 4
  • 11
4
votes
0 answers

How do I use dex2jar to reverse multiple dex files

I know that when the apk file is decompressed and there is only one dex file, d2j-dex2jar.bat classes.dex will get the correct jar file, But with classes.dex, classes2.dex, classes3.dex files, what should I do to get the correct jar?
jianyi
  • 151
  • 1
  • 3
  • 11
4
votes
0 answers

Extract source code from APK file not working. ".. ROOT cause" message

I've recently begun programming. I've been following this tutorial to extract a source code from my APK file on my MacBook Pro: https://www.youtube.com/watch?v=-AX4NYE-9V8 All the steps worked well until I tried the command "sh dex2jar.sh…
AppY
  • 51
  • 3
3
votes
2 answers

dex2jar is not recognized as an internal or external command, operable program or batch file

I am trying to convert one of my old APK's to a jar. 1. I downloaded apk tool in order to get the classes.dex file from my apk. 2. I downloaded dex2 jar and in the command line entered: C:\Users\myLaptop\Downloads\dex2jar-2.0>dex2jar…
Simeon Ikudabo
  • 2,152
  • 1
  • 10
  • 27
3
votes
3 answers

Decompile APK, modify an activity and recompile to APK

I'm trying to do something simple. I have an APK file, I want to change a certain variable value in a certain activity, and then recompile it back to APK so I can use it on my android device. It's been days since I started with it and I can't find…
Itay Ganor
  • 3,965
  • 3
  • 25
  • 40
3
votes
1 answer

dex2jar.jar file generated contains only appinfo class

I lost my android source code and i am trying to get it back somehow. I have an apk installed in my phone which is the only backup i have. I tried using dex2jar and was able to generate a classes_dex2jar.jar file but when i open it with java…
Yasir Abbas
  • 201
  • 2
  • 12
3
votes
1 answer

How to make dex2jar to skip certain classes while converting dex to jar?

I'm making an application that uses the dex2jar library to convert a dex file (from an android application package) to a jar file. But the process takes quite long especially due to android.support.x classes. Is there a way to make dex2jar skip…
niranjan94
  • 754
  • 1
  • 8
  • 28
3
votes
1 answer

CMD problems in reaching dex2jar

"dex2jar classes.dex" is not recognized as an internal or external command, operable program or batch file. i got this problem when im trying to generate a classes.dex.jar i think my environment variables have the problem but i cant figure it…
2
votes
0 answers

Why does dex2jar create 50 identical errors

i run dex2jar but after finished it says there were 50 errors. All 50 error-files are the same and have in line two of the error-file: "java.lang.RuntimeException: can not merge I and Z". After this follows the position where the error occured. The…
Markus.H1
  • 31
  • 7
2
votes
1 answer

Using dex2jar jar file in terminal

I have been using Ubuntu 14.04. I have dex2jar.jar file and i want to use dex2jar to decompile a dex file into jar, but there is no sh file to make it easier and i have no idea how to make one.
Angad Singh
  • 1,032
  • 1
  • 17
  • 36
2
votes
0 answers

How to use dex2jar project?

I have been looking for dex2jar.jar file since i have used it once few months ago, but since the project has changed a lot, I cannot find the jar anywhere on Internet, the project i have found out is: https://github.com/pxb1988/dex2jar and only…
Angad Singh
  • 1,032
  • 1
  • 17
  • 36
1
2 3 4