5

I am using a rooted galaxy s2 4.0.3 and I recently tried to write an android app. I tried to use logcat in eclipse and it printed the following reply:

unable to open log device 'dev/log/main' No such file or directory

I went through the answers on the forum; some wrote to change files in the init.d folder but I don't have such a folder. I don't use Huawei so special code won't help here. I even tried to install logcat applications on my device, but they didn't work either!

Please advise.

Metabble
  • 11,773
  • 1
  • 16
  • 29
liran
  • 51
  • 1
  • 3

2 Answers2

0

Dial this: *#*#2846579#*#*

Service menu will appear.

Go to "ProjectMenu" -> "Background Setting" -> "Log Setting"

Open "Log switch" and set it to ON.

Open "Log level setting" and set the log level you wish.

Reboot the phone.

Victor Ch.
  • 66
  • 6
0

It was enough to restart the Huawei device:

adb shell
reboot

I guess manual restart would worked as well.

ViliusK
  • 11,345
  • 4
  • 67
  • 71