This was a course project. The implementation of the VM translates from DEX into an internal format, which is then executed. All opcodes are supported, but library / native call support is very limited. There is currently no development on this project.
Project for CS 691ST - Dalvik VM implementation in Javascript
Setup environment for git access Download project from here: https://github.com/jjfiv/dalvik-js.git
Live page hosted at: http://guptha-.github.com Dex files can be loaded from the local machine.
Recommended supported browsers Firefox (15 and higher) and Chrome (22 and higher)
Open file in browser
example: install_path/dalvik-js/vmtest/index.html
The above url will run builtin in test suite which exercises the opcodes supported by the VM
Known issues will be displayed in the Test failed area
Inorder to run a Dalvik formatted dex file
Open file in browser to
example: install_path/dalvik-js/src/index.html
- Within the html page a file upload dialog will be displayed click load button
- Runnable class files will be present
- Select file and click run class button
- Output produced by executed instructions will be displayed at bottom of page
- Bytecode Reference Describes all 16-bit opcodes
- Instruction Format Describes descriptions of opcodes
- DEX Format Describes the multi-class container format we're probably parsing