Hello, I'm having some trouble building native apps from source and getting them to install.

Specifically what I'm trying to do is as follows:

I recently upgraded my Droid X to Gingerbread (rooted and deodexed). I can't stand the blur email app. I prefer the original Email.apk. What I did was download and compile Gingerbread from source. I had no problems doing this. After the build, I attempted to adb push the stock email app to my device. The push goes successfully, and I can see the Email.apk in the system/app folder, but it is not installing.

I figure this is due to some dependency not being satisfied.

1.) Does anyone know what the dependencies are for the stock Email.apk?

2.) Is there any way to find out dependencies for future reference?

3.) Custom rom makers obviously modify various apps for their roms, I have searched in many places for a decent guide on how to do this. Can anyone point me in the right direction please?

Thank you in advance!