FORUMS
Remove All Ads from XDA
Honor View 10
Win an Honor 7X!

Run Logcat at Phone Boot Time

78 posts
Thanks Meter: 36
 
By sqeet, Member on 12th October 2010, 10:34 PM
Post Reply Email Thread
Hello,

I'm trying to troubleshoot why some kernels result in bootloops on my phone and others work just fine. (For example, KingxKernel CFS #8 would work, but not #9-#11)

I read somewhere about running a logcat during boot, but I have no idea how to successfully do this.

Any Suggestions?
The Following 2 Users Say Thank You to sqeet For This Useful Post: [ View ] Gift sqeet Ad-Free
 
 
12th October 2010, 10:39 PM |#2  
sqeet's Avatar
OP Member
Thanks Meter: 36
 
More
Nevermind, I figured it out.

But, for general information:

run this command on your computer before booting your phone up, and it will wait for the device:

adb -d logcat

Also, make sure you can connect to adb with your phone in working order before trying to logcat during boot:

1. android sdk installed
2. proper usb driver installed
2. phone in usb debug mode

Sorry for the pointless post.
The Following 29 Users Say Thank You to sqeet For This Useful Post: [ View ] Gift sqeet Ad-Free
13th October 2010, 01:09 AM |#3  
v_lestat's Avatar
Senior Member
Thanks Meter: 13
 
More
Cool man thanks for the tips.
This is def. A needed logcat command.

Sent from my PC36100 using XDA App
13th October 2010, 01:17 AM |#4  
xHausx's Avatar
Inactive Recognized Developer
Flag Central Florida
Thanks Meter: 4,553
 
More
Try using ddbt, very useful for debugging in real time

Sent from my PC36100 using XDA App
13th October 2010, 04:51 AM |#5  
kf2m's Avatar
Senior Member
Flag Somewhere in New Jersey
Thanks Meter: 164
 
More
Quote:
Originally Posted by sqeet

Nevermind, I figured it out.

But, for general information:

run this command on your computer before booting your phone up, and it will wait for the device:

adb -d logcat

Also, make sure you can connect to adb with your phone in working order before trying to logcat during boot:

1. android sdk installed
2. proper usb driver installed
2. phone in usb debug mode

Sorry for the pointless post.

Just to expand...

adb -d logcat>mylogfile.txt

if you want to save your output to a file. Though you are not going to see anything on the screen until you breakout (control c). Just type...

type mylogfile.txt|more

to view the file (or you could use notepad).
The Following 10 Users Say Thank You to kf2m For This Useful Post: [ View ] Gift kf2m Ad-Free
13th October 2010, 10:21 AM |#6  
xHausx's Avatar
Inactive Recognized Developer
Flag Central Florida
Thanks Meter: 4,553
 
More
sorry meant ddms, not ddbt. It should be in the tools directory along with adb
15th September 2013, 09:22 AM |#7  
Junior Member
Thanks Meter: 3
 
More
Just to add that if you want to save the log file and see the output to the screen in real time you can

Code:
adb -d logcat &> log.txt
and then run
Code:
tail -f log.txt
provided that the command tail is available to your system.
The Following 3 Users Say Thank You to hytromo For This Useful Post: [ View ] Gift hytromo Ad-Free
12th April 2016, 03:38 PM |#8  
jhill110's Avatar
Senior Member
Flag Santa Barbara
Thanks Meter: 1,078
 
More
Great stuff
Post Reply Subscribe to Thread

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