Re: [AIDE] root required for LogCat?

585 views
Skip to first unread message

Android IDE

unread,
Dec 13, 2012, 4:10:51 AM12/13/12
to andro...@googlegroups.com
Root is required for apps to access the LogCat logs since Jelly Bean.
See e.g. this discussion on G+:

https://plus.google.com/u/1/111531118192938544384/posts/2w7FDtgkrAq

On Thu, Dec 13, 2012 at 4:53 AM, Vlad Terranul <vlad....@gmail.com> wrote:
> Hello,
>
> I have a Nexus 7 tablet, Android 4.2.1. and AIDE 1.0.4
> It seems AIDE provides almost all I need to build Android application and I thank the developers who realized it. It is a great application. Actually AIDE push me to learn Android programming even if I am a beginner in Java.
>
> However the only way to debug I found is to use "System.out.println" which is supposed to write to the logs. But when I try to access "Show LogCat", I got the message:
> <root is required to see the logs>
>
> Do I have to root via "Nexus Root Toolkit"?
>
> I tried also aLogcat app, but it does not show me any message I printed. Actually it shows only events, main and radio files.
> With Terminal Emulator I can go to /dev/logs and list the files:
>
> u0_a99@android:/dev/log $ ls -al
> crw-rw-rw- root log 10, 36 2012-12-11 17:31 events
> crw-rw-rw- root log 10, 37 2012-12-11 17:31 main
> crw-rw-rw- root log 10, 35 2012-12-11 17:31 radio
> crw-rw-rw- root log 10, 34 2012-12-11 17:31 system
>
> but cat does not work here
>
> Please help me if there is a workaround for Nexus 7.
>
> Thank you
>
> --
> --
> AIDE - Android Java IDE mailing list
> andro...@googlegroups.com
> http://groups.google.com/group/android-ide?hl=en
>
>
>



--
AIDE Team
Twitter - @AndroidIDE
G+ - http://bit.ly/HVbYkO

Vlad Terranul

unread,
Dec 13, 2012, 6:48:23 AM12/13/12
to andro...@googlegroups.com, ide4a...@googlemail.com
Thank you for the link.
I understood. However, it is frustrating.

Vlad

RoadKillDave

unread,
Jan 1, 2013, 11:53:18 PM1/1/13
to AIDE - Android Java IDE
Just rooted my N7 today. Not I can look at the logs again. Can't say
it's not a bit painful though. Unlocking it wipes it. Used WugFresh's
tool. I back up about 90% of the apps and data but anything put in
custom folders in sdcard was not recovered. Luckly I had most of it
backed up to my server.

On Dec 13 2012, 6:48 am, Vlad Terranul <vlad.is...@gmail.com> wrote:
> Thank you for the link.
> I understood. However, it is frustrating.
>
> Vlad
>
>
>
>
>
>
>
> On Thursday, December 13, 2012 4:10:51 AM UTC-5, Android IDE wrote:
>
> > Root is required for apps to access the LogCat logs since Jelly Bean.
> > See e.g. this discussion on G+:
>
> >https://plus.google.com/u/1/111531118192938544384/posts/2w7FDtgkrAq
>
> > On Thu, Dec 13, 2012 at 4:53 AM, Vlad Terranul <vlad....@gmail.com<javascript:>>
> > > andro...@googlegroups.com <javascript:>

Disane

unread,
Jul 6, 2015, 12:49:10 PM7/6/15
to andro...@googlegroups.com, ide4a...@googlemail.com
You can practically get around this if you write the log data to the SDCard or into a neutral location where the file is readable by anyone.
This has to be done in your App, similarly how you print out debug messages.

I would really like to see the devs of AIDE solving this. I'm not sure if this is possible, but I'll experiment with it (when I have the time):
Try and create a logging library that can be added to to your project in AIDE (when you start up a new project).
Tell the "Show Logcat" callback to redirect to the logdata stored inside this file when creating a project.
Now for this Show Logcat's behavior has to be modified, I really hope someone is listening to this from the AIDE dev team.

Otherwise DroidEdit can also be usedto read the logcat file, but It's inconvenient in my case,
since I can't snap AIDE to multiple windows on my Samsung Galaxy Note 12.2 SM-P900.
Reply all
Reply to author
Forward
0 new messages