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

openharmony-standard: Use udev to set binder and ashmem permissions


Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
parent 69c4f2ed
No related branches found
No related tags found
1 merge request!109Systemd service integration and stability improvements
KERNEL=="ashmem", MODE="0666"
KERNEL=="binder*", MODE="0666"
......@@ -83,10 +83,6 @@ mkdir -p /usr/lib/dri
chmod -R 777 /data
# /dev/binder and /dev/ashmem need to be rw for all users
chmod 666 /dev/binder
chmod 666 /dev/ashmem
# /dev/dri/card0 needs to be rw for all users
if [ -c /dev/dri/card0 ]; then
chmod 666 /dev/dri/card0
......
......@@ -413,6 +413,16 @@ copy_subsystem_config_json_file() {
inherit systemd
SYSTEMD_AUTO_ENABLE = "enable"
SRC_URI += "file://40-binder.rules"
SRC_URI += "file://40-ashmem.rules"
do_install_udev_rules() {
mkdir -p ${D}${nonarch_base_libdir}/udev/rules.d
install -m 644 -t ${D}${nonarch_base_libdir}/udev/rules.d \
${WORKDIR}/40-binder.rules \
${WORKDIR}/40-ashmem.rules
}
do_install[postfuncs] += "do_install_udev_rules"
# OpenHarmony pre-init package and its systemd service
# Used to create folders needed by OH services and components
PACKAGES =+ "${PN}-openharmony-preinit"
......
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