1{
2    "jobs" : [{
3            "name" : "pre-init",
4            "cmds" : [
5                "mkdir /storage/data/log",
6                "chmod 0755 /storage/data/log",
7                "chown 4 4 /storage/data/log",
8                "mkdir /storage/data/softbus",
9                "chmod 0700 /storage/data/softbus",
10                "chown 7 7 /storage/data/softbus",
11                "mkdir /storage/deviceauth",
12                "chmod 0700 /storage/deviceauth",
13                "chown 19 7 /storage/deviceauth",
14                "mkdir /storage/deviceauth/account",
15                "chmod 0700 /storage/deviceauth/account",
16                "chown 19 7 /storage/deviceauth/account",
17                "mkdir /storage/data/device_attest",
18                "chmod 0755 /storage/data/device_attest",
19                "chown 20 20 /storage/data/device_attest",
20                "mkdir /sdcard",
21                "chmod 0777 /sdcard",
22                "chmod 0666 /dev/lite_ipc",
23
24                "mkdir /storage/maindata",
25                "chmod 0700 /storage/maindata",
26                "chown 12 12 /storage/maindata",
27                "mkdir /storage/maindata/hks_client",
28                "chmod 0700 /storage/maindata/hks_client",
29                "chown 12 12 /storage/maindata/hks_client",
30                "mkdir /storage/maindata/hks_client/info",
31                "chmod 0700 /storage/maindata/hks_client/info",
32                "chown 12 12 /storage/maindata/hks_client/info",
33                "mkdir /storage/maindata/hks_client/key",
34                "chmod 0700 /storage/maindata/hks_client/key",
35                "chown 12 12 /storage/maindata/hks_client/key",
36
37                "mkdir /storage/data/service 0771 12 12",
38                "mkdir /storage/data/service/el1 0771 12 12",
39                "mkdir /storage/data/service/el1/public 0771 12 12",
40                "mkdir /storage/data/service/el1/public/huks_service 0711 12 12",
41                "mkdir /storage/data/service/el1/public/huks_service/maindata 0711 12 12",
42                "mkdir /storage/data/service/el1/public/huks_service/bakdata 0711 12 12",
43                "exec /bin/hks_compatibility_bin",
44
45                "mount vfat /dev/mmcblk0 /sdcard rw,umask=000",
46                "mount vfat /dev/mmcblk1 /sdcard rw,umask=000",
47                "export LD_LIBRARY_PATH /storage/app/libs",
48
49                "start foundation",
50                "start bundle_daemon",
51                "start appspawn",
52                "start media_server",
53                "start wms_server",
54                "start shell"
55            ]
56       }, {
57            "name" : "init",
58            "cmds" : [
59                "start apphilogcat",
60                "start hiview",
61                "start deviceauth_service",
62                "start sensor_service",
63                "start ai_server",
64                "start softbus_server",
65                "start devattest_service",
66                "start dslm_server",
67                "start huks_server"
68            ]
69       }, {
70            "name" : "post-init",
71            "cmds" : [
72                "chown 0 99 /dev/hdf",
73                "chown 0 99 /dev/hdf/dev_mgr",
74                "chown 0 99 /dev/hdf/hdfwifi",
75                "chown 0 99 /dev/hdf/hdf_sensor_manager_ap",
76                "chown 0 99 /dev/gpio",
77                "chown 0 99 /dev/i2c-0",
78                "chown 0 99 /dev/i2c-1",
79                "chown 0 99 /dev/i2c-2",
80                "chown 0 99 /dev/i2c-3",
81                "chown 0 99 /dev/i2c-4",
82                "chown 0 99 /dev/i2c-5",
83                "chown 0 99 /dev/i2c-6",
84                "chown 0 99 /dev/i2c-7",
85                "chown 0 99 /dev/uartdev-0",
86                "chown 0 99 /dev/uartdev-1",
87                "chown 0 99 /dev/uartdev-2",
88                "chown 0 99 /dev/uartdev-3",
89                "chown 0 99 /dev/spidev0.0",
90                "chown 0 99 /dev/spidev1.0",
91                "chown 0 99 /dev/spidev2.0",
92                "chown 0 99 /dev/spidev2.1"
93         ]
94        }
95    ],
96    "services" : [{
97            "name" : "foundation",
98            "path" : ["/bin/foundation"],
99            "uid" : 7,
100            "gid" : 7,
101            "once" : 0,
102            "importance" : 1,
103            "caps" : [10, 11, 12, 13]
104        }, {
105            "name" : "shell",
106            "path" : ["/bin/shell"],
107            "uid" : 2,
108            "gid" : 2,
109            "once" : 0,
110            "importance" : 0,
111            "caps" : [4294967295]
112        }, {
113            "name" : "appspawn",
114            "path" : ["/bin/appspawn"],
115            "uid" : 1,
116            "gid" : 1,
117            "once" : 0,
118            "importance" : 0,
119            "caps" : [2, 6, 7, 8, 11, 23]
120        }, {
121            "name" : "apphilogcat",
122            "path" : ["/bin/apphilogcat", "-L", "auto"],
123            "uid" : 4,
124            "gid" : 4,
125            "once" : 1,
126            "importance" : 0,
127            "caps" : []
128        }, {
129            "name" : "media_server",
130            "path" : ["/bin/media_server"],
131            "uid" : 0,
132            "gid" : 0,
133            "once" : 1,
134            "importance" : 0,
135            "caps" : []
136        }, {
137            "name" : "wms_server",
138            "path" : ["/bin/wms_server"],
139            "uid" : 10,
140            "gid" : 10,
141            "once" : 1,
142            "importance" : 0,
143            "caps" : [1,23]
144        }, {
145            "name" : "bundle_daemon",
146            "path" : ["/bin/bundle_daemon"],
147            "uid" : 8,
148            "gid" : 8,
149            "once" : 0,
150            "importance" : 0,
151            "caps" : [0, 1]
152        }, {
153            "name" : "hiview",
154            "path" : ["/bin/hiview"],
155            "uid" : 4,
156            "gid" : 4,
157            "once" : 1,
158            "importance" : 0,
159            "caps" : []
160        }, {
161            "name" : "huks_server",
162            "path" : ["/bin/huks_server"],
163            "uid" : 12,
164            "gid" : 12,
165            "once" : 0,
166            "importance" : 0,
167            "caps" : [1, 23]
168        }, {
169	    "name" : "sensor_service",
170            "path" : ["/bin/sensor_service"],
171            "uid" : 6,
172            "gid" : 99,
173            "once" : 0,
174            "importance" : 0,
175            "caps" : []
176	    }, {
177            "name" : "ai_server",
178            "path" : ["/bin/ai_server"],
179            "uid" : 2,
180            "gid" : 2,
181            "once" : 0,
182            "importance" : 0,
183            "caps" : []
184        }, {
185            "name" : "softbus_server",
186            "path" : ["/bin/softbus_server"],
187            "uid" : 0,
188            "gid" : 0,
189            "once" : 0,
190            "importance" : 0,
191            "caps" : []
192        }, {
193            "name" : "deviceauth_service",
194            "path" : ["/bin/deviceauth_service"],
195            "uid" : 19,
196            "gid" : 7,
197            "once" : 0,
198            "importance" : 0,
199            "caps" : [23]
200        }, {
201            "name" : "devattest_service",
202            "path" : ["/bin/devattest_service"],
203            "uid" : 20,
204            "gid" : 20,
205            "once" : 1,
206            "importance" : 0,
207            "caps" : [1,23]
208        }, {
209            "name" : "dslm_server",
210            "path" : ["/bin/dslm_server"],
211            "uid" : 3046,
212            "gid" : 3046,
213            "once" : 0,
214            "importance" : 0,
215            "caps" : [23]
216        }
217    ]
218}
219