ok when you are making a ROM and it gets stuck in a boot loop people have said the best way to try and fix it is to use logcat. but how do i use it when its booting? i know how to use it when its booted
never mind i got it to work while booting but it moves to fast i cant read it or anything is there away to save it to a file or something?
adb logcat -f <filename>
http://developer.android.com/guide/developing/tools/logcat.html
Sent from my SPH-D710 using Tapatalk 2
Folks, i really don't know what to do to get a specific problem log file to be sent/showed to someone to fix my problem, any help or suggestions will be really appreciated here
If you just had a hard reboot, once booted up, from pc
Adb pull /proc/last_kmsg
This will get last kmsg file related to the last boot session to your pc.
If no hard reboots but freezes etc, then
Adb shell dmesg > /sdcard/dmesg.txt
To see what's been going on since the boot at kernel level. File gets created on sdcard. Use
Adb pull /sdcard/dmesg.txt
To get it to your pc.
To get a log of something, before trying it, start the logcat with
Adb logcat > logcat.txt
File will be created on the pc.
This is from my post 6843 in official cm10 thread. You can also use
Adb shell cat /proc/kmsg > /sdcard/kmsg.txt
To see kernel logs since last boot.
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
Edit: /proc was missing 3 lines above
eyosen said:
If you just had a hard reboot, once booted up, from pc
Adb pull /proc/last_kmsg
This will get last kmsg file related to the last boot session to your pc.
If no hard reboots but freezes etc, then
Adb shell dmesg > /sdcard/dmesg.txt
To see what's been going on since the boot at kernel level. File gets created on sdcard. Use
Adb pull /sdcard/dmesg.txt
To get it to your pc.
To get a log of something, before trying it, start the logcat with
Adb logcat > logcat.txt
File will be created on the pc.
This is from my post 6843 in official cm10 thread. You can also use
Adb shell cat /kmsg > /sdcard/kmsg.txt
To see kernel logs since last boot.
Sent from my ASUS Transformer Pad TF700T using Tapatalk 2
Click to expand...
Click to collapse
thanks eyosen you are the best
what if i already rebooted it several times due to weird signal loss? please check this http://forum.xda-developers.com/showthread.php?p=32791585#post32791585
does this means i've lost the latest log? if no, then how to extract the specific problem log from it such as the signal loss? or shall i send the whole log?
Hossam.Abdelsalam said:
thanks eyosen you are the best
what if i already rebooted it several times due to weird signal loss? please check this http://forum.xda-developers.com/showthread.php?p=32791585#post32791585
does this means i've lost the latest log? if no, then how to extract the specific problem log from it such as the signal loss? or shall i send the whole log?
Click to expand...
Click to collapse
use "adb logcat -b radio"
Press the thanks button if you want to thank me
You are welcome.
Just send the whole log. Best practice is to post it to pastebin and post the link in the forum.
After every reboot you will lose the previous last_ksmg.
Sent from a gadget on my balcony.
wcypierre said:
use "adb logcat -b radio"
Press the thanks button if you want to thank me
Click to expand...
Click to collapse
i already pressed it
but it seems this shows you the log at the run time, but what am trying to get is the log of my weird signal loss for incidents happened yesterday, is this even possible?
No that's not possible. You can start a logcat, repeat the steps that caused the problem, after the problem , post logcat and kmsg.
Sent from a gadget on my balcony.
Hossam.Abdelsalam said:
i already pressed it
but it seems this shows you the log at the run time, but what am trying to get is the log of my weird signal loss for incidents happened yesterday, is this even possible?
Click to expand...
Click to collapse
well, it should be able to trace back if the time duration is not that long, but you can just try and do what eyosen had suggested
I am having spontaneous reboots. It has happened 3 times this morning. I have tried this:
I have System Tuner, and went into logs in it, but I think I only see log info real time as it is being generated.
So, I went into System Tuner. Selected Terminal, and typed this: logcat > /sdcard/logcat.txt. I did NOT end up with a log. I did NOT end up with a log file. I did try it when I first went into terminal, and the next try, I clicked on SU, and tried it again. No luck.
Anyone have any suggestions?
[EDIT]
I downloaded Android Terminal Emulator and tried that. I get an error that permission is denied.
[EDIT 2]
Hooked phone to computer, and used ADB:
ADB logcat sdcard/sdcard.txt
A long log scrolled by. Nothing ended up on card.
Nobody can help out on this?
hi all
i was trying to port one of the xperia arc roms to our play
the rom booted but my device keeps restarting
can any one help me solve the problem?
i made 2 log cats
full.txt is made by adb logcat command and copy pasting every thing
error.txt is made by adb logcat *:E -v long > error.txt (im not sure what command i used but i was trying to filter to get erros only)
can any one help me to solve the problem?
Hello,
Background:
My phone reboots abruptly for no good reason. Twice I factory reset and concluded it is due to some app.
When I power off my phone, it goes down and in a moment, it boots into recovery. So technically I cannot shut down my phone.
To find a root cause, I thought of checking system logs; for which I installed few apps from g.store which did not work. Apps like catlog, alogcat etc. etc.
I came across few posts, which pointed me to try with logcat command with terminal emulator and with adb.
But when checked, it is not working with both.
Here is an output:
C:\Users\swapnils>adb devices
List of devices attached
0123456789ABCDEF device
C:\Users\swapnils>adb version
Android Debug Bridge version 1.0.32
C:\Users\swapnils>adb logcat
CANNOT LINK EXECUTABLE: cannot locate symbol "g_log_ts" referenced by "logcat"...
C:\Users\swapnils>adb shell
[email protected]:/ $ su
su
[email protected]:/ # logcat
logcat
CANNOT LINK EXECUTABLE: cannot locate symbol "g_log_ts" referenced by "logcat"...
Phone Details:
XOLO Q1010i - Android 4.4.2 - Kernel 3.4.67 - Rooted with Kingroot
Please please guide me in this! Thanks in advance!
Sir,
Please wait until mods will move this thread to the device specific forum for more relevant answers.
Stand by
Good luck