Unable to use Market because of my own mistake Yesterday I rooted my Phone(Samsung Galaxy Ace), because I wanted to remove stock application Talk and Gmail. But I did something stupid, I went to /system/app and issued the following commands

rm *Google*
rm *Mail*
rm *Gmail*
rm *mail*


Now I am unable to use the market application, it opens and  then just closes itself. I have tried factory reset and it didn't help either. I am stuck because of this blunder. Please help.
Thanks
Since you haven't mentioned, I assume you don't have nandroid backup.


  A NANROID backup is basically a backup of your Android operating system from the phone’s NAND memory, saved to the storage card.


If you had that, you could have just restored the backup.

Now the alternative is, if you know the programs that were deleted by the performed command you could try getting the apk files and adding them in /system/app and rebooting the phone.

I thing the best and easy way now would be to get the stock ROM for your phone and flash it.