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

2 Answers 2


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.

  • No, I dont have a nandroid backup :( , how can I flash my phone, please suggest me some easy-to-follow tutorial.
    – hsinxh
    Nov 3, 2011 at 11:26
  • This is a very common question, I'd suggest you read our wiki, android.stackexchange.com/questions/1184/…
    – roxan
    Nov 3, 2011 at 13:15
  • I have flashed my phone as per your suggestion and its working fine now, I just wanted to know how can I change the keyboard? is there any good app for that ?
    – hsinxh
    Nov 3, 2011 at 13:59
  • I use this Gingerbread keyboard, market.android.com/….
    – roxan
    Nov 3, 2011 at 16:43

Please note that the Market requires Talk to run, and you have to be signed into Talk for the market to work. This is your main issue. You will need to add them back via nandroid if you have it, otherwise you will have to reflash your rom.

You need to be really careful about which stock apps you remove as a lot of them are interdependent on one another. Check on XDA and Cyanogen sites for lists of which stock apps you can and can't remove.

  • In case you are wondering why Market depends on Talk it's because push to device functionality is implemented as chat messages in Talk, and the market uses push to do Web install. In short don't remove Talk.
    – Lie Ryan
    Nov 9, 2011 at 10:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .