Skip to content

Trugath/jdalvikvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jdalvikvm

Build Status Project Status

Fork of android-dalvik-vm-on-java (https://code.google.com/p/android-dalvik-vm-on-java)

'Pure' Java implementation of the Dalvik Virtual Machine. Allows you to load and execute dex files using the JVM

Usage

See: jdalvikvm-sample

  final byte[] dexByteCode = ... Loaded from dex file ...;
  final String absoluteMainClassName = "tutorial1.HelloWorld";
  final VirtualMachine vm = new VirtualMachine();
  vm.load(dexByteCode);
  vm.run(absoluteMainClassName, new String[0]);

Building

Repository is setup using SBT and should build and test with SBT

Testing

lib\dx.jar is included for testing the vm and is not required for the use of this DVM