2018-12-22 11:39:41 -05:00
|
|
|
# Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
|
2016-07-07 09:35:22 -04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2021-06-10 09:30:33 -04:00
|
|
|
on early-init
|
|
|
|
# Disable EAS
|
|
|
|
write /proc/sys/kernel/sched_energy_aware 0
|
|
|
|
|
2017-03-17 08:24:52 -04:00
|
|
|
on init
|
2021-08-22 04:56:34 -04:00
|
|
|
# Add a cpuset for the camera daemon
|
|
|
|
mkdir /dev/cpuset/camera-daemon 0750 cameraserver cameraserver
|
|
|
|
write /dev/cpuset/camera-daemon/cpus 0-7
|
|
|
|
write /dev/cpuset/camera-daemon/mems 0
|
|
|
|
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
|
|
|
|
chmod 0660 /dev/cpuset/camera-daemon/tasks
|
|
|
|
|
|
|
|
# Create an stune group for camera-specific processes
|
|
|
|
mkdir /dev/stune/camera-daemon
|
|
|
|
write /dev/stune/camera-daemon/schedtune.prefer_idle 1
|
|
|
|
write /dev/stune/camera-daemon/schedtune.boost 0
|
|
|
|
chown system system /dev/stune/camera-daemon
|
|
|
|
chown system system /dev/stune/camera-daemon/tasks
|
|
|
|
chmod 0664 /dev/stune/camera-daemon/tasks
|
|
|
|
|
|
|
|
mkdir /dev/cpuset/system 0750 root system
|
|
|
|
write /dev/cpuset/system/cpus 0
|
|
|
|
write /dev/cpuset/system/mems 0
|
|
|
|
chown system system /dev/cpuset/system/tasks
|
|
|
|
chmod 0660 /dev/cpuset/system/tasks
|
|
|
|
|
|
|
|
mkdir /dev/cpuset/system/performance 0750 root system
|
|
|
|
write /dev/cpuset/system/performance/cpus 0
|
|
|
|
write /dev/cpuset/system/performance/mems 0
|
|
|
|
chown system system /dev/cpuset/system/performance/tasks
|
|
|
|
chmod 0660 /dev/cpuset/system/performance/tasks
|
|
|
|
|
|
|
|
mkdir /dev/cpuset/system/background 0750 root system
|
|
|
|
write /dev/cpuset/system/background/cpus 0
|
|
|
|
write /dev/cpuset/system/background/mems 0
|
|
|
|
chown system system /dev/cpuset/system/background/tasks
|
|
|
|
chmod 0660 /dev/cpuset/system/background/tasks
|
|
|
|
|
|
|
|
mkdir /dev/cpuset/application 0750 root system
|
|
|
|
write /dev/cpuset/application/cpus 0
|
|
|
|
write /dev/cpuset/application/mems 0
|
|
|
|
chown system system /dev/cpuset/application/tasks
|
|
|
|
chmod 0660 /dev/cpuset/application/tasks
|
|
|
|
|
|
|
|
mkdir /dev/cpuset/application/performance 0750 root system
|
|
|
|
write /dev/cpuset/application/performance/cpus 0
|
|
|
|
write /dev/cpuset/application/performance/mems 0
|
|
|
|
chown system system /dev/cpuset/application/performance/tasks
|
|
|
|
chmod 0660 /dev/cpuset/application/performance/tasks
|
|
|
|
|
|
|
|
mkdir /dev/cpuset/application/background 0750 root system
|
|
|
|
write /dev/cpuset/application/background/cpus 0
|
|
|
|
write /dev/cpuset/application/background/mems 0
|
|
|
|
chown system system /dev/cpuset/application/background/tasks
|
|
|
|
chmod 0660 /dev/cpuset/application/background/tasks
|
|
|
|
|
|
|
|
write /dev/cpuset/kernel/cpus 0-7
|
|
|
|
write /dev/cpuset/system/cpus 0-7
|
|
|
|
write /dev/cpuset/system/performance/cpus 0-7
|
|
|
|
write /dev/cpuset/system/background/cpus 0-7
|
|
|
|
write /dev/cpuset/system/cpus 0-7
|
|
|
|
write /dev/cpuset/application/cpus 0-7
|
|
|
|
write /dev/cpuset/application/performance/cpus 0-7
|
|
|
|
write /dev/cpuset/application/background/cpus 0-7
|
|
|
|
write /dev/cpuset/application/cpus 0-7
|
2021-02-06 19:57:38 -05:00
|
|
|
|
|
|
|
# Setup permission for Power HAL
|
|
|
|
chown system system /dev/stune/top-app/schedtune.boost
|
|
|
|
chown system system /sys/class/kgsl/kgsl-3d0/devfreq/min_freq
|
|
|
|
chown system system /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
|
|
|
|
chown system system /sys/class/kgsl/kgsl-3d0/force_rail_on
|
|
|
|
chown system system /sys/class/kgsl/kgsl-3d0/force_clk_on
|
|
|
|
chown system system /sys/class/kgsl/kgsl-3d0/idle_timer
|
2021-02-16 14:59:15 -05:00
|
|
|
chown system system /sys/class/devfreq/soc:qcom,gpubw/min_freq
|
2021-06-10 12:28:49 -04:00
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/max_freq
|
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq
|
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hist_memory
|
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_length
|
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_trigger_count
|
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/io_percent
|
|
|
|
chown system system /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/sample_ms
|
|
|
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
|
|
|
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
|
|
|
chown system system /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq
|
|
|
|
chown system system /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
|
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
chmod 0664 /dev/stune/top-app/schedtune.boost
|
|
|
|
chmod 0664 /sys/class/kgsl/kgsl-3d0/devfreq/min_freq
|
|
|
|
chmod 0664 /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
|
|
|
|
chmod 0664 /sys/class/kgsl/kgsl-3d0/force_rail_on
|
|
|
|
chmod 0664 /sys/class/kgsl/kgsl-3d0/force_clk_on
|
|
|
|
chmod 0664 /sys/class/kgsl/kgsl-3d0/idle_timer
|
2021-02-16 14:59:15 -05:00
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,gpubw/min_freq
|
2021-06-10 12:28:49 -04:00
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/max_freq
|
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/min_freq
|
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hist_memory
|
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_length
|
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/hyst_trigger_count
|
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/io_percent
|
|
|
|
chmod 0664 /sys/class/devfreq/soc:qcom,cpu-cpu-ddr-bw/bw_hwmon/sample_ms
|
|
|
|
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
|
|
|
chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
|
|
|
chmod 0664 /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq
|
|
|
|
chmod 0664 /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
|
2020-02-09 11:21:57 -05:00
|
|
|
|
2021-07-25 01:25:15 -04:00
|
|
|
chown system system /sys/module/battery_saver/parameters/enabled
|
|
|
|
chmod 0664 /sys/module/battery_saver/parameters/enabled
|
|
|
|
|
2021-07-26 03:56:38 -04:00
|
|
|
# Change permissions for /dev/diag
|
|
|
|
chmod 0666 /dev/diag
|
|
|
|
|
2016-07-07 09:35:22 -04:00
|
|
|
on fs
|
2017-06-28 06:01:43 -04:00
|
|
|
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
|
|
|
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
2017-06-12 08:44:14 -04:00
|
|
|
mount_all /vendor/etc/fstab.qcom
|
|
|
|
swapon_all /vendor/etc/fstab.qcom
|
2018-05-11 12:25:09 -04:00
|
|
|
chown root system /mnt/vendor/persist
|
|
|
|
chmod 0771 /mnt/vendor/persist
|
|
|
|
mkdir /mnt/vendor/persist/data 0700 system system
|
2018-12-22 11:39:41 -05:00
|
|
|
mkdir /mnt/vendor/persist/bms 0700 root system
|
2018-05-11 12:25:09 -04:00
|
|
|
restorecon_recursive /mnt/vendor/persist
|
2017-04-03 04:28:45 -04:00
|
|
|
write /sys/kernel/boot_adsp/boot 1
|
2021-02-06 19:57:38 -05:00
|
|
|
|
|
|
|
mkdir /mnt/vendor/dsp 0770 root root
|
|
|
|
copy /vendor/dsp/cdsp/fastrpc_shell_3 /mnt/vendor/dsp/fastrpc_shell_3
|
|
|
|
chmod 0644 /mnt/vendor/dsp/fastrpc_shell_3
|
|
|
|
mount none /mnt/vendor/dsp/fastrpc_shell_3 /vendor/dsp/cdsp/fastrpc_shell_3 bind
|
2016-07-07 09:35:22 -04:00
|
|
|
|
|
|
|
on post-fs
|
2018-08-18 21:13:46 -04:00
|
|
|
start vendor.qseecomd
|
2021-02-06 19:57:38 -05:00
|
|
|
wait_for_prop vendor.sys.listeners.registered true
|
2016-07-07 09:35:22 -04:00
|
|
|
|
2017-03-17 08:24:52 -04:00
|
|
|
on init
|
|
|
|
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
|
|
|
|
|
2016-07-07 09:35:22 -04:00
|
|
|
on post-fs-data
|
2017-02-01 19:27:44 -05:00
|
|
|
mkdir /data/tombstones/modem 0771 system system
|
|
|
|
mkdir /data/tombstones/lpass 0771 system system
|
|
|
|
mkdir /data/tombstones/wcnss 0771 system system
|
|
|
|
mkdir /data/tombstones/dsps 0771 system system
|
2021-02-06 19:57:38 -05:00
|
|
|
|
2021-07-31 14:09:18 -04:00
|
|
|
on early-boot
|
|
|
|
write /dev/ipa 1
|
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
on boot
|
2021-07-21 04:20:48 -04:00
|
|
|
start vendor.rmt_storage
|
2021-02-06 19:57:38 -05:00
|
|
|
start rfs_access
|
2021-06-05 03:13:40 -04:00
|
|
|
|
|
|
|
# Thermal
|
|
|
|
chmod 0664 /sys/class/thermal/thermal_message/sconfig
|
|
|
|
chown system system /sys/class/thermal/thermal_message/sconfig
|
|
|
|
chmod 0666 /sys/class/thermal/thermal_message/temp_state
|
|
|
|
chown system system /sys/class/thermal/thermal_message/temp_state
|
|
|
|
|
2021-08-22 04:56:34 -04:00
|
|
|
# Cpusets
|
2021-02-06 19:57:38 -05:00
|
|
|
write /dev/cpuset/top-app/cpus 0-7
|
|
|
|
write /dev/cpuset/foreground/cpus 0-7
|
|
|
|
write /dev/cpuset/foreground/boost/cpus 0-7
|
2021-08-22 04:56:34 -04:00
|
|
|
write /dev/cpuset/background/cpus 0-1
|
|
|
|
write /dev/cpuset/system-background/cpus 0-2
|
2021-02-06 19:57:38 -05:00
|
|
|
####Regionalization config and prop files####
|
|
|
|
chmod 0644 /persist/speccfg/spec
|
|
|
|
chmod 0644 /persist/speccfg/devicetype
|
|
|
|
chmod 0644 /persist/speccfg/mbnversion
|
|
|
|
chmod 0644 /persist/speccfg/.not_triggered
|
|
|
|
chmod 0644 /persist/speccfg/vendor_ro.prop
|
|
|
|
chmod 0644 /persist/speccfg/vendor_persist.prop
|
|
|
|
chmod 0644 /persist/speccfg/submask
|
|
|
|
chmod 0644 /persist/speccfg/partition
|
|
|
|
chown system system /persist/speccfg/spec
|
|
|
|
chown system system /persist/speccfg/devicetype
|
|
|
|
chown system system /persist/speccfg/mbnversion
|
|
|
|
chown system system /persist/speccfg/.not_triggered
|
|
|
|
chown system system /persist/speccfg/vendor_ro.prop
|
|
|
|
chown system system /persist/speccfg/vendor_persist.prop
|
|
|
|
chown system system /persist/speccfg/submask
|
|
|
|
chown system system /persist/speccfg/partition
|
|
|
|
|
|
|
|
#Create folder dump yuv images while debugging
|
|
|
|
mkdir /data/vendor/camera 0770 camera camera
|
|
|
|
|
2021-03-16 15:24:28 -04:00
|
|
|
#Load WLAN driver
|
2020-12-10 18:54:56 -05:00
|
|
|
insmod /vendor/lib/modules/wlan.ko
|
2021-03-16 15:24:28 -04:00
|
|
|
|
2020-02-04 00:52:23 -05:00
|
|
|
#USB controller configuration
|
|
|
|
setprop vendor.usb.rndis.func.name "rndis_bam"
|
|
|
|
setprop vendor.usb.rmnet.func.name "rmnet_bam"
|
|
|
|
setprop vendor.usb.rmnet.inst.name "rmnet"
|
|
|
|
setprop vendor.usb.dpl.inst.name "dpl"
|
|
|
|
setprop vendor.usb.qdss.inst.name "qdss"
|
2019-10-23 08:04:57 -04:00
|
|
|
setprop vendor.usb.controller a800000.dwc3
|
2021-02-06 19:57:38 -05:00
|
|
|
setprop sys.usb.configfs 1
|
2019-10-23 08:04:57 -04:00
|
|
|
write /sys/module/usb_f_qcrndis/parameters/rndis_dl_max_xfer_size 15916
|
|
|
|
|
|
|
|
on boot && property:persist.vendor.usb.controller.default=*
|
|
|
|
setprop vendor.usb.controller ${persist.vendor.usb.controller.default}
|
|
|
|
|
|
|
|
on property:vendor.usb.controller=*
|
|
|
|
setprop sys.usb.controller ${vendor.usb.controller}
|
2019-09-19 11:49:41 -04:00
|
|
|
|
2020-08-05 01:47:58 -04:00
|
|
|
# Touchpanel
|
|
|
|
chown system system /sys/touchpanel/double_tap
|
2021-02-06 19:57:38 -05:00
|
|
|
chmod 0664 /sys/touchpanel/double_tap
|
2021-05-14 21:59:26 -04:00
|
|
|
|
2021-02-19 07:10:46 -05:00
|
|
|
# SmartCharging
|
2021-05-28 10:30:28 -04:00
|
|
|
chown system system /sys/class/power_supply/battery/charging_enabled
|
|
|
|
chmod 0666 /sys/class/power_supply/battery/charging_enabled
|
2019-03-18 16:13:54 -04:00
|
|
|
|
2017-03-17 08:24:52 -04:00
|
|
|
#Peripheral manager
|
2018-08-18 21:13:46 -04:00
|
|
|
service vendor.per_mgr /system/vendor/bin/pm-service
|
2017-03-17 08:24:52 -04:00
|
|
|
class core
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
ioprio rt 4
|
|
|
|
|
2018-08-18 21:13:46 -04:00
|
|
|
service vendor.per_proxy /system/vendor/bin/pm-proxy
|
2017-03-17 08:24:52 -04:00
|
|
|
class core
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
disabled
|
|
|
|
|
2018-12-22 11:39:41 -05:00
|
|
|
on property:init.svc.vendor.per_mgr=running
|
2018-08-18 21:13:46 -04:00
|
|
|
start vendor.per_proxy
|
2017-03-17 08:24:52 -04:00
|
|
|
|
2019-02-20 12:12:17 -05:00
|
|
|
on property:sys.shutdown.requested=*
|
2018-08-18 21:13:46 -04:00
|
|
|
stop vendor.per_proxy
|
2019-04-03 00:12:09 -04:00
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
## import cne init file
|
|
|
|
#on post-fs
|
|
|
|
# export LD_PRELOAD /vendor/lib/libNimsWrap.so
|
|
|
|
#
|
|
|
|
## Allow usb charging to be disabled peristently
|
|
|
|
#on property:persist.usb.chgdisabled=1
|
|
|
|
# write /sys/class/power_supply/battery/charging_enabled 0
|
|
|
|
#
|
|
|
|
#on property:persist.usb.chgdisabled=0
|
|
|
|
# write /sys/class/power_supply/battery/charging_enabled 1
|
|
|
|
#
|
2018-08-18 21:13:46 -04:00
|
|
|
service vendor.qseecomd /vendor/bin/qseecomd
|
2016-07-07 09:35:22 -04:00
|
|
|
class core
|
|
|
|
user root
|
|
|
|
group root
|
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
service thermal-engine /system/vendor/bin/thermal-engine
|
2016-07-07 09:35:22 -04:00
|
|
|
class main
|
|
|
|
user root
|
2017-03-17 08:24:52 -04:00
|
|
|
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
|
2017-03-20 11:55:43 -04:00
|
|
|
socket thermal-send-rule stream 0660 system system
|
2016-07-07 09:35:22 -04:00
|
|
|
group root
|
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
#on boot
|
|
|
|
# insmod /system/lib/modules/adsprpc.ko
|
|
|
|
# insmod /system/lib/modules/mhi.ko
|
|
|
|
## access permission for secure touch
|
|
|
|
# chmod 0660 /sys/devices/f9966000.i2c/i2c-1/1-004a/secure_touch_enable
|
|
|
|
# chmod 0440 /sys/devices/f9966000.i2c/i2c-1/1-004a/secure_touch
|
|
|
|
# chmod 0660 /sys/devices/f9966000.i2c/i2c-1/1-0020/secure_touch_enable
|
|
|
|
# chmod 0440 /sys/devices/f9966000.i2c/i2c-1/1-0020/secure_touch
|
|
|
|
# chown system drmrpc /sys/devices/f9966000.i2c/i2c-1/1-004a/secure_touch_enable
|
|
|
|
# chown system drmrpc /sys/devices/f9966000.i2c/i2c-1/1-004a/secure_touch
|
|
|
|
# chown system drmrpc /sys/devices/f9966000.i2c/i2c-1/1-0020/secure_touch_enable
|
|
|
|
# chown system drmrpc /sys/devices/f9966000.i2c/i2c-1/1-0020/secure_touch
|
|
|
|
#
|
|
|
|
|
2018-08-18 21:13:46 -04:00
|
|
|
service vendor.pd_mapper /system/vendor/bin/pd-mapper
|
2016-07-07 09:35:22 -04:00
|
|
|
class core
|
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
service ppd /system/vendor/bin/mm-pp-dpps
|
|
|
|
class late_start
|
2016-07-07 09:35:22 -04:00
|
|
|
user system
|
|
|
|
group system graphics
|
|
|
|
socket pps stream 0660 system system
|
|
|
|
disabled
|
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
on property:init.svc.surfaceflinger=stopped
|
|
|
|
stop ppd
|
|
|
|
|
|
|
|
on property:init.svc.surfaceflinger=running
|
|
|
|
start ppd
|
|
|
|
|
|
|
|
on property:init.svc.surfaceflinger=restarting
|
|
|
|
stop ppd
|
2016-07-07 09:35:22 -04:00
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
on property:init.svc.zygote=stopped
|
|
|
|
stop ppd
|
2016-07-07 09:35:22 -04:00
|
|
|
|
2021-02-06 19:57:38 -05:00
|
|
|
on property:init.svc.zygote=running
|
|
|
|
start ppd
|
|
|
|
|
|
|
|
on property:init.svc.zygote=restarting
|
|
|
|
stop ppd
|
2016-07-07 09:35:22 -04:00
|
|
|
|
2017-03-17 08:24:52 -04:00
|
|
|
on charger
|
2021-02-06 19:57:38 -05:00
|
|
|
start qcom-post-boot
|
2018-08-18 21:13:46 -04:00
|
|
|
start vendor.hvdcp_opti
|
2019-10-23 08:04:57 -04:00
|
|
|
setprop vendor.usb.controller a800000.dwc3
|
2017-08-02 06:24:55 -04:00
|
|
|
setprop sys.usb.configfs 1
|
2021-05-12 05:15:06 -04:00
|
|
|
start vendor.power_off_alarm
|
2018-08-18 21:13:46 -04:00
|
|
|
|
|
|
|
service vendor.hvdcp_opti /system/vendor/bin/hvdcp_opti
|
|
|
|
class main
|
|
|
|
user root
|
|
|
|
group system wakelock
|
2021-06-10 09:40:22 -04:00
|
|
|
|
|
|
|
on property:sys.boot_completed=1
|
|
|
|
# Enable EAS
|
|
|
|
write /proc/sys/kernel/sched_energy_aware 1
|
2021-08-22 04:56:34 -04:00
|
|
|
|
|
|
|
# Setup final cpuset
|
|
|
|
write /dev/cpuset/top-app/cpus 0-7
|
|
|
|
write /dev/cpuset/foreground/cpus 0-3,6-7
|
|
|
|
write /dev/cpuset/background/cpus 0-1
|
|
|
|
write /dev/cpuset/system-background/cpus 0-3
|
|
|
|
write /dev/cpuset/restricted/cpus 0-3
|
|
|
|
|
2021-11-04 11:01:47 -04:00
|
|
|
# Schedtune
|
|
|
|
write /dev/stune/foreground/schedtune.prefer_idle 1
|
|
|
|
write /dev/stune/foreground/schedtune.prefer_high_cap 0
|
|
|
|
write /dev/stune/foreground/schedtune.boost 0
|
|
|
|
write /dev/stune/schedtune.prefer_idle 0
|
|
|
|
write /dev/stune/schedtune.prefer_high_cap 0
|
|
|
|
write /dev/stune/schedtune.boost 0
|
|
|
|
write /dev/stune/top-app/schedtune.prefer_idle 1
|
|
|
|
write /dev/stune/top-app/schedtune.prefer_high_cap 0
|
|
|
|
write /dev/stune/top-app/schedtune.boost 10
|
|
|
|
|