I’m new to Android development and I bought a cheap Huawei Sonic (U8650 apparently) to test my first attempts to create an application on a real device.
However, if I try to use adb logcat or adb shell and then logcat on the device, I get :
The logging system /dev/log/main cannot be opened: Such a file or folder does not exist
I’ve already enabled usb debugging under Settings -> Developers.
I don’t know enough about Android to know if I can fix it.
I found two other questions with similar problems:
/dev/log/hand not found
??- ?? ?? : ?? : ?? : ?? : INFO/() : The logging system /dev/log/main cannot be opened: Such a file or folder does not exist
…but it turns out they both use a non-standard kernel with logging disabled. Mine’s a flip phone from the box.
This is a very cheap but very fast Android 2.3 phone, so let’s hope it wasn’t a complete waste of money.
Any help would be greatly appreciated.
How can I solve this problem?
Dial the number: *#*### The service menu
Go to the menu Project -> Background settings -> Log settings.
Open the log switch and turn it to the ON position.
Open Log level setting and set the desired log level.
Restart the phone.
Open : /system/etc/init.d/×× (not the same file on different ROMs, look for the correct file).
Find a line that reads: rm /dev/log/main
Change the line to : # rm /dev/log/main (comments outside the line, rm = delete, if you are interested).
Save and reload
I share my case and my decision:
My phone had a performance version (Slim Bean ROM to be precise) with the semaphore kernel (you can say it is a semaphore because the logo of the semaphore is displayed when the phone boots up). These ROMs have disabled logging by default, so I had to download the Semaphore Manager application (you can download it here). Then I had to activate the ‘Journalist’ option in the ‘Modules’ section, as shown in the figure.
Restart and the protocol should work now!
I finally found the answer to that question!
I was aimlessly checking to see if anything had been updated, and I came across a message on xda developers about a slightly different Huawei camera with the same problem.
James Gordon is a content manager for the website Feedbuzzard. He loves spending time in nature, and his favorite pastime is watching dogs play. He also enjoys watching sunsets, as the colors are always so soothing to him. James loves learning about new technology, and he is excited to be working on a website that covers this topic.