Compile & running smali file in Android emulator
From *.smali to *.dex, then etc ..., run it in android emulator
$ java -jar smali.jar Example.smali
=> The output will be out.dex
$ mv out.dex classes.dex
$ zip Example.zip classes.dex
$ adb push Example.zip /sdcard/
$ adb shell dalvikvm -cp /sdcard/Example.zip Example
$ java -jar smali.jar Example.smali
=> The output will be out.dex
$ mv out.dex classes.dex
$ zip Example.zip classes.dex
$ adb push Example.zip /sdcard/
$ adb shell dalvikvm -cp /sdcard/Example.zip Example
Comments
Post a Comment