Tell me more ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

My device is already rooted, this is why I'm asking.

Do you need root to monitor the logcat stream on the phone? If I ran the logcat command from within a Terminal on the phone, would that work?

share|improve this question

7 Answers

These free apps in the Market claim to be able to display your logcat, and don't make any mention of root. Should only take you a few minutes to try them out:

share|improve this answer

You don't need to root your phone to run adb logcat with the Android SDK, but I did just test it in my Terminal Emulator and I did have to be root (used the su command -- my phone is already rooted) to run logcat in the terminal on my phone.

So yes: if you have root on your phone you can run logcat from a terminal on your phone.

share|improve this answer

No, you don't need root to get logcat information.

To do it, you probably want to download the Android SDK and run "adb logcat", using the adb tool that comes with the SDK. Alternatively, you could install the ADT Eclipse plugin and use its handy streaming Logcat viewer.

share|improve this answer
i want to do this from the phone, not from a remote machine with the SDK – Wulfbane Sep 14 '10 at 13:34

No, you don't need root to access logcat. My device (Samsung Galaxy Note, Gingerbread 2.3.6 with stock ROM) is not rooted (yet!) and I have used the following ways to access log on my device:

  • CatLog app
  • aLogcat app
  • Activated SSHDroid app, and connected to the device terminal using an SSH client
  • Using Android SDK and running adb logcat

However, the Terminal app doesn't allow you to run logcat, and gives you "permission denied". I'm not sure why.

share|improve this answer

It seems you cannot run logcat from Terminal Emulator without having root on your phone. In this case you have to su first. AFAIK, it comes from Android Permissions: Terminal Emulator simply doesn't have enough permissions to view device's log. So the system says Permission denied.

On the other hand, as others said, there are plenty of apps that allow you to view device's log just because they request the permission.

share|improve this answer

The application Android System Info has the ability to output log info to the screen which as far as I can tell is the same log info as logcat spits out.

share|improve this answer
Have you got a link to that app, I can't find it in the Market? – GAThrawn Mar 22 '11 at 16:59
@GAThrawn In case you're still interested: homepage and Google Play Store links. – Zuul Jul 29 '12 at 6:23

Logcat does not need root. Simples - its a de-facto standard across the board in respect to different Android versions and is part of Android irrespective if you're rooted or not, and is a standard means for diagnosing problems as in for example - you install an app, the app force close, you complain to developer of said app, chances are quite high the developer will ask "send over the logcat" regardless if you're rooted or not!

aLogCat is one way of gathering the information, with the option of logging to webpage layout or plain text, bear in mind, if you schedule it to log at a certain frequency such as every 15 minutes, the SDCard will fill up quite quickly.

Another aspect, usage of logcat will be dependent on the kernel in terms of how much it can store - in any kernel that is used by the ROM, the source for the logging from a kernel level, where it reserves the memory for the logcat service can be found in drivers/staging/android/logger.c using the appropriate defines for example:

DEFINE_LOGGER_DEVICE(log_main, LOGGER_LOG_MAIN, 64*1024) DEFINE_LOGGER_DEVICE(log_events, LOGGER_LOG_EVENTS, 256*1024) DEFINE_LOGGER_DEVICE(log_radio, LOGGER_LOG_RADIO, 64*1024) DEFINE_LOGGER_DEVICE(log_system, LOGGER_LOG_SYSTEM, 64*1024)

Again, mileage will vary, some developers of such ROMs will choose to minimize consumption to reduce memory overheads...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.