diff --git a/bundle.json b/bundle.json index c604854aaea673e38c2416c95dc3d466ed1693b1..375d6e48142fe38050ab4a89800966109d4ced84 100644 --- a/bundle.json +++ b/bundle.json @@ -45,7 +45,9 @@ }, "build": { "sub_component": [ - "//foundation/distributedhardware/device_manager:device_manager" + "//foundation/distributedhardware/device_manager:device_manager", + "//foundation/distributedhardware/device_manager/sa_profile:device_manager.cfg", + "//foundation/distributedhardware/device_manager/sa_profile:dm_sa_profile" ], "inner_kits": [ { diff --git a/sa_profile/4802.xml b/sa_profile/4802.xml index 3dba76f0fc0628a30f031fe87ec903454dff1c45..e64d348a91db5ceb854a62b4ab0c7525b67fc2ce 100644 --- a/sa_profile/4802.xml +++ b/sa_profile/4802.xml @@ -14,7 +14,7 @@ * limitations under the License. --> - foundation + device_manager 4802 libdevicemanagerservice.z.so diff --git a/sa_profile/BUILD.gn b/sa_profile/BUILD.gn index b411dc2daf5dfb5ac6ea00be8e2e050b1b1f1aba..4d33936d9f9de0ac9412c1e4ac9a38674748994e 100644 --- a/sa_profile/BUILD.gn +++ b/sa_profile/BUILD.gn @@ -11,10 +11,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//build/ohos/sa_profile/sa_profile.gni") +import("//build/ohos.gni") ohos_sa_profile("dm_sa_profile") { sources = [ "4802.xml" ] part_name = "device_manager" } + +ohos_prebuilt_etc("device_manager.cfg") { + relative_install_dir = "init" + source = "device_manager.cfg" + part_name = "device_manager" + subsystem_name = "distributedhardware" +} \ No newline at end of file diff --git a/sa_profile/device_manager.cfg b/sa_profile/device_manager.cfg new file mode 100644 index 0000000000000000000000000000000000000000..dd62e4d888a927f6e2737cdb28a50931146b26a8 --- /dev/null +++ b/sa_profile/device_manager.cfg @@ -0,0 +1,14 @@ +{ + "services" : [{ + "name" : "device_manager", + "path" : ["/system/bin/sa_main", "/system/profile/device_manager.xml"], + "critical":[1, 1, 60], + "importance" : -20, + "uid" : "system", + "gid" : ["system"], + "apl" : "system_core", + "permission" : ["ohos.permission.DISTRIBUTED_DATASYNC", "ohos.permission.DISTRIBUTED_SOFTBUS_CENTER"], + "secon" : "u:r:foundation:s0" + } + ] +} \ No newline at end of file