Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
privacyguy123 opened this issue Mar 17, 2024 · 5 comments
Open
1 of 3 tasks

Comments

@privacyguy123
Copy link

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

  • Windows
  • Linux
  • macOS
@privacyguy123 privacyguy123 added bug GUI Issues in jadx-gui module labels Mar 17, 2024
@jpstotz
Copy link
Collaborator

jpstotz commented Mar 17, 2024

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
Copy link
Owner

skylot commented Mar 17, 2024

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 🙂

@skylot skylot added no-sample waiting for reply and removed GUI Issues in jadx-gui module labels Mar 17, 2024
@privacyguy123
Copy link
Author

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

@skylot
Copy link
Owner

skylot commented Mar 18, 2024

@MrIkso thanks for links 👍
Changes summary:

  • Dex format versions:
    • 40: allows spaces (Unicode ones) in class names 🤣
    • 41: add support of container to store several dex files in one physical file
  • Smali libs from Google starting at 3.0.5 supports up to version 41 (read-only), and starting to write version 40 for api 29-34 (previously was 39 🤔), 41 for 35
  • Latest unstable jadx version should support 40 version without issues (@privacyguy123 please check)
  • Support for 41 version in jadx shouldn't be hard, but still lots of changes need to be done.
    I will create new issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants