How can I get information what happend with my Galaxy S4 I bought new Galaxy S4 before two months and from the beginning I have started to experience some serious software issues. Every evening before I go to the bed I connect my phone to charge and in the morning it is frozen (dead, no response) with red light indicator and no response of buttons.

To start the device I have to hold for a long time the power button and only then the device boot.

I have sent it to the service and after two weeks they return it with new software and the problem stopped. Yesterday I made a flash with some xda ROM with serious review and this morning the issue has return.
I know that is my fault and changing the ROM will broke the warranty, but after no one else is experiencing that problem with this ROM I have started to search for an explanation.

The question is how can I record the moment when the phone freeze and view the log after that... Is there some kind of a text file where it holds some information about the processes? The tricky is to view that file after the phone is down and I switched it on...

Thank you!
Sorry for my bad English.. :)
To begin with this, I don't think that this question doesn't belong here, because it's related to the Android system logs and that's something we can be helpfull with.

I found a Thread, where the people are discussing various methods to obtain these log information - see here:

There are several directories where logs (including those from crashes) might appear -- not all of them are standardized (i.e. some may be ROM-specific).

/data/anr: Some trace files seem to get here (Dalvik writes stack traces here on ANR, i.e. "Application Not Responding" aka "Force-Close"; see e.g. log excerpts here)

/data/dontpanic seems to be a standard location (AOSP), and contains some crash logs including traces (see e.g. viaForensics and StackOverflow)

/data/kernelpanics is another location -- not having had any "kernel panic" on my Android devices, I saw no content there yet.

the /data/panic/panic_daemon.config may point to other locations configured -- on my Droid 2 it mentions /sdcard/panic_data/

/data/tombstones may hold several tombstone_nn files (with nn being a serial, increased with every new file). As tombstones are placed for the dead, it is done here for "processes died by accident" (i.e. crashed) -- and it is what is referred to as "core dumps" on Linux/Unix systems. However, not all apps create tombstones; this must be explicitly enabled by the developer (see Debugging Android Core Dumps).

Since you already have root access to your phone, you can even examine the LogCat output through the adb.

Here are some other links that might be of use for you:


Link - The "Android System Info" Application's description
Link - The "Crash Log (Logcat)" Application (PlayStore link)
Link - *


In brief: Since it's a long artice, which describes how to debug, this can be found anywhere in Google (see also "debuggerd"). This is of course if those links ever get down.



My personal advice - revert to the original Android ROM, which was installed on the Samsung, then perform a revert to factory defaults, go where you bought the phone and ask them to see it once more if the problem persists.

Cheers