summaryrefslogtreecommitdiff
path: root/profcollectd/profcollectd.rc
blob: b92fccbab3a84ff3ca58a8d9a320dbb95ac81e8e (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 wakelock
    writepid /dev/cpuset/system-background/tasks

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