init: Add common bugreport service
Change-Id: Id0501b2ca556919d8d41102e6d36d8453beedff2
diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc
index d7b5753..fe4d03c 100644
--- a/prebuilt/common/etc/init.local.rc
+++ b/prebuilt/common/etc/init.local.rc
@@ -120,3 +120,10 @@
user root
oneshot
disabled
+
+# bugreport is triggered by holding down volume down, volume up and power
+service bugreport /system/bin/dumpstate -d -p -B \
+ -o /data/data/com.android.shell/files/bugreports/bugreport
+ oneshot
+ disabled
+ keycodes 114 115 116