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
0
votes
0 answers

Not Support Yet DexException

I'm trying to run the d2j-dex2jar command on Santoku VM to convert .apk file to .jar file, but everytime it is giving me this exception : I'm fairly new to using this tool. I found a website which told me to transfer the apk file into the extracted…
tan_000
  • 41
  • 3
0
votes
2 answers

How to bypass isFromMockProvider() in Smali

I tried to edit source code of an app which is used to locate servants It has a function or parameter "isFromMockProvider()" I guess this one is the culprit I want to bypass it So that App could not know that I am using Mock location I am a python…
Ninja
  • 11
  • 1
0
votes
0 answers

Dex2jar issue: the src file is not a .dex file

I have a dex file I want to convert to a .jar file; it's 4.5MB, it starts with qh(null), its called classes.dex and I think it's valid. In my windows machine, when running dex2jar.bat on it I get an error: java.io.IOException: the src file not a…
A. Abramov
  • 1,823
  • 17
  • 45
0
votes
2 answers

How to use a jar file obtained from apk conversion using dex2jar in another Android project?

I have an apk file of an android app, which I convert to a jar file using dex2jar. Now, I would like to use this jar file in another Android project. To do so, I use provided files('libs/filename.jar') in my build.gradle file. However, when trying…
media
  • 433
  • 5
  • 19
0
votes
2 answers

Can some one hack API calls of React Native or any traditional JS Native Apps

Let say i have a post api call like this fetch('https://mywebsite.com/endpoint/', { method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ firstParam: 'yourValue', …
user9092050
0
votes
1 answer

Get Android Studio Project from APK file

I have an APK file on my phone for an app that I was testing. I, not realizing that I didn't back up my source Android Studio project, deleted the source as I was looking for an older version online. Regardless to say, I didn't find the older…
Epic Gamer_1
  • 104
  • 3
  • 12
0
votes
1 answer

What is the difference between akpanalyzer and dex2jar?

While working on adding obfuscation to an android mobile application, I tried to tests the generated APK and make sure the code is obfuscated. I did that with 2 different tools - apkanalyzer and dex2jar (following this guide). I used apkanalyzer to…
Omer Levi Hevroni
  • 1,935
  • 1
  • 15
  • 33
0
votes
1 answer

Decompiling classes.dex file doesn't show my actual java code

I developed an app using the android studio and tested it on my phone. Then, I formatted my laptop and my code was gone. Now, I want my code back. So, I got the apk of my app by using shareit app which shares the apk. I decompiled it using these…
Shifali
  • 39
  • 1
  • 9
0
votes
1 answer

Recompile a apk file

I was tried to Recompile an app file (apk). I decompile the apk file with apktool (2.3.1), and dex2jar(2.0), now I have .java file (from the dex2jar), and I don't know how to recompile it, apktool error: W: Unknown file type, ignoring: (files).java…
yeo4
  • 356
  • 1
  • 4
  • 12
0
votes
1 answer

Android proof for copying my Sourcecode

Me and my team coded an Android Application for a customer of my company. Due to some "political issues" the cooperation ended. The customer now uses the unpaid Application. I used dex2jar and apktool for reverse engineering but within the…
Lars
  • 794
  • 7
  • 21
0
votes
2 answers

why I am not able to see classes.dex after extraction of .apk?

I have opened .apk archive file which shows me the following file: Androidmanifest.xml resource.ars META-INF folder RES folder I am not able to get classes.dex. It shows me in zip folder but when I extract it classes.dex disappear after…
Suman Tiwari
  • 40
  • 1
  • 10
0
votes
1 answer

Terminal - dex2jar mac

I am trying to convert .dex to.jar, I have dex2jar on my desktop and I also placed the classes.dex file on my desktop. I navigated to d2j-dex2jar.sh using MacBook-Pro:dex2jar Username$ ./d2j-dex2jar.sh and now I have this options: d2j-dex2jar --…
Brooks
  • 31
  • 8
0
votes
1 answer

Dex2Jar-API usage example

I'm trying to create an application for APK-analysis written in Java. I need to add source code viewing option to my application. To my mind, best way for this is to somehow use Dex2Jar project, that has API and Maven repository, but I don't know…
0
votes
1 answer

Android convert Class in dex to anonymous name

When I decompiled my apk using dex2jar-2.0 I could get my original code only. But for some popular APK, when I followed the same steps I got Class names like A, B, AB etc How to make my apk also secure like those apks Please suggest me
Sharanabasu Angadi
  • 4,304
  • 8
  • 43
  • 67
0
votes
1 answer

Android decomplie strange problems

I have catch a strange problem about Android decomplie. For research, I decomplie an Android apk by apktool and dex2jar, every thing seems ok, but when I use JD-GUI to open the decomplied .jar file, I cannot found any Android Activity class file in…
Tim Wong
  • 277
  • 1
  • 4
  • 17