On Thu, Jul 12, 2012 at 10:24 AM, Mark Murphy <mmur...@commonsware.com>wrote:
> On Thu, Jul 12, 2012 at 12:59 PM, Dianne Hackborn <hack...@android.com> > wrote: > > however every app can read the logs containing only the lines > > *they* have written, without needing any permission. > OK, I'll bite: how do you do this? Most of the read-the-logs code that > I have seen uses logcat via Runtime#exec(), and I don't see a > command-line switch on logcat to limit output to just your own > process' lines. > There is no command line switch. The kernel drive does this based on whether you have the permission to access the full logs. If not, it only gives you the logs associated with your uid. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en