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 user root 12 13# dumpstatez generates a zipped bugreport but also uses a socket to print the file location once 14# it is finished. 15service dumpstatez /system/bin/dumpstate -S 16 socket dumpstate stream 0660 shell log 17 class main 18 disabled 19 oneshot 20 user root 21 22# bugreportd starts dumpstate binder service and makes it wait for a listener to connect. 23service bugreportd /system/bin/dumpstate -w 24 class main 25 disabled 26 oneshot 27 user root 28