Logcat not working - Motorola Droid RAZR

When I try to enable logcat i just get the message:
Unable to open log device '/dev/log/main': No such file or directory
Click to expand...
Click to collapse
After some searching i got that I must enable logcat but how to do that is different on all devices and kernels.
So how to enable logcat?

Related

CM6.01 reboots - how to do logcat?

My phone has been rebooting many times recently. I have read about people mentioning a logcat when connected via USB. I am keen to help shed light on reboots so want to know what I need to do after a reboot.
Do I simply hook up the phone to my PC via USB and run a command to dump some sort of error log file?
Darren
ADB is your friend
DarrenNewsgroup said:
Do I simply hook up the phone to my PC via USB and run a command to dump some sort of error log file?
Darren
Click to expand...
Click to collapse
Yes. You shall use ADB for viewing log from PC.
I use the ADB included with SuperOneClick 2.1.1
Download it from here: ftp://shortfuse.org/SuperOneClick/Packages/SuperOneClickv2.1.1-ShortFuse.zip
Inside the zip there is an ADB folder. First, if on windows, try just invoking adb.exe from a command prompt (cmd), it will spit out the parameters.
For log viewing, connect USB to phone and start "adb.exe logcat".
If you want to redirect the output to a file, you can use "adb logcat > output.log", for example.
Cheers,
timara

Can't start logcat!!!

I need logcat in adb to be able to get logfiles while testing android app on my P500!!! But when i enter in cmd:"adb.exe logcat > somefile.log"
it doesn't do anything and only creates somefile.log file that says:
Unable to open log device '/dev/log/main': No such file or directory
What is the problem? I am using PerfectPeso2.2!
i have confirmed that device is connected to PC when i type adb devices, i get serial number of my device so don't know whats the problem... got debbuging mode on, and in sdk manager downloaded all under the column "tools" and "extras"}
help please!!!
Echelonex said:
I need logcat in adb to be able to get logfiles while testing android app on my P500!!! But when i enter in cmd:"adb.exe logcat > somefile.log"
it doesn't do anything and only creates somefile.log file that says:
Unable to open log device '/dev/log/main': No such file or directory
What is the problem? I am using PerfectPeso2.2!
i have confirmed that device is connected to PC when i type adb devices, i get serial number of my device so don't know whats the problem... got debbuging mode on, and in sdk manager downloaded all under the column "tools" and "extras"}
help please!!!
Click to expand...
Click to collapse
In folder android-sdk / platform-tools / u can find ddms so run it..if u will see your connected device everything is OK and u will see after that logcat..if not your sdk instalation si corrupted or wrong..
mastershefis said:
In folder android-sdk / platform-tools / u can find ddms so run it..if u will see your connected device everything is OK and u will see after that logcat..if not your sdk instalation si corrupted or wrong..
Click to expand...
Click to collapse
thx tried that, but in that window in text column it still says that message...!?
"Unable to open log device '/dev/log/main': No such file or directory"
i read somewhere it it due to kernel logging disabled...:/ How to make enabled...?
You would need to either recompile the kernel to enable logging or install another kernel if the problem is that it isn't enabled in the kernel.
Sent from my LG-P500 using xda premium

[Q]Start logcat via init.d script?

Here's the sit: A very good developer is trying to blind port a JB ROM to his sister device which happens to be my device. There's some issues and he needs a logcat starting as early as possible. I tried to run logcat from terminal emulator but it didn't output a log to the directory I specified. In the logcat tutorial thread it says to end logcat by pressing control+c; obviously that's not possible on the phone itself. So, is it even possible for a shell script to start logcat, end it via terminal emulator and the log then created?
Sent from my LG-P999 using xda premium
Волк said:
Here's the sit: A very good developer is trying to blind port a JB ROM to his sister device which happens to be my device. There's some issues and he needs a logcat starting as early as possible. I tried to run logcat from terminal emulator but it didn't output a log to the directory I specified. In the logcat tutorial thread it says to end logcat by pressing control+c; obviously that's not possible on the phone itself. So, is it even possible for a shell script to start logcat, end it via terminal emulator and the log then created?
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
Download and install the android SDK
Then in terminal or cmd prompt type
Adb logcat
Sent from my HTC PH39100 using Tapatalk 2

[Q] Logcat

It will get logcat from a mobile which is not working bootanimation? Phone freeze in splash screen. I need advice.
Thanks
Do you have adb working on your PC? If so then you can do adb logcat - d > logcat.txt.
If not then you need to get it working on your PC. There are several tools in this forum that you can use that will help you with this or you can install the SDK and use it from there.
I would suggest that you do a google search on what things you should install to get yourself up and running.
blazingwolf said:
Do you have adb working on your PC? If so then you can do adb logcat - d > logcat.txt.
If not then you need to get it working on your PC. There are several tools in this forum that you can use that will help you with this or you can install the SDK and use it from there.
I would suggest that you do a google search on what things you should install to get yourself up and running.
Click to expand...
Click to collapse
All this I have installed. And I know how i get logcat from the terminal. I only asking if i can get logcat only from splashscreen. Will that work? :cyclops:
Mlopik said:
All this I have installed. And I know how i get logcat from the terminal. I only asking if i can get logcat only from splashscreen. Will that work? :cyclops:
Click to expand...
Click to collapse
It will if it has been setup in the rom correctly.
blazingwolf said:
It will if it has been setup in the rom correctly.
Click to expand...
Click to collapse
It should be. ADB drivers are functional. I got logcat before because I was trying to fix bootloop. I just modified only the bootclasspath in boot img. And I will try it again. If it works I'll let you know.
blazingwolf said:
It will if it has been setup in the rom correctly.
Click to expand...
Click to collapse
It does not work. Should I compile it again? Previously worked bootanimation, but once I rewrote the "init.rc" problem. Huawei phone freezes at boot logo (splash screen). If I compile it again, I do not know where to find the jelly bean source (on github) for htc desire z? HTC Desire Z has been the same chipset as my Huawei u8800 (Ideos X5). You do not know what should I do now? and in the terminal:
Code:
No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from package 'gdb' (main)
Command 'dab' from package 'bsdgames' (universe)
Command 'zdb' from package 'zfs-fuse' (universe)
Command 'kdb' from package 'elektra-bin' (universe)
Command 'tdb' from package 'tads2-dev' (multiverse)
Command 'pdb' from package 'python' (main)
Command 'jdb' from package 'openjdk-6-jdk' (main)
Command 'jdb' from package 'openjdk-7-jdk' (universe)
Command 'ab' from package 'apache2-utils' (main)
Command 'ad' from package 'netatalk' (universe)
adb: command not found
Mlopik said:
It does not work. Should I compile it again? Previously worked bootanimation, but once I rewrote the "init.rc" problem. Huawei phone freezes at boot logo (splash screen). If I compile it again, I do not know where to find the jelly bean source (on github) for htc desire z? HTC Desire Z has been the same chipset as my Huawei u8800 (Ideos X5). You do not know what should I do now? and in the terminal:
Click to expand...
Click to collapse
That's an issue on your pc not on the device. You probably don't have adb setup in your PATH so it can't be called from just anywhere. You either need to add it to your path or go to the folder that has adb in and run the commands from there.

[Q] logcat error?

Code:
c:\logcat>adb logcat > logcat.txt
- waiting for device -
error: protocol fault (no status)
- waiting for device -
c:\logcat>
what does that suppose to mean? i need logcat for my miui port and i get this message.
the logcat.txt is saved in logcat folder
butr the file is blank.
Do adb devices and see if it can actually see your phone.
Sent from my HTC6435LVW using xda app-developers app
no it doesnt not while booting. does how ever see phone in recovery fastboot and adb sideload strange
well nevermind i lost all adb functions im dead in the water.
wheres that adb.ro.sercure=0 maybe thats the issue

Categories

Resources