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

Endianness in DEX File Description Should be a Calculated Endianness #686

Open
thekief opened this issue Nov 4, 2023 · 1 comment
Open

Comments

@thekief
Copy link

thekief commented Nov 4, 2023

I am new to this format so please excuse potential misunderstandings with regard to the syntax of the format.

I know it is rather picky but Android's DEX file format also allows a big-endian encoding [1] besides the standard little-endian encoding.

If I understand it correctly, the format descritption shown in the Format Gallery [2] defaults the it to little endian. I would suggest that the endianness is using a calculated endianness rather than the defaulted one.

I will look into providing a solution but I am not sure if I get to a proper solution without some help.

[1] https://source.android.com/docs/core/runtime/dex-format#endian-constant
[2] https://formats.kaitai.io/dex/

@armijnhemel
Copy link
Collaborator

I have never seen a big endian DEX file and I am not sure if these even exist, see also this comment from one of the Android developers:

https://news.ycombinator.com/item?id=9462422

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

No branches or pull requests

2 participants