1# Copyright (C) 2022 The Android Open Source Project
2
3# Fire once at boot time to collect early reports, if there are any.
4on property:sys.boot_completed=1
5    setprop dmesgd.start 1
6
7on 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
11# Start every time someone sets dmesgd.start=1.
12on property:ro.product.cpu.abilist64=* && property:bootreceiver.enable=1 && property:dmesgd.start=1
13    start dmesgd
14    setprop dmesgd.start 0
15
16service dmesgd /system/bin/dmesgd
17    user dmesgd
18    group system
19    class main
20    disabled
21    oneshot
22