From 171b5d8be3f940793f910e1002aa944760fe187f Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Fri, 4 Dec 2015 14:51:38 -0800 Subject: [PATCH] Created service 'bugreportplus' This service is an enhanced version of bugreport that provides a better user interface (like displaying progress and allowing user to enter details). It will be typically triggered by the 'Take Bug Report' UI, which will now offer the option for the traditional or enhanced options (services 'bugreport' and 'bugreportplus' respectively). BUG: 26034608 Change-Id: I39ea92c3e329a801b51f60a558c73faaf890c068 --- rootdir/init.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index a160d32a9..40553944e 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -593,3 +593,13 @@ on property:ro.debuggable=1 service flash_recovery /system/bin/install-recovery.sh class main oneshot + +# bugreportplus is an enhanced version of bugreport that provides a better +# user interface (like displaying progress and allowing user to enter details). +# It's typically triggered by the power button or developer settings. +# TODO: remove the -p option when screenshot is taken by Shell +service bugreportplus /system/bin/dumpstate -d -p -B -P -z \ + -o /data/data/com.android.shell/files/bugreports/bugreport + class main + disabled + oneshot