I've recently rooted my phone in pursuit of freeing up the internal memory from system apps. I then tried uninstalling Gmail by deleting the file and then trying to reinstall it from the play store but the apk deletion seemed to put it in a strange state where it disappeared from the phone (after a while when the icon was first removed and replaced by the default android app icon and then once after resetting the phone, it didn't exist any more; but still the play store considers it as installed). I tried flashing my phone to the same firmware as I had earlier (XSG), and now I cant get Google play (only the outdated Google market, which doesn't allow any installs from the play store online).
My phone runs on Android 2.2 Froyo. Any idea what to do?