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

Octavian A. Damiean
  • 39,079
  • 19
  • 94
  • 100
ferdyh
  • 1,255
  • 2
  • 10
  • 27

3 Answers3

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

ferdyh
  • 1,255
  • 2
  • 10
  • 27
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.

Nurbldoff
  • 311
  • 3
  • 4
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.

jakobi
  • 21
  • 2