Fix Catastrophic Crashes on Your Rooted Android
I have a HTC Droid Incredible running the custom ROM CyanogenMod 7.1.x. For the most part it runs great, but there are moments when it feels like the Armageddon of 2012 is happening to my phone. No matter what application I open it will frustratingly crash in mere moments. What I’ve noticed is the catalyst to this crash-o-thon starts with some sort of “google framework” crash. Makes sense, break the framework and everything else should be coming down with it. Once that happens I will start to feel the instability of my rooted device.
The simple solution, yet temporary, is to clear the cache. I’m guessing there is some executed code or data that got corrupted, which in turn causes the apps to crash. The two types of cache that I clear are:
- cache partition
- Dalvik cache – a decent explanation of what this cache is can be found in the reference section below.
I’m constantly making assumptions about things — it’s become quite a skill. And I will continue my assumptions by stating that this process is for rooted users. I’m going to assume that since your device is rooted, it’s most likely that you have a custom ROM, which also means you have ROM Manager installed. The recovery section of this post is based on ClockworkMod (it’s a part of ROM Manager).
- Hold down the power button of your device to get the “phone options” prompt.
- Click “Reboot”, then choose “Recovery”. Click “OK”.
- Your phone will reboot and you will soon be in the recovery screen.
- Choose the option “wipe cache partition”. If that option isn’t there then head to “mounts and storage” and choose “format /cache.”
- Next choose “advanced” (from the main screen) and then click “Wipe Dalvik Cache”.
- Once that’s finished you can reboot the device.
I’ve noticed that once I reboot the device it seems to get stuck at the point where its trying to load the custom ROM. I would give it about 5 minutes. If nothing changes, remove the battery and boot the device again. Whatever the device tried to initialize the first time should be there and the device will boot just fine.
I mentioned earlier that this is a temporary solution. I don’t know the cause of the framework crash; it may be a combination of things, but at least you have a way out now.
Let me know if this process works for you OR if you have a better process. At this point I’m just a tinkerer of Android so I might be talking crap about the whole cache and corruption. I’d love to know.