I recently made the mistake of rooting my Galaxy S4, accompanied by a few more customizations.
Problems that occur:
TouchWiz freezes. One way to unfreeze is to hold down the Home button to see recently opened apps and then go back, so that Touchwiz wakes up. The other way is to pull down the Notification bar and click Settings or anything else from there that'll send me to a different app so I can avoid it. If I don't do any of these within 5 seconds the freezing occurs, the device restarts.
The device also restarts when the CPU is suddenly expected to work hard. For instance, within the first minute of a call, or when the screen is locked/unlocked, a couple seconds after opening a music file. This happens 3-5 times a day, depending on usage. The restart is not always preceded by a freeze, but often there's a freeze before the restart.
Recent changes that may be causing such behaviour:
- Rooting using AutoRoot by Chainfire.
- Giving CPU Master root permissions after SuperSU is installed.
- Installing busybox.
- Patching modded Google Play Store (involves patching Core.jar package)
What I did so far:
- Uninstall CPU Master.
- Delete cache and data of Touchwiz
- Remove busybox
- Remove all custom patches from core.jar
- Install the original Google Play Store and update to latest version
I don't think Touchwiz is causing the crashes because somethimes the phone restarts while an app is in use.
Thanks in advance.
EDIT: I removed the original Samsung ROM altogether and switched to Cyanogenmod. Thus I may not be able to upvote/tick the replies from then on.