1{
2    "services" : [{
3            "name" : "hiprofiler_daemon",
4            "path" : ["/system/bin/native_daemon"],
5            "sandbox" : 0,
6            "caps" : ["CAP_KILL", "CAP_SYS_PTRACE"],
7            "once" : 1,
8            "uid" : "hiprofiler",
9            "gid" : ["shell", "readproc", "system"],
10            "socket" : [{
11                "name" : "hook_unix_socket",
12                "family" : "AF_UNIX",
13                "type" : "SOCK_STREAM",
14                "protocol" : "default",
15                "permissions" : "0666",
16                "uid" : "hiprofiler",
17                "gid" : "shell"
18            }],
19            "permission" : [
20                "ohos.permission.GET_BUNDLE_INFO"
21            ],
22            "secon" : "u:r:native_daemon:s0",
23            "start-mode" : "condition"
24        }, {
25            "name" : "hiprofiler_daemon_sa",
26            "path" : ["/system/bin/native_daemon", "sa"],
27            "permission" : [
28                "ohos.permission.ENABLE_PROFILER",
29                "ohos.permission.GET_BUNDLE_INFO"
30            ],
31            "sandbox" : 0,
32            "caps" : ["CAP_KILL", "CAP_SYS_PTRACE"],
33            "once" : 1,
34            "uid" : "hiprofiler",
35            "gid" : ["shell", "readproc", "system"],
36            "socket" : [{
37                "name" : "hook_unix_socket",
38                "family" : "AF_UNIX",
39                "type" : "SOCK_STREAM",
40                "protocol" : "default",
41                "permissions" : "0666",
42                "uid" : "hiprofiler",
43                "gid" : "shell"
44            }],
45            "secon" : "u:r:native_daemon:s0",
46            "start-mode" : "condition"
47        }
48    ]
49}
50