/dev/log/main not found

前端 未结 3 1214
别那么骄傲
别那么骄傲 2020-12-17 19:35

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

相关标签:
3条回答
  • 2020-12-17 20:08

    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 讨论(0)
  • 2020-12-17 20:12

    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

    0 讨论(0)
  • 2020-12-17 20:31

    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.

    0 讨论(0)
提交回复
热议问题