How to read logs if phone won't boot

Delphis

Well-known member
Mar 21, 2011
86
12
0
Hi,

I have been tinkering with a script that runs on boot and I'm frustrated that I cannot tell where the boot process is falling over. I cannot get the phone to boot, so I cannot read any log files. I saw an app that splats dmesg stuff while booting but even that isn't what I want. I'd like to be able to go through the log files but if the only way to get the phone to boot is a data restore, then obviously those logs are lost.

So, all those devs out there, how do you access the logs if your phone will not boot?

I'm a programmer of many years and am used to being able to access debugging information when I program, so I find the 'oh the boot animation just stopped' very annoying. :>

Thanks.
 
Last edited:
Seriously? Noone? I thought even if it was a dumb question I'd get someone telling me to read up on it somewhere...
 
Can you boot into recovery? If you can, you should be able to hook it up to your computer and use adb to access the logs, which I believe are in /dev/log/main or maybe /dev/log/system not sure which.

I haven't set up Eclipse with the Android SDK, but I believe you can get real time logging with it.
 
Can you boot into recovery? If you can, you should be able to hook it up to your computer and use adb to access the logs, which I believe are in /dev/log/main or maybe /dev/log/system not sure which.

I haven't set up Eclipse with the Android SDK, but I believe you can get real time logging with it.

Ah.. that'd be useful. Yea, I can boot to recovery. I never tried the adb stuff while in recovery. I thought the phone had to be booted to do that. So an 'adb shell' might work, huh? Okay, I'll try that. Thanks
 
I tried this and when I do 'adb logcat' I get:

/sbin/sh: exec: line 1: logcat: not found

I'm using the Xionia CWMA recovery v1.2518.6 ..

Any hints?
 
I'm not sure where the files that run logcat are, but I imagine you would need to mount that partition/folder/whatever in order to access it first.
 
In the recovery I'm using I mount the /system partition but I still get that error. Anyone else using the Xionia CWMA 1.2518.6 and have adb logcat working?
 

Forum statistics

Threads
954,022
Messages
6,960,275
Members
3,162,900
Latest member
Ace2377