From b1c4c93a9ba0878e810b1f9fd65c419246f4f990 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Thu, 4 Jan 2018 12:05:43 -0800 Subject: [PATCH] Watchdog: add media.metrics The media.metrics dump will show with an ANR, so to observe this, one can force an ANR by stopping a key service e.g. adb shell 'kill -STOP $(pgrep audioserver)' and waiting a couple of minutes. Test: adb bugreport Bug: 71483452 Change-Id: Ie6fb2377eaecbb9e3c09f0e1b0a55c284fd4bc5f --- services/core/java/com/android/server/Watchdog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/Watchdog.java b/services/core/java/com/android/server/Watchdog.java index 8d46d1e272354..7ce0f43522033 100644 --- a/services/core/java/com/android/server/Watchdog.java +++ b/services/core/java/com/android/server/Watchdog.java @@ -87,6 +87,7 @@ public class Watchdog extends Thread { "/system/bin/sdcard", "/system/bin/surfaceflinger", "media.extractor", // system/bin/mediaextractor + "media.metrics", // system/bin/mediametrics "media.codec", // vendor/bin/hw/android.hardware.media.omx@1.0-service "com.android.bluetooth", // Bluetooth service };