OSDN Git Service

Add sensor HAL process into dump list
authorPeng Xu <pengxu@google.com>
Wed, 12 Jul 2017 04:12:11 +0000 (21:12 -0700)
committerPeng Xu <pengxu@google.com>
Thu, 21 Sep 2017 00:08:09 +0000 (17:08 -0700)
Test: use "adb shell am hang --allow-restart" to trigger an ANR,
      trace of /vendor/bin/hw/android.hardware.sensors@1.0-service
      shows up in /data/anr/traces.txt
Bug: 63096400
Change-Id: If2996eeb215c5339602babd84595107aa4402aed
Merged-In: If2996eeb215c5339602babd84595107aa4402aed

services/core/java/com/android/server/Watchdog.java

index 93e29c1..6a81d32 100644 (file)
@@ -91,8 +91,9 @@ public class Watchdog extends Thread {
         "android.hardware.bluetooth@1.0::IBluetoothHci",
         "android.hardware.camera.provider@2.4::ICameraProvider",
         "android.hardware.graphics.composer@2.1::IComposer",
-        "android.hardware.vr@1.0::IVr",
-        "android.hardware.media.omx@1.0::IOmx"
+        "android.hardware.media.omx@1.0::IOmx",
+        "android.hardware.sensors@1.0::ISensors",
+        "android.hardware.vr@1.0::IVr"
     );
 
     static Watchdog sWatchdog;