1{
2    "global": {
3        "sandbox-root": "/mnt/sandbox/<currentUserId>/app-root",
4        "sandbox-ns-flags": [ "pid" ]
5    },
6    "required": {
7        "system-const": {
8            "mount-paths": [{
9                "src-path" : "/config",
10                "sandbox-path" : "/config"
11            }, {
12                "src-path" : "/dev",
13                "sandbox-path" : "/dev"
14            }, {
15                "src-path" : "/proc",
16                "sandbox-path" : "/proc"
17            }, {
18                "src-path" : "/sys",
19                "sandbox-path" : "/sys"
20            }, {
21                "src-path" : "/sys_prod",
22                "sandbox-path" : "/sys_prod"
23            }, {
24                "src-path" : "/system/app",
25                "sandbox-path" : "/system/app"
26            }, {
27                "src-path" : "/system/fonts",
28                "sandbox-path" : "/system/fonts"
29            }, {
30                "src-path" : "/system/<lib>",
31                "sandbox-path" : "/system/<lib>"
32            }, {
33                "src-path" : "/system/<lib>/platformsdk",
34                "sandbox-path" : "/system/<lib>/platformsdk"
35            }, {
36                "src-path" : "/system/<lib>/ndk",
37                "sandbox-path" : "/system/<lib>/ndk"
38            }, {
39                "src-path" : "/system/<lib>/module",
40                "sandbox-path" : "/system/<lib>/module"
41            }, {
42                "src-path" : "/system/<lib>/chipset-pub-sdk",
43                "sandbox-path" : "/system/<lib>/chipset-pub-sdk"
44            }, {
45                "src-path" : "/system/<lib>/chipset-sdk",
46                "sandbox-path" : "/system/<lib>/chipset-sdk"
47            }, {
48                "src-path" : "/system/<lib>/seccomp",
49                "sandbox-path" : "/system/<lib>/seccomp"
50            }, {
51                "src-path" : "/system/<lib>/extensionability",
52                "sandbox-path" : "/system/<lib>/extensionability"
53            }, {
54                "src-path" : "/system/<lib>/media",
55                "sandbox-path" : "/system/<lib>/media"
56            }, {
57                "src-path" : "/system/data",
58                "sandbox-path" : "/system/data"
59            }, {
60                "src-path" : "/system/usr",
61                "sandbox-path" : "/system/usr"
62            }, {
63                "src-path" : "/system/profile",
64                "sandbox-path" : "/system/profile"
65            }, {
66                "src-path" : "/system/bin",
67                "sandbox-path" : "/system/bin"
68            }, {
69                "src-path" : "/system/etc",
70                "sandbox-path" : "/system/etc"
71            }, {
72                "src-path" : "/system/etc/hosts",
73                "sandbox-path" : "/data/service/el1/network/hosts_user/hosts"
74            }, {
75                "src-path" : "/system/resource",
76                "sandbox-path" : "/system/resource"
77            }, {
78                "src-path" : "/vendor/<lib>",
79                "sandbox-path" : "/vendor/<lib>"
80            }, {
81                "src-path" : "/vendor/etc/vulkan",
82                "sandbox-path" : "/vendor/etc/vulkan"
83            }, {
84                "src-path" : "/vendor/etc/hiai",
85                "sandbox-path" : "/vendor/etc/hiai"
86            }, {
87                "src-path" : "/data/local/shader_cache/cloud/common",
88                "sandbox-path" : "/data/storage/shader_cache/common"
89            }, {
90                "src-path" : "/data/service/el0/public/for-all-app",
91                "sandbox-path" : "/data/service/el0/public/for-all-app"
92            }, {
93                "src-path" : "/data/service/el1/public/for-all-app",
94                "sandbox-path" : "/data/service/el1/public/for-all-app"
95            }, {
96                "src-path": "/storage/media/<currentUserId>/local/files/Docs/Downloads/<PackageName>",
97                "sandbox-path": "/storage/Users/<currentUserId>/Downloads"
98            }, {
99                "src-path" : "/mnt/hmdfs/<currentUserId>/cloud/data/<PackageName>",
100                "sandbox-path" : "/data/storage/el2/cloud"
101            }, {
102                "src-path" : "/data/data/hiai",
103                "sandbox-path" : "/data/data/hiai"
104            }, {
105                "src-path" : "/chip_prod/lib64/passthrough",
106                "sandbox-path" : "/chip_prod/lib64/passthrough"
107            }],
108            "mount-files": [{
109                "src-path" : "/system/<lib>/ld-musl-arm.so.1",
110                "sandbox-path" : "/system/<lib>/ld-musl-arm.so.1"
111            }],
112            "symbol-links" : [{
113                "target-name" : "/system/bin",
114                "link-name" : "/bin",
115                "check-action-status": "false"
116            }, {
117                "target-name" : "/system/lib",
118                "link-name" : "/lib",
119                "check-action-status": "false"
120            }, {
121                "target-name" : "/system/etc",
122                "link-name" : "/etc",
123                "check-action-status": "false"
124            }, {
125                "target-name" : "/sys/kernel/debug",
126                "link-name" : "/d",
127                "check-action-status": "false"
128            }],
129            "mount-groups" : []
130        },
131        "app-variable": {
132            "mount-paths": [{
133                "src-path": "/data/app/el1/<currentUserId>/base/<variablePackageName>",
134                "sandbox-path": "/data/storage/el1/base"
135            }, {
136                "src-path": "/data/app/el1/<currentUserId>/database/<variablePackageName>",
137                "sandbox-path": "/data/storage/el1/database"
138            }, {
139                "src-path" : "/system/app/ohos.global.systemres",
140                "sandbox-path" : "/data/global/systemResources"
141            }, {
142                "src-path" : "/system/app/SystemResources",
143                "sandbox-path" : "/data/global/systemResources"
144            }, {
145                "src-path" : "/data/app/el1/bundle/public/<PackageName>",
146                "sandbox-path" : "/data/storage/el1/bundle",
147                "check-action-status": "true"
148            }, {
149                "src-path" : "/data/misc",
150                "sandbox-path" : "/data/storage/el1/bundle/misc"
151            }, {
152                "src-path" : "/data/local/ark-cache/<PackageName>",
153                "sandbox-path" : "/data/storage/ark-cache"
154            }, {
155                "src-path" : "/data/local/ark-profile/<currentUserId>/<PackageName>",
156                "sandbox-path" : "/data/storage/ark-profile"
157            }, {
158                "src-path" : "/data/local/shader_cache/local/<PackageName>",
159                "sandbox-path" : "/data/storage/shader_cache/local"
160            }, {
161                "src-path" : "/data/local/shader_cache/cloud/<PackageName>",
162                "sandbox-path" : "/data/storage/shader_cache/cloud"
163            }, {
164                "src-path" : "/mnt/share/<currentUserId>/<PackageName_index>",
165                "sandbox-path" : "/data/storage/el2/share"
166            }, {
167                "src-path" : "/data/service/el1/public/themes/<currentUserId>/a/app",
168                "sandbox-path" : "/data/themes/a/app"
169            }, {
170                "src-path" : "/data/service/el1/public/themes/<currentUserId>/b/app",
171                "sandbox-path" : "/data/themes/b/app"
172            }, {
173                "src-path" : "/data/service/el1/<currentUserId>/utdtypes/utd",
174                "sandbox-path" : "/data/utd"
175            }, {
176                "src-path" : "/data/service/el1/public/cert_manager_service/certificates/user_open",
177                "sandbox-path" : "/data/certificates/user_cacerts"
178            }, {
179                "src-path" : "/data/app/el1/bundle/public/<arkWebPackageName>",
180                "sandbox-path" : "/data/storage/el1/bundle/arkwebcore"
181            },{
182                "src-path" : "/mnt/hmdfs/<currentUserId>",
183                "sandbox-path" : "/mnt/hmdfs/<currentUserId>"
184            }],
185            "mount-groups": ["el2", "el3", "el4"]
186        }
187    },
188    "conditional": {
189        "permission": [{
190            "name": "ohos.permission.FILE_ACCESS_MANAGER",
191            "sandbox-switch": "ON",
192            "gids": ["file_manager", "user_data_rw"],
193            "mount-paths": [{
194                "src-path": "/storage/media/<currentUserId>/local/files/Docs",
195                "sandbox-path": "/storage/Users/<currentUserId>"
196            }, {
197                "src-path": "/storage/media/<currentUserId>/local/files/.Recent",
198                "sandbox-path": "/storage/Users/<currentUserId>/.Recent"
199            }],
200            "mount-groups": [ "user-public" ]
201        }, {
202            "name": "ohos.permission.READ_IMAGEVIDEO",
203            "sandbox-switch": "ON",
204            "gids": ["user_data_rw"],
205            "mount-paths": [{
206                "src-path": "/storage/cloud/<currentUserId>/files/.thumbs/Photo",
207                "sandbox-path": "/storage/Share/.thumbs/Photo"
208            }]
209        }, {
210            "name": "ohos.permission.FILE_CROSS_APP",
211            "gids": ["file_manager"],
212            "mount-paths": [{
213                "src-path": "/storage/media/<currentUserId>/local/files/Docs",
214                "sandbox-path": "/storage/Users/<currentUserId>"
215            }, {
216                "src-path": "/data/app/el1/<currentUserId>/base",
217                "sandbox-path": "/storage/Users/<currentUserId>/appdata/el1",
218                "category": "dac_override"
219            }, {
220                "src-path": "/data/app/el2/<currentUserId>/base",
221                "sandbox-path": "/storage/Users/<currentUserId>/appdata/el2",
222                "category": "dac_override"
223            }],
224            "mount-groups": [ "user-public" ]
225        }, {
226            "name": "ohos.permission.ACTIVATE_THEME_PACKAGE",
227            "mount-paths": [{
228                "src-path": "/data/service/el1/public/themes/<currentUserId>/a/system",
229                "sandbox-path": "/data/themes/a/system"
230            }, {
231                "src-path": "/data/service/el1/public/themes/<currentUserId>/b/system",
232                "sandbox-path": "/data/themes/b/system"
233            }, {
234                "src-path": "/data/service/el1/public/themes/<currentUserId>/fa",
235                "sandbox-path": "/data/themes/f"
236            },{
237                "src-path": "/data/service/el1/public/themes/<currentUserId>/share",
238                "sandbox-path": "/data/themes/s"
239            }]
240        }, {
241            "name": "ohos.permission.GET_WALLPAPER",
242            "mount-paths": [{
243                "src-path": "/data/service/el1/public/wallpaper/<currentUserId>",
244                "sandbox-path": "/data/wallpaper"
245            }]
246        }, {
247            "name": "ohos.permission.ACCESS_BUNDLE_DIR",
248            "gids": ["wifi"],
249            "mount-paths": [{
250                "src-path": "/data/app/el1/bundle/public",
251                "sandbox-path": "/data/bundles/"
252            }]
253        }, {
254            "name": "ohos.permission.ACCESS_PROTOCOL_DFX_DATA",
255            "mount-paths": [{
256                "src-path": "/data/log/protocol",
257                "sandbox-path": "/data/log/protocol"
258            }, {
259                "src-path": "/log/chr",
260                "sandbox-path": "/log/chr"
261            }]
262        }, {
263            "name": "ohos.permission.ACCESS_MEDIALIB_THUMB_DB",
264            "gids": [3008],
265            "mount-paths": [{
266                    "src-path": "/data/app/el2/<currentUserId>/database/com.ohos.medialibrary.medialibrarydata",
267                    "sandbox-path": "/data/medialibrary/database"
268                }
269            ]
270        }, {
271            "name": "ohos.permission.ACCESS_SHADER_CACHE_DIR",
272            "mount-paths": [{
273                "src-path": "/data/local/shader_cache",
274                "sandbox-path": "/data/storage/shader_caches"
275            }]
276        }, {
277            "name": "ohos.permission.ACCESS_HIVIEWX",
278            "mount-paths": [{
279                "src-path": "/data/log/UserView",
280                "sandbox-path": "/data/log/UserView"
281            }]
282        }, {
283            "name": "ohos.permission.PROTECT_SCREEN_LOCK_DATA",
284            "mount-paths": [{
285                "src-path": "/data/app/el5/<currentUserId>/base/<PackageName>",
286                "sandbox-path": "/data/storage/el5/base"
287            }, {
288                "src-path": "/data/app/el5/<currentUserId>/database/<PackageName>",
289                "sandbox-path": "/data/storage/el5/database"
290            }]
291        }, {
292            "name": "ohos.permission.ACCESS_FILE_CONTENT_SHARE",
293            "sandbox-switch": "ON",
294            "gids": ["file_manager", "user_data_rw"],
295            "mount-paths": [{
296              "src-path": "/data/service/el2/public/file_monitor_service/content_share",
297              "sandbox-path": "/storage/ContentShare"
298           }]
299        }, {
300            "name": "ohos.permission.ACCESS_LOCAL_BACKUP",
301            "gids": [1023],
302            "mount-paths": [{
303                "src-path": "/data/hwbackup",
304                "sandbox-path": "/data/hwbackup"
305            }]
306        }, {
307            "name": "ohos.permission.ACCESS_APP_INSTALL_DIR",
308            "sandbox-switch": "ON",
309            "gids": ["app_install"],
310            "mount-paths": [{
311                "src-path": "/data/service/el1/public/bms/bundle_manager_service/app_install/<currentUserId>/",
312                "sandbox-path": "/data/bms_app_install/"
313            }]
314        }],
315        "spawn-flag": [{
316            "name": "START_FLAGS_BACKUP",
317            "mount-paths": [{
318                "src-path": "/data/app/el2/<currentUserId>/base/<variablePackageName>/.backup",
319                "sandbox-path": "/data/storage/el2/backup"
320            }, {
321                "src-path": "/data/app/el1/<currentUserId>/base/<variablePackageName>/.backup",
322                "sandbox-path": "/data/storage/el1/backup"
323            }],
324            "mount-groups": []
325        }, {
326            "name": "DLP_MANAGER",
327            "mount-paths": [ {
328                "src-path": "/data/app/el1/<currentUserId>/base/<PackageName_index>",
329                "sandbox-path": "/data/storage/el1/base"
330            }, {
331                "src-path": "/data/app/el1/<currentUserId>/database/<PackageName_index>",
332                "sandbox-path": "/data/storage/el1/database"
333            }, {
334                "src-path": "/data/app/el2/<currentUserId>/base/<PackageName_index>",
335                "sandbox-path": "/data/storage/el2/base"
336            }, {
337                "src-path": "/data/app/el2/<currentUserId>/database/<PackageName_index>",
338                "sandbox-path": "/data/storage/el2/database"
339            }, {
340                "src-path": "/data/app/el2/<currentUserId>/log/<PackageName_index>",
341                "sandbox-path": "/data/storage/el2/log"
342            }, {
343                "src-path": "/mnt/share/<currentUserId>/<PackageName_index>",
344                "sandbox-path": "/data/storage/el2/share"
345            }],
346            "mount-groups": []
347        }, {
348            "name": "DEVELOPER_MODE",
349            "mount-paths": [{
350                "src-path": "/data/app/el1/bundle/<currentUserId>/hnppublic",
351                "sandbox-path": "/data/service/hnp"
352            }, {
353                "src-path" : "/data/app/el1/bundle/<currentUserId>/hnp/<PackageName>",
354                "sandbox-path" : "/data/app"
355            }
356        ]}],
357        "package-name": [{
358            "name": "com.ohos.medialibrary.medialibrarydata",
359            "mount-paths" : [{
360                "src-path" : "/storage/media/<currentUserId>",
361                "sandbox-path" : "/storage/media"
362            }, {
363                "src-path" : "/data/service/el2/<currentUserId>/hmdfs/cache/account_cache",
364                "sandbox-path" : "/data/service/el2/<currentUserId>/hmdfs/cache/account_cache"
365            }, {
366                "src-path" : "/storage/cloud/<currentUserId>",
367                "sandbox-path" : "/storage/cloud"
368            }, {
369                "src-path" : "none",
370                "sandbox-path" : "/storage/cloud/epfs",
371                "category": "epfs"
372            }, {
373                "src-path" : "/mnt/data/<currentUserId>",
374                "sandbox-path" : "/mnt/data/<currentUserId>"
375            }]
376        }, {
377            "name" : "com.ohos.amsdialog",
378            "sandbox-switch": "ON",
379            "mount-paths" : [{
380                "src-path" : "/data/app/el1/bundle/public/",
381                "sandbox-path" : "/data/bundles/",
382                "check-action-status": "true"
383            }],
384            "symbol-links" : []
385        }, {
386            "name": "com.ohos.dlpmanager",
387            "sandbox-switch": "ON",
388            "sandbox-shared" : "true",
389            "mount-paths" :[{
390                "src-path" : "/mnt/data/<currentUserId>",
391                "sandbox-path" : "/mnt/data",
392                "category": "shared",
393                "check-action-status": "true"
394            }, {
395                "src-path" : "/dev/fuse",
396                "sandbox-path" : "/mnt/data/fuse",
397                "category": "dlp_fuse"
398            }],
399            "mount-groups": ["dlpmgr"]
400        }, {
401            "name" : "com.ohos.permissionmanager",
402            "sandbox-switch": "ON",
403            "mount-paths" : [{
404                    "src-path" : "/data/app/el1/bundle/public/",
405                    "sandbox-path" : "/data/bundles/",
406                    "check-action-status": "true"
407                }
408            ],
409            "symbol-links" : []
410        }]
411    },
412    "name-groups": [{
413        "name": "user-public",
414        "type": "system-const",
415        "mount-paths": [{
416            "src-path": "/data/service/el1/public/storage_daemon/share/public",
417            "sandbox-path": "/storage/Share"
418        }, {
419            "src-path": "/mnt/data/external",
420            "sandbox-path": "/storage/External"
421        }]
422    }, {
423        "name": "el2",
424        "type": "app-variable",
425        "deps-mode": "not-exists",
426        "mount-paths-deps": {
427            "src-path": "/data/app/el2/<currentUserId>/base",
428            "sandbox-path": "/data/storage/el2",
429            "category": "shared"
430        },
431        "mount-paths": [{
432            "src-path": "/data/app/el2/<currentUserId>/base/<variablePackageName>",
433            "sandbox-path": "<deps-path>/base"
434        }, {
435            "src-path": "/data/app/el2/<currentUserId>/database/<variablePackageName>",
436            "sandbox-path": "<deps-path>/database"
437        }, {
438            "src-path": "/data/app/el2/<currentUserId>/log/<variablePackageName>",
439            "sandbox-path": "<deps-path>/log"
440        }, {
441            "src-path": "/mnt/hmdfs/<currentUserId>/non_account/merge_view/data",
442            "sandbox-path": "<deps-path>/auth_groups"
443        }, {
444            "src-path": "/mnt/hmdfs/<currentUserId>/account/merge_view/data/<PackageName>",
445            "sandbox-path": "<deps-path>/distributedfiles"
446        }, {
447            "src-path": "/mnt/share/<currentUserId>/<PackageName_index>",
448            "sandbox-path": "<deps-path>/share"
449        }]
450    }, {
451        "name": "el3",
452        "type": "app-variable",
453        "deps-mode": "not-exists",
454        "mount-paths-deps": {
455            "src-path": "/data/app/el3/<currentUserId>/base",
456            "sandbox-path": "/data/storage/el3",
457            "category": "shared"
458        },
459        "mount-paths": [{
460            "src-path": "/data/app/el3/<currentUserId>/base/<variablePackageName>",
461            "sandbox-path": "<deps-path>/base"
462        }, {
463            "src-path": "/data/app/el3/<currentUserId>/database/<variablePackageName>",
464            "sandbox-path": "<deps-path>/database"
465        }]
466    }, {
467        "name": "el4",
468        "type": "app-variable",
469        "deps-mode": "not-exists",
470        "mount-paths-deps": {
471            "src-path": "/data/app/el4/<currentUserId>/base",
472            "sandbox-path": "/data/storage/el4",
473            "category": "shared"
474        },
475        "mount-paths": [{
476            "src-path": "/data/app/el4/<currentUserId>/base/<variablePackageName>",
477            "sandbox-path": "<deps-path>/base"
478        }, {
479            "src-path": "/data/app/el4/<currentUserId>/database/<variablePackageName>",
480            "sandbox-path": "<deps-path>/database"
481        }]
482    }, {
483        "name": "HspList",
484        "type": "app-variable",
485        "mount-paths": [{
486            "src-path": "/data/app/el1/bundle/public/<bundle-name>/<version>/<module-name>",
487            "sandbox-path": "/data/storage/el2/group/<bundle-name>/<module-name>"
488        }]
489    }, {
490        "name": "DataGroup",
491        "type": "app-variable",
492        "mount-paths": [{
493            "src-path": "<data-dir>",
494            "sandbox-path": "/data/storage/el2/group/<data-uuid>"
495        }]
496    }, {
497        "name": "Overlay",
498        "type": "app-variable",
499        "mount-paths": [{
500            "src-path": "<hap-path>",
501            "sandbox-path": "/data/storage/overlay/<hap-name>",
502            "category": "shared"
503        }]
504    }]
505}
506