Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

aLogcat/CatLog/Lumberjack not working? Do this ...

OP short/y

24th July 2012, 06:22 PM   |  #1  
short/y's Avatar
OP Senior Member
Flag Silly-con Valley
Thanks Meter: 58
 
619 posts
Join Date:Joined: Mar 2006
More
I noticed my favorite logcat app wasn't working on my N7 so I went on a search and found a fix/workaround (details later):
Code:
pm grant <pkg> android.permission.READ_LOGS
So, to give the donate version of aLogcat (https://play.google.com/store/apps/d...alogcat.donate), you'd do this
Code:
pm grant org.jtb.alogcat.donate android.permission.READ_LOGS
This seems to persist across reboot. Not sure about app update/uninstall/reinstall but it works for me.

Note that "pm" is a standard part of Android (I'm rooted but running stock JB on my N7) so you can just run it from the shell (adb shell) or from the command line via your favorite terminal emulator app like Android Terminal Emulator (https://play.google.com/store/apps/d...al.androidterm).

If you're interested in the details, there's a long discussion over in the Android Developers Google Group -- https://groups.google.com/forum/?fro...rs/6U4A5irWang

Note: I'm rooted so it may require root to work.

MOD: I've posted this in the Q&A section cuz it's the answer to a question but if it belongs elsewhere (Development? General?) then please move it.
The Following User Says Thank You to short/y For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes