Adding new bugreportremote service
Bug: 26152603
Change-Id: Ibe5c908f69b0f2cd704ab5c7f71a7ff13da021e3
diff --git a/cmds/dumpstate/dumpstate.rc b/cmds/dumpstate/dumpstate.rc
index e21fd7c..2e2359b 100644
--- a/cmds/dumpstate/dumpstate.rc
+++ b/cmds/dumpstate/dumpstate.rc
@@ -18,3 +18,15 @@
class main
disabled
oneshot
+
+# bugreportremote is an altered version of bugreport that is supposed to be
+# called not by human user of the device, but by DevicePolicyManagerService only when the
+# Device Owner explicitly requests it, and shared with the Device Policy Controller (DPC) app only
+# if the user consents
+# it will disable vibrations, screenshot taking and will not track progress or
+# allow user to enter any details
+service bugreportremote /system/bin/dumpstate -d -q -B -R -z \
+ -o /data/data/com.android.shell/files/bugreports/remote/bugreport
+ class main
+ disabled
+ oneshot