Not all data shown when Android logcat is read programatically

I have bad news for you: as of JB, READ_LOGS don’t just work as it did anymore:

https://groups.google.com/forum/?fromgroups#!topic/android-developers/6U4A5irWang

(scroll to the post of Dianne Hackborn, an Android Develper) and this video:

Google I/O 2012 – Ten Things Game Developers Should Know

(22:47) for official sources.

However his has not been yet documented (the READ_LOGS permission doesn’t report this) and is yet a source of confusion. You can only access your own logs now, and the good news is, you don’t need to request permissions for it anymore (if your are targetting Jelly Beans, that’s it…).

I guess it’s a compromise the Android Dev team took to prevent malicious app from spying on the user, perhaps getting sensitive information (I wouldn’t bet every app developer cleans it’s own Log.d statements before release).

Hope this helps

Leave a Comment