Files
android_development/apps/DumpViewer/README.md
Makoto Onuki ba87ac2e3a DumpViewer first cut
An on-device dumpsys / logcat viewer.

It needs the following 3 permissions in order to access logcat / dumpsys.
    <uses-permission android:name="android.permission.READ_LOGS"/>
    <uses-permission android:name="android.permission.DUMP"/>
    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>

Use "adb install -r -g DumpViewer.apk" to give the permissions.

Alternatively, you can grant the permissions with "pm grant":
pm grant com.android.dumpviewer android.permission.PACKAGE_USAGE_STATS
pm grant com.android.dumpviewer android.permission.READ_LOGS
pm grant com.android.dumpviewer android.permission.DUMP

Bug: 110088132
Test: manual test

Change-Id: If5aed1e459e67989f6759a2f53c80a26c3eacccf
2018-06-22 03:22:22 +00:00

781 B

DumpViewer

DumpViewer is an on-device logcat / dumpsys viewer.

Build

m -j DumpViewer

Installation

DumpViewer requires some development permissions in order to read logcat and dumpsys. To install, pass the -g option to adb install to give the needed permissions:

adb install -r -g DumpViewer.apk

# More precisely:
adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/DumpViewer/DumpViewer.apk

Alternatively, you can grant the permissions with pm grant:

pm grant com.android.dumpviewer android.permission.PACKAGE_USAGE_STATS
pm grant com.android.dumpviewer android.permission.READ_LOGS
pm grant com.android.dumpviewer android.permission.DUMP

TODOs

  • Add UID / PID lookup
  • Add color on logcat (by severity)
  • Auto-shrink the header.