Is there some event/receiver or something for handling first execution after installation or directly after installation? Or Do I need it emulate with preferences?
See Get referrer after installing app from Android Market - you can put whatever you want in there. I believe this is how Plan B works - the app that can send back your phone's location after it's stolen, that you install from the website after it's been stolen.