xref: /aosp_15_r20/frameworks/native/cmds/dumpstate/dumpstate.rc (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1*38e8c45fSAndroid Build Coastguard Workeron boot
2*38e8c45fSAndroid Build Coastguard Worker    # Allow bugreports access to eMMC 5.0 stats
3*38e8c45fSAndroid Build Coastguard Worker    chown root mount /sys/kernel/debug/mmc0/mmc0:0001/ext_csd
4*38e8c45fSAndroid Build Coastguard Worker    chmod 0440 /sys/kernel/debug/mmc0/mmc0:0001/ext_csd
5*38e8c45fSAndroid Build Coastguard Worker
6*38e8c45fSAndroid Build Coastguard Workerservice dumpstate /system/bin/dumpstate -s
7*38e8c45fSAndroid Build Coastguard Worker    class main
8*38e8c45fSAndroid Build Coastguard Worker    socket dumpstate stream 0660 shell log
9*38e8c45fSAndroid Build Coastguard Worker    disabled
10*38e8c45fSAndroid Build Coastguard Worker    oneshot
11*38e8c45fSAndroid Build Coastguard Worker    user root
12*38e8c45fSAndroid Build Coastguard Worker
13*38e8c45fSAndroid Build Coastguard Worker# dumpstatez generates a zipped bugreport but also uses a socket to print the file location once
14*38e8c45fSAndroid Build Coastguard Worker# it is finished.
15*38e8c45fSAndroid Build Coastguard Workerservice dumpstatez /system/bin/dumpstate -S
16*38e8c45fSAndroid Build Coastguard Worker    socket dumpstate stream 0660 shell log
17*38e8c45fSAndroid Build Coastguard Worker    class main
18*38e8c45fSAndroid Build Coastguard Worker    disabled
19*38e8c45fSAndroid Build Coastguard Worker    oneshot
20*38e8c45fSAndroid Build Coastguard Worker    user root
21*38e8c45fSAndroid Build Coastguard Worker
22*38e8c45fSAndroid Build Coastguard Worker# bugreportd starts dumpstate binder service and makes it wait for a listener to connect.
23*38e8c45fSAndroid Build Coastguard Workerservice bugreportd /system/bin/dumpstate -w
24*38e8c45fSAndroid Build Coastguard Worker    class main
25*38e8c45fSAndroid Build Coastguard Worker    disabled
26*38e8c45fSAndroid Build Coastguard Worker    oneshot
27*38e8c45fSAndroid Build Coastguard Worker    user root
28