Files
android_development/apps/DumpViewer
Bob Badour 40a7447daa [LSC] Add LOCAL_LICENSE_KINDS to development
Added SPDX-license-identifier-Apache-2.0 to:
  apps/Development/Android.mk
  apps/DumpViewer/app/src/main/Android.mk
  apps/OBJViewer/Android.bp
  samples/ApiDemos/Android.mk
  samples/ApiDemos/tests/Android.mk
  samples/HeavyWeight/Android.bp
  samples/IntentPlayground/Android.mk
  samples/MultiClientInputMethod/Android.mk
  samples/MultiDisplay/Android.mk
  samples/MySampleRss/Android.bp
  samples/RenderScript/HelloCompute/Android.mk
  samples/RenderScript/Levels/Android.mk
  samples/ShortcutDemo/launcher/Android.mk
  samples/ShortcutDemo/publisher/Android.mk
  samples/ShortcutSample/Android.mk
  testrunner/tests/Android_java.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I535f73ffa885f723b9dca745f199ce3a3fd409ea
2021-04-20 14:03:26 -07:00
..
2018-06-25 15:18:09 -07:00
2018-06-22 03:22:22 +00:00

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.