JakeWharton/pidcat — pull request #58 by bwt (2014-05-21 14:35:16+00:00)
Title: optionally add the events buffer as a workaround for Samsung devices

workarounf for issue #31

The idea is to look in the events buffer, where 'am_proc_start' lines can be found containing the PID.

The message regex is a bit tricky because the format seems to depend on the OS version.
Some examples :
```
# WIKO-CINK-SLIM 4.0.4
[18384,10083,com.rayonnance.idtekt,activity,com.rayonnance.idtekt/.MainActivity]
# some Galaxy tablet (GT-N8000) 4.1.2
[9773,10016,com.google.android.gms,service,com.google.android.gms/.icing.service.IndexService]

# 4.4.2 : there is an additional number

#Galaxy S, cynanogenmod 11, 4.4.2
[0,2011,10017,com.google.android.configupdater,broadcast,com.google.android.configupdater/.CertPin.CertPinUpdateRequestReceiver]
# Nexus 5, 4.4.2
[0,21185,10054,com.google.android.inputmethod.latin,broadcast,com.google.android.inputmethod.latin/com.android.inputmethod.dictionarypack.EventHandler]
# Galaxy Note 3 (SM-N9005), 4.4.2
[0,23752,10150,com.android.providers.calendar,content provider,com.android.providers.calendar/.CalendarProvider2]
```