Creating a Dalvik parser in Rust (Part 1)


#1

In SUPER we are creating a Dalvik (dex file) parser to implement the actual parsing in pure Rust, and here we have the first article explaining how we are doing it:

http://superanalyzer.rocks/2016/10/18/dalvik-parser-1

What do you think? Should we explain more things? What would you like to know about the implementation? Still lots of things are left in the code repo itself, and some of the things already implemented in the repo are not in the article (they will come in part 2).


#2

What I would personally do is to have a function that reads the correct byte order depending on the header. That would get rid of lots of copy pasted code.


#3

We are actually using something like that since some commits ago: https://github.com/SUPERAndroidAnalyzer/dalvik/blob/develop/src/header.rs#L115

We will publish it in the next post :slight_smile: