My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 15: Error when start logging (not rooted -- solution: add root check)
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  pragma78@gmail.com
Closed:  May 2012


 
Reported by iulian.g...@gmail.com, May 23, 2012
Steps will reproduce the problem:
Press the start logging button


3 errors are displayed and logging does not start.
errors are:

1) Add rules error: No such file or directory
2) Check rules error: No such file or directory
3) Add rules error: No such file or directory

My phone is N7000 with Android 4.0.3.

(by the way, i had to change log path with addind /mnt before //sdcad to avoid error for creating the log) Steps will reproduce the problem:
Press the start logging button


3 errors are displayed and logging does not start.
errors are:

1) Add rules error: No such file or directory
2) Check rules error: No such file or directory
3) Add rules error: No such file or directory

My phone is N7000 with Android 4.0.3.

(by the way, i had to change log path with addind /mnt before /sdcad to avoid error for creating the log)




Screenshot_2012-05-23-11-09-56.png
149 KB   View   Download
May 23, 2012
Project Member #1 pragma78@gmail.com
Thank you for the report.  I would like to ask you to please attach logcat output of the app (with debug logcat turned on in the app settings).

I will have a fix for the /mnt/sdcard issue, but I need more information on what is causing the "No such file or directory" issue for you.
Status: Feedback
Owner: pragma78@gmail.com
May 24, 2012
#2 iulian.g...@gmail.com
Hello!

I attached the logs (logs when app starts, because it tries to start logs, and logs when i press the start logging button).
May 24, 2012
#3 iulian.g...@gmail.com
I added logs also using the browser. It seems it didn't add the email attachments to the previously comment (did you received the attachments by the email?)

NetworkLog-startApp.txt
10.3 KB   View   Download
NetworkLog-startLog.txt
10.2 KB   View   Download
May 24, 2012
#4 iulian.g...@gmail.com
(No comment was entered for this change.)
NetworkLog-debugStartLog.txt
68.1 KB   View   Download
May 24, 2012
Project Member #5 pragma78@gmail.com
Thank you for those logs (I didn't get any e-mail attachments).

It appears that either the app cannot execute the 'su' command or it cannot create/execute the script-file at the path /data/data/com.googlecode.networklog/files/networklog.sh.

I have a couple of questions:

Is your phone rooted?  If so, are you allowing NetworkLog through SuperUser.apk?

Does the /data/data/com.googlecode.networklog/files/ path exist?  If so, what are its permissions?  If not, what ROM are you using?  Cyanogenmod?  MIUI?  Other?

Thanks.
May 24, 2012
#6 iulian.g...@gmail.com
The app is installed in /data/app/com.googlecode.networklog-1.apk

My phone is no longer rooted, and if I browse /data/ i see no files nor directories.

I use the latest official release of ICS v. 4.0.3 for my Samsung Galaxy Note GT-N7000.
May 24, 2012
#7 iulian.g...@gmail.com
my system info is attached.
Screenshot_2012-05-25-09-49-22.png
205 KB   View   Download
Screenshot_2012-05-25-09-49-52.png
231 KB   View   Download
May 25, 2012
Project Member #8 pragma78@gmail.com
The Network Log app uses the Linux iptables infrastructure to log network connections.  Unfortunately, this requires root/superuser access.

Going forward, the app will now check for root/superuser access before attempting to invoke iptables -- and display an informative dialog if the device is not rooted.
Summary: Error when start logging (not rooted -- solution: add root check)
Status: Started
Labels: -Type-Defect -Priority-Medium Type-Other Priority-Critical Component-UI
May 25, 2012
Project Member #9 pragma78@gmail.com
Committed in https://code.google.com/p/iptableslog/source/detail?r=dfcda5cd890ecdc6715f2cc171e2618ba5816a8b

Now shows a single error dialog instead of multiple dialogs when root/superuser access missing.
Status: Done
May 25, 2012
Project Member #10 pragma78@gmail.com
 Issue 13  has been merged into this issue.
May 26, 2012
#12 iulian.g...@gmail.com
It is something strange regarding the /sdcard/. There are other app that uses /sdcard and i checked and indeed there is also a /sdcard directory (maybe a link to /mnt/sdcard ) ...
May 26, 2012
#13 iulian.g...@gmail.com
Now the app warns from the beginning that needs root acces. 

Sorry I missed this when I installed it first time. I didn't noticed it needs root. I tried this app because i was was looking foar an app that gives me a logfile for every connect and disconnect of the wifi, because when i installed ICS there are periods of time when wifi disconnects and then reconnects... Others experinced this too, and i wanted to see the pattern...

Thanks for help and best regards!

Powered by Google Project Hosting