2

Is there a possibility to convert a smali byte code into a jar. I have tried using Baksmali to do the reverse from odex to smali but is there a way to go backwards to jar itself

Adshead
  • 107
  • 4
  • 10
  • A jar file is just an a zip file. So you can convert anything into a jar file. Do you actually want to convert ".dex" files to ".class" files? – Stephen C Jun 19 '18 at 14:33

1 Answers1

1

Yes. See enjarify or dex2jar. Both take a dex file, and output a jar file with the converted java .class files.

And of course, you can use smali to first convert the smali files back to a dex file.

JesusFreke
  • 19,784
  • 5
  • 65
  • 68
  • What if I have odex file and I want to convert to Jar. Because in this case, I have smali bytecode which I want to convert to jar @JesusFreke – Adshead Jun 19 '18 at 14:48