add shader dir

Signed-off-by: wangfeng <wangfeng277@huawei.com>
This commit is contained in:
wangfeng 2024-04-17 09:47:02 +08:00
parent d5c6ff9a69
commit 9278c39928
2 changed files with 31 additions and 0 deletions

View File

@ -130,6 +130,12 @@
}, {
"src-path" : "/data/local/ark-profile/<currentUserId>/<PackageName>",
"sandbox-path" : "/data/storage/ark-profile"
}, {
"src-path" : "/data/local/shader_cache/local/<PackageName>",
"sandbox-path" : "/data/storage/shader_cache/local"
}, {
"src-path" : "/data/local/shader_cache/cloud/<PackageName>",
"sandbox-path" : "/data/storage/shader_cache/cloud"
}, {
"src-path" : "/mnt/share/<currentUserId>/<PackageName_index>",
"sandbox-path" : "/data/storage/el2/share"
@ -243,6 +249,12 @@
"sandbox-path": "/data/medialibrary/database"
}
]
}, {
"name": "ohos.permission.ACCESS_SHADER_CACHE_DIR",
"mount-paths": [{
"sandbox-path": "/data/storage/shader_caches",
"src-path": "/data/local/shader_cache"
}]
}],
"spawn-flag": [{
"name": "START_FLAGS_BACKUP",

View File

@ -193,6 +193,16 @@
"sandbox-path" : "/data/storage/ark-profile",
"sandbox-flags" : [ "bind", "rec" ],
"check-action-status": "false"
}, {
"src-path" : "/data/local/shader_cache/local/<PackageName>",
"sandbox-path" : "/data/storage/shader_cache/local",
"sandbox-flags" : [ "bind", "rec" ],
"check-action-status": "false"
}, {
"src-path" : "/data/local/shader_cache/cloud/<PackageName>",
"sandbox-path" : "/data/storage/shader_cache/cloud",
"sandbox-flags" : [ "bind", "rec" ],
"check-action-status": "false"
}, {
"src-path" : "/mnt/share/<currentUserId>/<PackageName_index>",
"sandbox-path" : "/data/storage/el2/share",
@ -785,6 +795,15 @@
"sandbox-flags": [ "bind", "rec" ]
}
]
}],
"ohos.permission.ACCESS_SHADER_CACHE_DIR":[{
"sandbox-switch": "ON",
"mount-paths": [{
"src-path": "/data/local/shader_cache",
"sandbox-path": "/data/storage/shader_caches",
"sandbox-flags": [ "bind", "rec" ]
}
]
}]
}]
}