diff --git a/bundle.json b/bundle.json index 1926680b99a6ae4f78a31b2235eb71d611f59e38..6fff2d2b03aab613847a034b7bcd06f1303a0ec5 100644 --- a/bundle.json +++ b/bundle.json @@ -44,6 +44,8 @@ "service_group": [ "//foundation/multimedia/camera_framework/sa_profile:camera_service_sa_profile", "//foundation/multimedia/camera_framework/services/etc:camera_service.rc", + "//foundation/multimedia/camera_framework/services/etc:camera_config.para", + "//foundation/multimedia/camera_framework/services/etc:camera_config.para.dac", "//foundation/multimedia/camera_framework/services/camera_service:camera_service" ] }, diff --git a/services/etc/BUILD.gn b/services/etc/BUILD.gn index 44ad5ba6c89a174cc1c3f8c809e73658d530d7e6..596f47931c764b57270111d022286c475962046a 100644 --- a/services/etc/BUILD.gn +++ b/services/etc/BUILD.gn @@ -19,3 +19,15 @@ ohos_prebuilt_etc("camera_service.rc") { part_name = "multimedia_camera_framework" subsystem_name = "multimedia" } + +ohos_prebuilt_etc("camera_config.para") { + source = "//foundation/multimedia/camera_framework/services/etc/camera_config.para" + part_name = "multimedia_camera_framework" + module_install_dir = "etc/param" +} + +ohos_prebuilt_etc("camera_config.para.dac") { + source = "//foundation/multimedia/camera_framework/services/etc/camera_config.para.dac" + part_name = "multimedia_camera_framework" + module_install_dir = "etc/param" +} diff --git a/services/etc/camera_config.para b/services/etc/camera_config.para new file mode 100644 index 0000000000000000000000000000000000000000..72896e7fdc4c8df9bda763fcada1f6cce19dc1fd --- /dev/null +++ b/services/etc/camera_config.para @@ -0,0 +1,14 @@ +# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +persist.camera.capture.encodetype="jpeg" +persist.camera.device.cameraid=0 diff --git a/services/etc/camera_config.para.dac b/services/etc/camera_config.para.dac new file mode 100644 index 0000000000000000000000000000000000000000..680cb84127909a3fc57d66d714f8b1bfbc40a3c0 --- /dev/null +++ b/services/etc/camera_config.para.dac @@ -0,0 +1,15 @@ +# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +persist.camera.capture.encodetype = root:root:0777 +persist.camera.device.cameraid = root:root:0777