mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
89 lines
2.9 KiB
Plaintext
89 lines
2.9 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
|
|
|
|
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
|
|
|
|
on early-boot
|
|
exec - root root system -- /system/bin/init.power.sh
|
|
|
|
service perfd /system/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
|
|
|