diff --git a/services/4901.xml b/services/4901.xml index 746f452eb6a0752c73cba44a65ce613e89f0a14d..eb428fb2b49b9dc73e9e1ed40a5169b97f783f0a 100755 --- a/services/4901.xml +++ b/services/4901.xml @@ -18,8 +18,8 @@ 4901 libdistributedfiledaemon.z.so - - + 4802;4700 + 60000 true false 1 diff --git a/services/4902.xml b/services/4902.xml index 89e4c712cdaf9ad150cbea3bccbaf2c56a5af3a5..9dc4f0d70680a0f75d0fb70a0fb62b0cabbe3b94 100644 --- a/services/4902.xml +++ b/services/4902.xml @@ -18,8 +18,8 @@ 4902 libdistributedfileservice.z.so - - + 4802;4700 + 60000 true false 1 diff --git a/services/distributedfile.cfg b/services/distributedfile.cfg index 442e2113f870f5feaaefc4d1255bc226af1290ca..df4ae969811309f42d28cc128920d75a3067c4d3 100644 --- a/services/distributedfile.cfg +++ b/services/distributedfile.cfg @@ -15,13 +15,13 @@ "name": "distributedfileservice", "path": ["/system/bin/sa_main", "/system/profile/distributedfileservice.xml"], "uid": "system", - "gid": ["system"], + "gid": ["system", "dfs"], "caps": ["SYS_PTRACE", "KILL"] },{ "name": "distributedfiledaemon", "path": ["/system/bin/sa_main", "/system/profile/distributedfiledaemon.xml"], "uid": "system", - "gid": ["system"], + "gid": ["system", "dfs"], "caps": ["SYS_PTRACE", "KILL"] }] } diff --git a/services/distributedfiledaemon/src/device/device_manager_agent.cpp b/services/distributedfiledaemon/src/device/device_manager_agent.cpp index 2921acb4f2c625e807c11fed5ad10448d902378c..090088e8d6be8e6ad61f8d4334027d2af86bf871 100644 --- a/services/distributedfiledaemon/src/device/device_manager_agent.cpp +++ b/services/distributedfiledaemon/src/device/device_manager_agent.cpp @@ -58,14 +58,8 @@ void DeviceManagerAgent::StopInstance() void DeviceManagerAgent::Start() { - try { - RegisterToExternalDm(); - InitLocalNodeInfo(); - } catch (const Exception &e) { - LOGE("interacting with devicemanager failed, err code %{public}d", e.code()); - } catch (const std::exception &e) { - LOGE("Unexpect Low Level exception"); - } + RegisterToExternalDm(); + InitLocalNodeInfo(); } void DeviceManagerAgent::Stop()