Skip to content
Snippets Groups Projects
Commit 1c1c9122 authored by Robert Drab's avatar Robert Drab Committed by Thierry Escande
Browse files

openharmony-3.0: Add OpenHarmony foundation service


Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
Signed-off-by: default avatarThierry Escande <thierry.escande@huawei.com>
parent 081c364a
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=OpenHarmony foundation service
[Service]
Type=oneshot
ExecStart=/bin/echo "OpenHarmony foundation Service"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
......@@ -259,6 +259,18 @@ if systemctl -q is-enabled time.service; then
sleep "$STARTUP_CMD_SLEEP"
fi
# trigger: boot
# "name" : "foundation",
# "path" : ["/system/bin/sa_main", "/system/profile/foundation.xml"],
# "importance" : -20,
# "uid" : "system",
# "gid" : ["system"],
# "caps" : ["SYS_PTRACE", "KILL"]
if systemctl -q is-enabled foundation.service; then
/system/bin/sa_main /system/profile/foundation.xml & # SA: 180 182 3203 3299 3301 3308 3501 4010 | Required SA: 4700
sleep "$STARTUP_CMD_SLEEP"
fi
# trigger: boot
# "name" : "inputmethod_service",
# "path" : ["/system/bin/sa_main", "/system/profile/inputmethod_service.xml"],
......
......@@ -499,11 +499,13 @@ RDEPENDS:${PN}-ptest += "${PN}-appspawn-ptest"
# //foundation/appexecfwk/standard component
PACKAGES =+ "${PN}-appexecfwk"
SYSTEMD_PACKAGES += "${PN}-appexecfwk"
SYSTEMD_SERVICE:${PN}-appexecfwk = "installs.service"
SYSTEMD_SERVICE:${PN}-appexecfwk = "installs.service foundation.service"
SRC_URI += "file://installs.service"
SRC_URI += "file://foundation.service"
do_install:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${WORKDIR}/installs.service ${D}${systemd_unitdir}/system/
install -m 644 ${WORKDIR}/foundation.service ${D}${systemd_unitdir}/system/
rm -f ${D}${sysconfdir}/openharmony/init/installs.cfg
}
FILES:${PN}-appexecfwk = "\
......
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