summaryrefslogtreecommitdiff
path: root/profcollectd/profcollectd.rc
blob: 312c70038837c4ba842ef6205329c414d32b622a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
service profcollectd /system/bin/profcollectd
    class late_start
    disabled
    oneshot
    user root
    group root shell wakelock
    task_profiles ServiceCapacityLow

on post-fs-data
    # Create directory for profcollectd.
    mkdir /data/misc/profcollectd 0770 shell shell
    mkdir /data/misc/profcollectd/trace 0770 shell shell
    mkdir /data/misc/profcollectd/output 0770 shell shell
    mkdir /data/misc/profcollectd/report 0770 shell shell

on boot && property:persist.device_config.profcollect_native_boot.enabled=true
    start profcollectd

on boot && property:persist.device_config.profcollect_native_boot.enabled=
    exec_background - root shell -- /system/bin/profcollectctl reset