mirror of
https://gitee.com/openharmony/applications_settings_data
synced 2024-11-23 06:40:11 +00:00
add datashare profile
Signed-off-by: niudongyao <niudongyao@huawei.com>
This commit is contained in:
parent
4442b23195
commit
e2b2d44a24
@ -22,7 +22,8 @@
|
||||
"type": "dataShare",
|
||||
"uri": "datashare://com.ohos.settingsdata.DataAbility",
|
||||
"visible": true,
|
||||
"writePermission": "ohos.permission.MANAGE_SECURE_SETTINGS"
|
||||
"writePermission": "ohos.permission.MANAGE_SECURE_SETTINGS",
|
||||
"metadata": [{"name": "ohos.extension.dataShare", "resource": "$profile:data_share_config"}]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
18
entry/src/main/resources/base/profile/data_share_config.json
Normal file
18
entry/src/main/resources/base/profile/data_share_config.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"tableConfig": [
|
||||
{
|
||||
"uri": "*",
|
||||
"writePermission": "ohos.permission.xxx"
|
||||
},
|
||||
{
|
||||
"uri": "datashare:///com.ohos.settingsdata/entry/settingsdata",
|
||||
"crossUserMode": 1,
|
||||
"writePermission": "ohos.permission.xxx",
|
||||
"readPermission": "ohos.permission.xxx"
|
||||
},
|
||||
{
|
||||
"uri": "datashare:///com.ohos.settingsdata/entry/settingsdata/SETTINGSDATA",
|
||||
"crossUserMode": 1
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user