make it possible to run android dex file in original Java Virtual Machine.
- change every class before it will be loaded
- change every item of the class after it was loaded
- hook java method
- implement native method by yourself or unidbg...
- provide java method level debug ability (dex2jar transformed class file without debug info,so we can't step in)
- only test fully with jdk 1.8
-
open the project with IDEA
-
add vm option => -Xverify:none
-
patch jdk_path/...../libjvm.dylib,which make it possible to load class,the name begin with "java"
-
use the jre you modified
-
build test apk by test-app sub project
-
run main
auto implement reflection method by appdbg
- run code ,and the jar file will be generated in libs/tempLibs dir
- sync gradle file
- set breakpoint on method line
- run code with debug mode eg. test testJni(false) in Main class
it's hard for me to implement all Android runtime well,if you can help me to make this project better,Thanks for your contribution.