I am wishing to rebuild the Dalvik VM on my android device for my application analysis work. Specifically, I want when I run an apk file on my android device if it makes an HTTP connection to a certain address, it will automatically print the logcat.
Also, if that is possible then how do I change the Dalvik VM on an android device using the Dalvik VM that I rebuilt.
Thanks
Not really an answer, but a partial answer to some your question(s)...
First of all, your device most likely uses ART now, but if it is running DalvikVM, you will need to build an image (ROM or NAND) and then burn that to the device.
However, different devices come from different vendors, different vendors changed the Android SDK in different ways - as they felt like or needed to - and maybe even the Dalvik VM too - meaning you can't get their code. But you can get their images.
Modifying the Dalvik VM in that image is a severe reverse-engineering task however, so be ready to settle for running AOSP Android on your device (where you can actually change the Dalvik VM code if you need to, or the networking stack itself), if it even boots up or works properly on the said device (because vendors use different drivers and/or hacks for the hardware they're shipping)