Config file before apk

Before opening the apk file, I need the emulator to use the configuration file that sets the test profile in the apk. how do I do that?