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 mmi_uinput_service /system/bin/uinput_inject 15 user root 16 group system shell uhid 17 18service udevd_service /system/bin/udevd 19 user root 20 group system 21 22service weston /system/bin/weston -c /system/etc/weston.ini -B drm-backend.so --tty=1 --use-pixman 23 class weston 24 25 disabled 26 seclabel u:r:weston:s0 27 28service hdi_weston /system/bin/weston -c /system/etc/weston.ini -B hdi-backend.so 29 class weston 30 31 disabled 32 seclabel u:r:weston:s0 33 34on post-fs 35 start udevd_service 36 exec /system/bin/sleep 1 37 start mmi_uinput_service 38 exec /system/bin/sleep 2 39 40 export XDG_RUNTIME_DIR "/data/weston" 41 export XKB_CONFIG_ROOT "/etc/xkb" 42 export XKB_CONFIG_EXTRA_PATH "/etc/xkb" 43 mkdir /data/weston 44 chmod 777 /data/weston 45 start weston 46 47 trigger weston_start 48 exec /system/bin/sleep 2 49