10

I'm trying to develop an Android application but when I try to connect to logcat I get the following error:

Unable to open log device '/dev/log/main': No such file or directory

I already installed a new SDK, rebooted my phone... nothing seems to solve the problem. Anyone has any solution?

Samsung Galaxy S (Darky's v9.1)

Apple OSX

ADB 1.0.26

7
  • By connecting to logcat you mean issuing a add logcat command? Feb 1, 2011 at 21:12
  • What does the output of adb shell ls -l /dev/log look like? Feb 1, 2011 at 21:20
  • /dev/log: No such file or directory... I tried creating the files using the terminal, but after reboot they were gone...
    – ferdyh
    Feb 1, 2011 at 21:23
  • Those are special system files which can't just be created. Very weird tho. So the entire log directory is missing? Feb 1, 2011 at 21:39
  • Indeed... I read something about it has to be enabled in the kernel, however i talked to Darky and he said its no kernel problem... (His words, not mine...)
    – ferdyh
    Feb 1, 2011 at 21:40

3 Answers 3

10

I had used the Speedmod kernel; This has default Logging disabled. Re-enabled it in the TWEAKS menu.

Thanks for making me realise this Octavian Damiean

1
  • Btw, to access Speedmod kernel tweaks you have to restart in recovery mode.
    – arielsan
    Mar 22, 2011 at 19:22
7

I found the following method on XDA:

adb shell
su
mount -o remount,rw /system
echo ANDROIDLOGGER >> /system/etc/tweaks.conf
mount -o remount,ro /system

and reboot.

0
2

For a rooted Galaxy Note 7000, run insmod /lib/modules/logger.ko in the shell (this is missing from the rootfs' init.rc), assuming you can boot up sufficiently far to access adb / some terminal like terminal-ide. The module mounts in /dev/log and provides the missing files.

2
  • This did it! But you have to type "insmod /system/lib/modules/logger.ko"!
    – c0dehunter
    Aug 14, 2012 at 8:28
  • i have the same issu, i don't undestand how to fix that? i type type "insmod /system/lib/modules/logger.ko" where? Mar 8, 2013 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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