开发者

/dev/log/main not found

开发者 https://www.devze.com 2023-02-07 19:42 出处:网络
I\'m trying to 开发者_JAVA技巧develop an Android application but when I try to connect to logcat I get the following error:

I'm trying to 开发者_JAVA技巧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


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


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.


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

精彩评论

暂无评论...
验证码 换一张
取 消