FORUMS
Remove All Ads from XDA

 View Poll Results: What are you using this guide for?

A starting point to learn
 
649 Vote(s)
72.35%
A quick refresher course
 
118 Vote(s)
13.15%
Troubleshooting
 
294 Vote(s)
32.78%
Referring users from development threads
 
53 Vote(s)
5.91%
Linking to my own guide(s)
 
13 Vote(s)
1.45%

[UNIVERSAL][LOGCAT]How to get & read a logcat/ Troubleshoot your own issues!

6,819 posts
Thanks Meter: 9,187
 
By Stryke_the_Orc, Retired Senior Moderator on 11th May 2013, 04:04 PM
Post Reply Email Thread
14th September 2019, 04:16 PM |#871  
Junior Member
Thanks Meter: 3
 
More
im new to this, can someone explain how to take kernel log after random reboot?
14th September 2019, 05:25 PM |#872  
ktmom's Avatar
Senior Member
Thanks Meter: 2,269
 
More
Quote:
Originally Posted by andreas123lb

im new to this, can someone explain how to take kernel log after random reboot?

It matters what version android we're talking about. Stack Overflow link discusses a couple of different ways.
14th September 2019, 05:30 PM |#873  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by ktmom

It matters what version android we're talking about. Stack Overflow link discusses a couple of different ways.

thanks ,according to your link soo the comand is cat/proc/last_kmsg, and to write the comand in terminal emulator sir?
14th September 2019, 06:34 PM |#874  
Recognized Contributor
Thanks Meter: 3,250
 
More
Quote:
Originally Posted by andreas123lb

thanks ,according to your link soo the comand is cat/proc/last_kmsg, and to write the comand in terminal emulator sir?

if you're running a newer version of Android/kernel that location has changed as mentioned further down the linked thread).
So if that file doesn't exist then use:
cat /sys/fs/pstore/console-ramoops-0

Note that the files won't exist unless you had a kernel panic causing an unexpected shutdown.

If you're rooted with Magisk the linked post contains a Magisk Module which will automatically retrieve the ramoops file and copy it to /sdcard
https://forum.xda-developers.com/pix...3/post79933175

If you're creating last_kmsg instead then you'll have to modify the service.sh script. Exact location is in the post.
14th September 2019, 06:35 PM |#875  
ktmom's Avatar
Senior Member
Thanks Meter: 2,269
 
More
Again, it depends on Android version. at least three different locations are discussed in that thread.
Post Reply Subscribe to Thread

Tags
how-to, logcat, troubleshooting

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes