title: How to read android log cat programmatically for other applications
body: <p>I have read that you can't read logs of other apps.Also that apps like App Lock constantly read logs to find which apps have started and then present their lock screen.So they must be reading logs completely.</p>
  
  <p>I want to read logs like this for all apps.
  I/ActivityManager(  585): Starting activity: Intent { action=android.intent.action...}</p>
  
  <p>Do we have to be root users to read logs.</p>