Search code examples
androiddex

How to decompile and recompile dex files


So I decompiled a .dex file into a directory that has the following folders(inside a source folder with nothing else in it):

  1. Org
  2. Okhttp3
  3. Defpackage
  4. Bolts
  5. Bitter
  6. Android
  7. Kotlin
  8. Javax
  9. Dagger
  10. Androidx
  11. Com

I wanted to edit some of the files from this and then recompile it but I don't know how I would be able to recompile the whole directory back into dex to recreate the APK.


Solution

  • You can use reverse engineering tools like ApkTool