diff --git a/services/5205.xml b/services/5205.xml index 5506608b29fd71921e62b881a0f85e28fe44cfe4..885af335f70e013f0b52f81f23196dec2db1a98a 100644 --- a/services/5205.xml +++ b/services/5205.xml @@ -14,12 +14,12 @@ * limitations under the License. --> - distributedfiledaemon + cloudfiledaemon 5205 libcloudfiledaemon.z.so 60000 - false + true false 1 diff --git a/services/cloudfiledaemon/src/ipc/cloud_daemon.cpp b/services/cloudfiledaemon/src/ipc/cloud_daemon.cpp index 689fd0c4f5c81db9109a0e8e82479371b97d90a1..e67f83c2d263049e3e5de442c4e4120965d50cbf 100644 --- a/services/cloudfiledaemon/src/ipc/cloud_daemon.cpp +++ b/services/cloudfiledaemon/src/ipc/cloud_daemon.cpp @@ -55,7 +55,6 @@ void CloudDaemon::OnStart() try { PublishSA(); - AddSystemAbilityListener(COMMON_EVENT_SERVICE_ID); } catch (const exception &e) { LOGE("%{public}s", e.what()); } diff --git a/services/distributedfile.cfg b/services/distributedfile.cfg index 591bda611712bb6f4e7c664b830b4606b237aeb2..af1eaf94cf4140dadb510ff7109fe0ad3aa8b9ad 100644 --- a/services/distributedfile.cfg +++ b/services/distributedfile.cfg @@ -14,5 +14,17 @@ "ohos.permission.MANAGE_LOCAL_ACCOUNTS", "ohos.permission.ACCESS_SERVICE_DM" ] + }, { + "name": "cloudfiledaemon", + "path": ["/system/bin/sa_main", "/system/profile/cloudfiledaemon.xml"], + "uid": "1009", + "gid": ["system", "dfs"], + "secon": "u:r:distributedfiledaemon:s0", + "apl": "system_basic", + "permission" : [ + "ohos.permission.DISTRIBUTED_DATASYNC", + "ohos.permission.MANAGE_LOCAL_ACCOUNTS", + "ohos.permission.ACCESS_SERVICE_DM" + ] }] }