Normally we use Stock Roms (means the firmware released by the manufacturer).
They are ODEXed. That means, If we consider APK files, each of them (.APK s) has a .ODEX file. It contains a part of the coding of the app.
ODEX files are loaded before app boot process. So when we launch an apk...