/dev/log/main not found

﹥>﹥吖頭↗ 提交于 2019-11-27 23:51:01

问题


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


回答1:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/4867971/dev-log-main-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!