skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.4k stars 4.85k forks source link

[gui] Error generating smali code: Dex version 040 is not supported #2127

Open privacyguy123 opened 7 months ago

privacyguy123 commented 7 months ago

Issue details

Sorry I am not well versed in this stuff enough to understand this error output - does jadx not support this version of Dex?

Jadx version

1.4.6

Java version

1.8.0_211

OS

jpstotz commented 7 months ago

According to the Android dex format help site version 39 should be the latest version. Where did you got a DEX file with version 40?

skylot commented 7 months ago

version 39 should be the latest version

Also, jadx do not check dex file version, and looks like error comes from smali library. So I am more curious of your usage pattern and how do you get this error :slightly_smiling_face:

privacyguy123 commented 7 months ago

Dex files were compiled with newest smali fatjars from Google repo ...

MrIkso commented 7 months ago

According to the Android dex format help site version 39 should be the latest version. Where did you got a DEX file with version 40?

https://source.android.com/docs/core/runtime/dex-format#simplename

See it for 041 https://android.googlesource.com/platform/external/smali/+/c360d663ab4a077493037923ddf3f8bf59f30974%5E%21/#F2

It for 040 https://android.googlesource.com/platform/art/+/master/libdexfile/dex/dex_file.h#301 @skylot it here all dexopcodes for testing https://cs.android.com/android/platform/superproject/main/+/main:dalvik/dx/tests/ https://android.googlesource.com/platform/art/+/refs/heads/main/test/

skylot commented 7 months ago

@MrIkso thanks for links :+1: Changes summary: