Skip to content
Snippets Groups Projects
Commit b8b7e638 authored by Francesco Pham's avatar Francesco Pham
Browse files

openharmony-standard_3.0: install system haps in /system/app directory

In OpenHarmony system applications HAP packages such as Launcher, SystemUI, Settings 
are located under /system/app directory. These packages are automatically installed and 
started at system initialization. These system apps are treated differently from
third party applications that can be installed using `hdc install`, for example 
they have a different UID range and different permissions (they cannot be uninstalled).

This fixes testcases ActsBundleManagerTest::getBundleInfo_1300 and ActsBundleManagerUninstallTest::uninstall_0600

Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/meta-openharmony/-/issues/21



Signed-off-by: default avatarFrancesco Pham <francesco.pham@huawei.com>
parent 698816ca
No related branches found
No related tags found
1 merge request!93openharmony-standard_3.0: install system haps in /system/app directory
...@@ -1974,4 +1974,19 @@ INSANE_SKIP:${PN} += "already-stripped" ...@@ -1974,4 +1974,19 @@ INSANE_SKIP:${PN} += "already-stripped"
inherit useradd inherit useradd
USERADD_PACKAGES = "${PN}" USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-u 1000 -U -s /bin/sh system" USERADD_PARAM:${PN} = "-u 1000 -U -s /bin/sh system"
\ No newline at end of file
# system haps
PACKAGES =+ "${PN}-systemhaps"
do_install:append() {
install -m 777 -d ${D}/system/app
install -m 666 ${S}/applications/standard/hap/Launcher.hap ${D}/system/app
install -m 666 ${S}/applications/standard/hap/SystemUI-NavigationBar.hap ${D}/system/app
install -m 666 ${S}/applications/standard/hap/SystemUI-StatusBar.hap ${D}/system/app
install -m 666 ${S}/applications/standard/hap/SystemUI-SystemDialog.hap ${D}/system/app
install -m 666 ${S}/applications/standard/hap/Settings.hap ${D}/system/app
}
FILES:${PN}-systemhaps = " \
/system/app/* \
"
RDEPENDS:${PN} += "${PN}-systemhaps"
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