When running a simple .dex hello world it takes about 3.8 seconds.
The default of -Xnoimage-dex2oat on pre Android 12 has changed to -Ximage-dex2oat.
So a lot of time is taken to precompile dex files and all jar dependencies to a binary ELF as though it is a full APK :-( only to be deleted since it is not required to be persisted via other dalvikvm option. This is all done prior to calling main.
This script needs to be updated to specify -Xnoimage-dex2oat as a default
When running a simple .dex hello world it takes about 3.8 seconds.
The default of -Xnoimage-dex2oat on pre Android 12 has changed to -Ximage-dex2oat.
So a lot of time is taken to precompile dex files and all jar dependencies to a binary ELF as though it is a full APK :-( only to be deleted since it is not required to be persisted via other dalvikvm option. This is all done prior to calling main.
This script needs to be updated to specify -Xnoimage-dex2oat as a default