add datashare profile

Signed-off-by: niudongyao <niudongyao@huawei.com>
This commit is contained in:
niudongyao 2023-02-06 02:45:57 +00:00
parent 4442b23195
commit e2b2d44a24
2 changed files with 20 additions and 1 deletions

View File

@ -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"}]
}
]
}

View 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
}
]
}