1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14service multimodalinputservice /system/bin/sa_main /system/profile/multimodalinputservice.xml 15 user system 16 group system shell uhid 17 18service mmi_uinput_service /system/bin/uinput_inject 19 user root 20 group system shell uhid 21 22service udevd_service /system/bin/udevd 23 user root 24 group system 25 26service weston /system/bin/weston -c /system/etc/weston.ini -B drm-backend.so --tty=1 --use-pixman 27 class weston 28 29 disabled 30 seclabel u:r:weston:s0 31 32service hdi_weston /system/bin/weston -c /system/etc/weston.ini -B hdi-backend.so 33 class weston 34 35 disabled 36 seclabel u:r:weston:s0 37 38on post-fs 39 start udevd_service 40 exec /system/bin/sleep 1 41 start multimodalinputservice 42 start mmi_uinput_service 43 exec /system/bin/sleep 2 44 45 export XDG_RUNTIME_DIR "/data/weston" 46 export XKB_CONFIG_ROOT "/etc/xkb" 47 export XKB_CONFIG_EXTRA_PATH "/etc/xkb" 48 mkdir /data/weston 49 chmod 777 /data/weston 50 start weston 51 52 trigger weston_start 53 exec /system/bin/sleep 2 54