device_xiaomi_sm6150-common/rootdir/etc/init.target.rc
Demon000 7acc933f7d
davinci: rootdir: Move configurations to their proper group
Change-Id: If564c1914fc1bf63d9b87113f4b97009ab162ddc
2020-08-06 21:28:09 +02:00

151 lines
4.9 KiB
Plaintext

# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
on init
wait /dev/block/platform/soc/1d84000.ufshc
symlink /dev/block/platform/soc/1d84000.ufshc /dev/block/bootdevice
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
# Add a cpuset for the camera daemon
mkdir /dev/cpuset/camera-daemon
write /dev/cpuset/camera-daemon/cpus 0-7
write /dev/cpuset/camera-daemon/mems 0
chown cameraserver cameraserver /dev/cpuset/camera-daemon
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
chmod 0660 /dev/cpuset/camera-daemon/tasks
on fs
mount_all /vendor/etc/fstab.qcom --early
restorecon_recursive /mnt/vendor/persist
mkdir /mnt/vendor/persist/data 0700 system system
mkdir /mnt/vendor/persist/audio 0755 system system
mkdir /mnt/vendor/persist/camera 0777 root root
on late-fs
mount_all /vendor/etc/fstab.qcom --late
wait_for_prop hwservicemanager.ready true
exec_start wait_for_keymaster
on post-fs-data
mkdir /data/vendor/nnhal 0700 system system
mkdir /data/vendor/nfc 0770 nfc nfc
mkdir /data/vendor/thermal 0771 root system
mkdir /data/vendor/thermal/config 0771 root system
on boot
start rmt_storage
start rfs_access
chown system system /sys/class/thermal/thermal_message/sconfig
on property:sys.boot_completed=1
# First setup runtime cpusets only for silver cpus
write /dev/cpuset/top-app/cpus 0-3
write /dev/cpuset/foreground/cpus 0-3
write /dev/cpuset/background/cpus 0-3
write /dev/cpuset/system-background/cpus 0-3
# Setup runtime cpusets
write /dev/cpuset/top-app/cpus 0-7
write /dev/cpuset/foreground/cpus 0-7
write /dev/cpuset/background/cpus 0-7
write /dev/cpuset/system-background/cpus 0-7
service vendor.pd_mapper /vendor/bin/pd-mapper
class core
user system
group system
service vendor.per_mgr /vendor/bin/pm-service
class core
user system
group system
ioprio rt 4
service vendor.per_proxy /vendor/bin/pm-proxy
class core
user system
group system
disabled
on property:init.svc.vendor.per_mgr=running
start vendor.per_proxy
on property:sys.shutdown.requested=*
stop vendor.per_proxy
on charger
setprop vendor.usb.controller a600000.dwc3
setprop sys.usb.configfs 1
symlink /dev/block/platform/soc/1da4000.ufshc /dev/block/bootdevice
mkdir /mnt/vendor/persist 0771 root system
wait /dev/block/platform/soc/1da4000.ufshc/by-name/persist
start vendor.hvdcp_opti
start vendor.thermal-engine
start vendor.power_off_alarm
service vendor.thermal-engine /vendor/bin/thermal-engine
class main
user root
socket thermal-send-client stream 0666 system system
socket thermal-recv-client stream 0660 system system
socket thermal-recv-passive-client stream 0666 system system
socket thermal-send-rule stream 0660 system system
group root
service vendor.panel-info-sh /vendor/bin/sh /vendor/etc/init.panel_info.sh
class late_start
user root
oneshot
disabled
on property:sys.boot_completed=1
start vendor.panel-info-sh
service vendor.hvdcp_opti /vendor/bin/hvdcp_opti
class main
user root
group system wakelock
service vendor.remosaic_daemon /vendor/bin/remosaic_daemon
class late_start
user camera
group camera
service vendor.nv_mac /vendor/bin/nv_mac
class main
user system
group system inet net_admin wifi net_raw
oneshot