1on 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 6service dumpstate /system/bin/dumpstate -s 7 class main 8 socket dumpstate stream 0660 shell log 9 disabled 10 oneshot 11 12# 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 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. 24service bugreportplus /system/bin/dumpstate -d -B -P -z \ 25 -o /data/user_de/0/com.android.shell/files/bugreports/bugreport 26 class main 27 disabled 28 oneshot 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 36service bugreportremote /system/bin/dumpstate -d -q -B -R -z \ 37 -o /data/user_de/0/com.android.shell/files/bugreports/remote/bugreport 38 class main 39 disabled 40 oneshot 41