mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
165 lines
4.5 KiB
Plaintext
165 lines
4.5 KiB
Plaintext
#
|
|
# Copyright (C) 2016 The Android Open-Source Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
import init.${ro.hardware}.usb.rc
|
|
import init.${ro.hardware}.diag.rc
|
|
|
|
on early-init
|
|
mount debugfs debugfs /sys/kernel/debug
|
|
chmod 0755 /sys/kernel/debug
|
|
|
|
on init
|
|
# Support legacy paths
|
|
symlink /sdcard /mnt/sdcard
|
|
symlink /sdcard /storage/sdcard0
|
|
|
|
on fs
|
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
|
|
|
mount_all fstab.${ro.hardware}
|
|
swapon_all fstab.${ro.hardware}
|
|
|
|
# Keeping following partitions outside fstab file. As user may not have
|
|
# these partition flashed on the device. Failure to mount any partition in fstab file
|
|
# results in failure to launch late-start class.
|
|
|
|
wait /dev/block/bootdevice/by-name/cache
|
|
mount ext4 /dev/block/bootdevice/by-name/cache /cache nosuid nodev barrier=1
|
|
|
|
wait /dev/block/bootdevice/by-name/persist
|
|
mount ext4 /dev/block/bootdevice/by-name/persist /persist nosuid nodev barrier=1
|
|
restorecon_recursive /persist
|
|
mkdir /persist/data 0700 system system
|
|
|
|
wait /dev/block/bootdevice/by-name/dsp
|
|
mount ext4 /dev/block/bootdevice/by-name/dsp /dsp ro nosuid nodev barrier=1
|
|
|
|
wait /dev/block/bootdevice/by-name/modem
|
|
mount vfat /dev/block/bootdevice/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337
|
|
|
|
on post-fs
|
|
# set RLIMIT_MEMLOCK to 64MB
|
|
setrlimit 8 67108864 67108864
|
|
|
|
# Since bootloader does not have a UI turn screen ON
|
|
write /sys/class/leds/lcd-backlight/brightness 255
|
|
|
|
# Enable audio and video device for bootanim
|
|
write /sys/kernel/boot_adsp/boot 1
|
|
write /sys/kernel/boot_slpi/boot 1
|
|
|
|
chmod 0664 /sys/devices/virtual/graphics/fb0/idle_time
|
|
chown system graphics /sys/devices/virtual/graphics/fb0/idle_time
|
|
|
|
on post-fs-data
|
|
# Create perfd related dirs
|
|
mkdir /data/system/perfd 0770 root system
|
|
chmod 2770 /data/system/perfd
|
|
|
|
chmod 775 /persist/sensors
|
|
chmod 664 /persist/sensors/sensors_settings
|
|
chown system root /persist/sensors/sensors_settings
|
|
|
|
mkdir /data/misc/sensors
|
|
chmod 775 /data/misc/sensors
|
|
|
|
on early-boot
|
|
exec - root root system -- /system/bin/init.power.sh
|
|
|
|
service perfd /vendor/bin/perfd
|
|
class main
|
|
user root
|
|
group root readproc
|
|
socket perfd seqpacket 0666 root system
|
|
|
|
service thermal-engine /vendor/bin/thermal-engine
|
|
class main
|
|
user root
|
|
group root system
|
|
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
|
|
|
|
service ssr_setup /vendor/bin/ssr_setup
|
|
class main
|
|
user root
|
|
group root system
|
|
oneshot
|
|
|
|
service ssr_diag /vendor/bin/ssr_diag
|
|
class late_start
|
|
user system
|
|
group system
|
|
disabled
|
|
|
|
service per_mgr /vendor/bin/pm-service
|
|
class core
|
|
user system
|
|
group system
|
|
ioprio rt 4
|
|
|
|
service per_proxy /vendor/bin/pm-proxy
|
|
class core
|
|
user system
|
|
group system
|
|
disabled
|
|
|
|
on property:init.svc.per_mgr=running
|
|
start per_proxy
|
|
|
|
on property:sys.shutdown.requested=*
|
|
stop per_proxy
|
|
|
|
service qseecomd /vendor/bin/qseecomd
|
|
class core
|
|
user root
|
|
group root
|
|
|
|
service time_daemon /vendor/bin/time_daemon
|
|
class late_start
|
|
user root
|
|
group root
|
|
|
|
service ss_ramdump /vendor/bin/subsystem_ramdump
|
|
class main
|
|
user root
|
|
group root system
|
|
disabled
|
|
|
|
on property:persist.sys.ssr.enable_ramdumps=1
|
|
write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
|
|
mkdir /data/ramdump 760 root system
|
|
start ss_ramdump
|
|
|
|
on property:persist.sys.ssr.enable_ramdumps=0
|
|
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
|
|
|
|
service sensors /vendor/bin/sensors.qcom
|
|
class core
|
|
user root
|
|
group root
|
|
|
|
service adsprpcd /vendor/bin/adsprpcd
|
|
class main
|
|
user media
|
|
group media
|
|
|
|
service irsc_util /vendor/bin/irsc_util "/etc/sec_config"
|
|
class core
|
|
user root
|
|
oneshot
|