Mark Salyzyn | 8c8130e | 2015-12-09 11:21:28 -0800 | [diff] [blame] | 1 | on 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 Cherry | 7415599 | 2015-08-14 13:01:23 -0700 | [diff] [blame] | 6 | service dumpstate /system/bin/dumpstate -s |
| 7 | class main |
| 8 | socket dumpstate stream 0660 shell log |
| 9 | disabled |
| 10 | oneshot |
Felipe Leme | 8d1d572 | 2015-12-14 12:46:00 -0800 | [diff] [blame] | 11 | |
Felipe Leme | 2628e9e | 2016-04-12 16:36:51 -0700 | [diff] [blame] | 12 | # dumpstatez generates a zipped bugreport but also uses a socket to print the file location once |
| 13 | # it is finished. |
| 14 | service 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 Leme | 8d1d572 | 2015-12-14 12:46:00 -0800 | [diff] [blame] | 21 | # 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 Leme | 6834ea7 | 2015-12-21 10:35:43 -0800 | [diff] [blame] | 24 | service bugreportplus /system/bin/dumpstate -d -B -P -z \ |
Jeff Sharkey | cc6281c | 2016-02-06 19:46:09 -0700 | [diff] [blame] | 25 | -o /data/user_de/0/com.android.shell/files/bugreports/bugreport |
Felipe Leme | 8d1d572 | 2015-12-14 12:46:00 -0800 | [diff] [blame] | 26 | class main |
| 27 | disabled |
| 28 | oneshot |
Michal Karpinski | b922d69 | 2015-12-15 17:26:14 +0000 | [diff] [blame] | 29 | |
| 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 |
| 36 | service bugreportremote /system/bin/dumpstate -d -q -B -R -z \ |
Jeff Sharkey | cc6281c | 2016-02-06 19:46:09 -0700 | [diff] [blame] | 37 | -o /data/user_de/0/com.android.shell/files/bugreports/remote/bugreport |
Michal Karpinski | b922d69 | 2015-12-15 17:26:14 +0000 | [diff] [blame] | 38 | class main |
| 39 | disabled |
| 40 | oneshot |
Wei Liu | efe3161 | 2016-07-08 16:42:01 -0700 | [diff] [blame] | 41 | |
| 42 | # bugreportwear is a wearable version of bugreport that displays progress and takes early |
| 43 | # screenshot. |
| 44 | service bugreportwear /system/bin/dumpstate -d -B -P -p -z \ |
| 45 | -o /data/user_de/0/com.android.shell/files/bugreports/bugreport |
| 46 | class main |
| 47 | disabled |
| 48 | oneshot |