Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Are there any log files you can look into, or any good ways of finding out if an app is causing the phone to hang (if even possible)? My friend has an Xperia Arc and after a while with a custom ROM he's having issues with his phone hanging completely, requiring him to do a "battery reboot" to use it again.

I know that it's probably good to try another ROM and kernel to see if it's specific to that or not, but I'm just wondering if there are any good, general pointers on what to look up first.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Problem with most log files is: They do not survive a boot, as they are stored on tmpfs (a temporary file system in RAM). So once you have to boot, they are gone. Leaving your best chances to some app capturing the log and saving the capture to SDCard. As far as I know, aLogCat is capable of that. An alternative is to send the log to another machine (such as a PC) via WiFi, which can be done using Logcat UDP. The so-captured log might not directly mention the cause (as the freeze probably keeps the final bytes from being sent/written), but at least it should yield some useful information of what was going on at the time of the freeze.

Some other sources you might want to check:

share|improve this answer
add comment

There's the logcat which is almost always the first thing you should look at when you're experiencing any issues. Then you need to distinguish between the app locking up, which will may cause an "Application Not Responding" dialog at worst, and framework lock up, which usually will cause a hard reboot at worst. In the case of framework lock up, logcat may not necessarily be able to reliably capture all log information but usually you may still be able to catch the cause of the lock up by looking at what is happening a few minutes prior to the lock up.

For small janks, there are debugging tools that can help, but they require you to install the large-ish SDK, and most only work when the applications are set to allow debugging.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.