mirror from https://android.googlesource.com/platform/tools/loganalysis.git