Skip to content
Snippets Groups Projects
Commit ca3b1aaf authored by Esben Haabendal's avatar Esben Haabendal
Browse files

openharmony-standard: Move default parameter values to ohos.para


This simplifies initialization, by having param_service starting up with all the
default parameter values instead of setting them manually in different places.

Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
parent 6b6daafa
No related branches found
No related tags found
1 merge request!109Systemd service integration and stability improvements
......@@ -3,8 +3,6 @@ Description=OpenHarmony FaultLogger daemon
[Service]
Type=notify
# UserType::OVERSEAS_COMMERCIAL
ExecStartPre=setparam ro.logsystem.usertype 6
ExecStartPre=!install -o root -g system -m 0755 -d /run/openharmony/faultlogger
ExecStartPre=!install -o system -g log -m 0770 -d /data/log
ExecStartPre=!install -o system -g system -m 0770 -d /data/log/faultlog
......
......@@ -7,9 +7,6 @@ After=param.service
[Service]
Type=exec
ExecStartPre=setparam persist.hdc.port 35000
ExecStartPre=setparam persist.hdc.root 1
ExecStartPre=setparam ro.hdc.secure 0
ExecStart=/usr/bin/hdcd -t -l 3
[Install]
......
# Copyright (c) 2021 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.
build_version = 2.0
hw_sc.build.os.enable=true
hw_sc.build.os.apiversion=6
hw_sc.build.os.version=3.0.1
hw_sc.build.os.devicetype=headless
hw_sc.build.os.releasetype=Canary1
ro.actionable_compatible_property.enabled=false
ro.postinstall.fstab.prefix=/system
ro.secure=1
security.perf_harden=1
ro.allow.mock.location=0
ro.debuggable=1
ro.build.characteristics=default
# There is some kind of special handling if this is "OHOS"
ro.product.model=OHOS
ro.product.name=OpenHarmony 3.0.1
ro.product.locale=en-US
# 1: COMMERCIAL
# 2: FANS
# 3: BETA
# 4: TEST
# 5: OVERSEAS_BETA
# 6: OVERSEAS_COMMERCIAL
ro.logsystem.usertype=4
# user: General public
# userdebug: like user, but with root
# eng: build for testing ROMS not for public
ro.build.type=user
persist.sys.usb.config=hdc
ro.hdc.secure=0
persist.hdc.port=35000
persist.hdc.root=1
persist.ace.trace.enabled=0
......@@ -78,6 +78,3 @@ mkdir -p /data/log/faultlog/temp
mkdir -p /usr/lib/dri
chmod -R 777 /data
# Explicitly set default value to silence error message about parameter not being set
setparam persist.ace.trace.enabled 0
......@@ -219,6 +219,7 @@ symlink_python3() {
SRC_URI += "file://start_service file://stop_service"
SRC_URI += "file://param"
SRC_URI += "file://ohos.para"
do_install () {
OHOS_PACKAGE_OUT_DIR="${B}/packages/${OHOS_PRODUCT_PLATFORM_TYPE}"
......@@ -248,6 +249,8 @@ do_install () {
mkdir -p ${D}${sysconfdir}/openharmony
cp -r ${OHOS_PACKAGE_OUT_DIR}/system/etc/* ${D}${sysconfdir}/openharmony
ln -sfT ..${sysconfdir}/openharmony ${D}/system/etc
# Overwrite the OpenHarmony provideded parameter file
install -m 0644 -t ${D}${sysconfdir}/openharmony ${WORKDIR}/ohos.para
# OpenHarmony font files
mkdir -p ${D}${datadir}/fonts/openharmony
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment