I know how to run classes.dex on DalvikVM via adb using command adb shell dalvikvm -cp /sdcard/App.zip HelloWorld
where App.zip
contains classes.dex
, or adb shell app_process -Djava.class.path=/sdcard/classes.dex /sdcard HelloWorld
.
So is it possible to execute classes.dex on Android Runtime (ART) like this, without any resource files and apk? I know ART use dex2oat to compile, is there any way to manually compile classes.dex into oat file, and execute the oat file later, by adb?