Alexander Potapenko | 93b854f | 2022-02-07 19:22:52 +0100 | [diff] [blame] | 1 | # Copyright (C) 2022 The Android Open Source Project |
| 2 | |
Alexander Potapenko | 7836dac | 2022-11-18 09:35:26 +0000 | [diff] [blame] | 3 | # Fire once at boot time to collect early reports, if there are any. |
| 4 | on property:sys.boot_completed=1 |
| 5 | setprop dmesgd.start 1 |
| 6 | |
Alexander Potapenko | 93b854f | 2022-02-07 19:22:52 +0100 | [diff] [blame] | 7 | on property:ro.product.cpu.abilist64=* && property:bootreceiver.enable=1 |
| 8 | mkdir /data/misc/dmesgd 0700 dmesgd system |
| 9 | rm /data/misc/dmesgd/sent_reports.txt |
| 10 | |
Alexander Potapenko | 7836dac | 2022-11-18 09:35:26 +0000 | [diff] [blame] | 11 | # Start every time someone sets dmesgd.start=1. |
Alexander Potapenko | 93b854f | 2022-02-07 19:22:52 +0100 | [diff] [blame] | 12 | on property:ro.product.cpu.abilist64=* && property:bootreceiver.enable=1 && property:dmesgd.start=1 |
| 13 | start dmesgd |
| 14 | setprop dmesgd.start 0 |
| 15 | |
| 16 | service dmesgd /system/bin/dmesgd |
| 17 | user dmesgd |
| 18 | group system |
| 19 | class main |
| 20 | disabled |
| 21 | oneshot |