blob: 1f56d210cc01aa85ffcf9ef2cb67721bec593bbf [file] [log] [blame]
Mark Salyzyn8c8130e2015-12-09 11:21:28 -08001on boot
2 # Allow bugreports access to eMMC 5.0 stats
3 chown root mount /sys/kernel/debug/mmc0/mmc0:0001/ext_csd
4 chmod 0440 /sys/kernel/debug/mmc0/mmc0:0001/ext_csd
5
Tom Cherry74155992015-08-14 13:01:23 -07006service dumpstate /system/bin/dumpstate -s
7 class main
8 socket dumpstate stream 0660 shell log
9 disabled
10 oneshot
Felipe Leme8d1d5722015-12-14 12:46:00 -080011
Felipe Leme2628e9e2016-04-12 16:36:51 -070012# dumpstatez generates a zipped bugreport but also uses a socket to print the file location once
13# it is finished.
14service dumpstatez /system/bin/dumpstate -S -d -z \
15 -o /data/user_de/0/com.android.shell/files/bugreports/bugreport
16 socket dumpstate stream 0660 shell log
17 class main
18 disabled
19 oneshot
20
Felipe Leme8d1d5722015-12-14 12:46:00 -080021# bugreportplus is an enhanced version of bugreport that provides a better
22# user interface (like displaying progress and allowing user to enter details).
23# It's typically triggered by the power button or developer settings.
Felipe Leme6834ea72015-12-21 10:35:43 -080024service bugreportplus /system/bin/dumpstate -d -B -P -z \
Jeff Sharkeycc6281c2016-02-06 19:46:09 -070025 -o /data/user_de/0/com.android.shell/files/bugreports/bugreport
Felipe Leme8d1d5722015-12-14 12:46:00 -080026 class main
27 disabled
28 oneshot
Michal Karpinskib922d692015-12-15 17:26:14 +000029
30# bugreportremote is an altered version of bugreport that is supposed to be
31# called not by human user of the device, but by DevicePolicyManagerService only when the
32# Device Owner explicitly requests it, and shared with the Device Policy Controller (DPC) app only
33# if the user consents
34# it will disable vibrations, screenshot taking and will not track progress or
35# allow user to enter any details
36service bugreportremote /system/bin/dumpstate -d -q -B -R -z \
Jeff Sharkeycc6281c2016-02-06 19:46:09 -070037 -o /data/user_de/0/com.android.shell/files/bugreports/remote/bugreport
Michal Karpinskib922d692015-12-15 17:26:14 +000038 class main
39 disabled
40 oneshot