sm8250-common -> sm7325-common
This commit is contained in:
parent
5404d41486
commit
95b667c5b9
74 changed files with 4210 additions and 3942 deletions
|
|
@ -1,10 +1,4 @@
|
|||
on charger
|
||||
stop vendor.sensors
|
||||
chown radio wakelock /sys/power/wake_lock
|
||||
chmod 0660 /sys/power/wake_lock
|
||||
chown radio wakelock /sys/power/wake_unlock
|
||||
chmod 0660 /sys/power/wake_unlock
|
||||
|
||||
start vendor.thermal-com
|
||||
start system_suspend
|
||||
|
||||
|
|
@ -19,10 +13,6 @@ on charger
|
|||
write /sys/devices/system/cpu/cpu6/online 0
|
||||
write /sys/devices/system/cpu/cpu7/online 0
|
||||
|
||||
# Allow system to sleep when in COM
|
||||
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
||||
write /proc/sys/kernel/sched_boost 0
|
||||
|
||||
service vendor.thermal-com /vendor/bin/thermal-engine --minimode
|
||||
class charger
|
||||
user root
|
||||
|
|
|
|||
|
|
@ -3,11 +3,25 @@ import /vendor/etc/init/hw/init.mmi.charge_only.rc
|
|||
|
||||
on post-fs
|
||||
# MOT_LED_CALIBRATION
|
||||
chown camera /mnt/vendor/persist/camera/mot_ledcal
|
||||
chown camera camera /mnt/vendor/persist/camera/mot_ledcal
|
||||
|
||||
on early-init
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules exfat
|
||||
|
||||
#Enable qpnp_smbcharger_mmi debug
|
||||
write /sys/module/qpnp_smbcharger_mmi/parameters/debug_enabled Y
|
||||
on property:ro.boot.default_usb_mode=device && property:vendor.usb.controller=*
|
||||
setprop sys.usb.controller ${vendor.usb.controller}
|
||||
write /sys/class/udc/${vendor.usb.controller}/device/../mode peripheral
|
||||
|
||||
#sync power supply with healthd
|
||||
wait /sys/class/power_supply/battery
|
||||
wait /sys/class/power_supply/usb
|
||||
|
||||
on early-boot && property:ro.boot.bm_ulog_enabled=1
|
||||
write /sys/module/bm_adsp_ulog/parameters/debug_enabled 1
|
||||
|
||||
on charger && property:ro.boot.bm_ulog_enabled=1
|
||||
write /sys/module/bm_adsp_ulog/parameters/debug_enabled 1
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
write /sys/devices/platform/soc/soc:mmi,charger/state_sync 1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2009-2012, 2014-2021, The Linux Foundation. All rights reserved.
|
||||
# Copyright (c) 2009-2012, 2014-2020, 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:
|
||||
|
|
@ -240,7 +240,7 @@ on post-fs-data
|
|||
mkdir /data/vendor/pwr 0700 root root
|
||||
|
||||
# Create directory used by media clients
|
||||
mkdir /data/vendor/media 0775 mediacodec media
|
||||
mkdir /data/vendor/media 0770 mediacodec media
|
||||
|
||||
# Create /data/vendor/tzstorage directory for SFS listener
|
||||
mkdir /data/vendor/tzstorage 0770 system system
|
||||
|
|
@ -689,23 +689,6 @@ on property:vendor.opengles.version=*
|
|||
on property:vendor.gpu.available_frequencies=*
|
||||
setprop ro.vendor.gpu.available_frequencies ${vendor.gpu.available_frequencies}
|
||||
|
||||
# huangzq2: GPU trubo
|
||||
on property:vendor.gpu.turbo_enabled=1
|
||||
setprop vendor.thermal.mode perf
|
||||
stop thermal-engine
|
||||
start thermal-engine
|
||||
|
||||
on property:vendor.gpu.turbo_enabled=0
|
||||
setprop vendor.thermal.mode normal
|
||||
stop thermal-engine
|
||||
start thermal-engine
|
||||
|
||||
on property:vendor.gpu.turbo_supported=1 && property:vendor.gpu.turbo_enabled=1
|
||||
write /sys/class/kgsl/kgsl-3d0/max_pwrlevel 0
|
||||
|
||||
on property:vendor.gpu.turbo_supported=1 && property:vendor.gpu.turbo_enabled=0
|
||||
write /sys/class/kgsl/kgsl-3d0/max_pwrlevel 1
|
||||
|
||||
service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
|
||||
override
|
||||
class hal
|
||||
|
|
|
|||
174
rootdir/etc/init/hw/init.qti.kernel.rc
Normal file
174
rootdir/etc/init/hw/init.qti.kernel.rc
Normal file
|
|
@ -0,0 +1,174 @@
|
|||
#=============================================================================
|
||||
# Copyright (c) 2019-2021 Qualcomm Technologies, Inc.
|
||||
# All Rights Reserved.
|
||||
# Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||
#
|
||||
# Copyright (c) 2009-2012, 2014-2019, 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 BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 early-init
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
chmod 0755 /sys/kernel/debug
|
||||
|
||||
# Mount tracefs in /sys/kernel/tracing as CONFIG_DEBUG_FS might be
|
||||
# disabled and /sys/kernel/debug/tracing might not be available
|
||||
mount tracefs tracefs /sys/kernel/tracing
|
||||
chmod 0755 /sys/kernel/tracing
|
||||
|
||||
chown root system /dev/kmsg
|
||||
chmod 0620 /dev/kmsg
|
||||
|
||||
write /proc/sys/kernel/sched_boost 1
|
||||
|
||||
write /proc/sys/kernel/firmware_config/force_sysfs_fallback 1
|
||||
|
||||
on init
|
||||
# Create cgroup mount point for memory
|
||||
mkdir /sys/fs/cgroup/memory/bg 0750 root system
|
||||
write /sys/fs/cgroup/memory/bg/memory.swappiness 140
|
||||
write /sys/fs/cgroup/memory/bg/memory.move_charge_at_immigrate 1
|
||||
chown root system /sys/fs/cgroup/memory/bg/tasks
|
||||
chmod 0660 /sys/fs/cgroup/memory/bg/tasks
|
||||
|
||||
# update scheduler tunables
|
||||
write /dev/cpuctl/foreground/cpu.uclamp.sched_boost_no_override 1
|
||||
write /dev/cpuctl/top-app/cpu.uclamp.sched_boost_no_override 1
|
||||
write /dev/cpuctl/background/cpu.uclamp.colocate 0
|
||||
write /dev/cpuctl/foreground/cpu.uclamp.colocate 0
|
||||
write /dev/cpuctl/top-app/cpu.uclamp.colocate 1
|
||||
|
||||
on post-fs
|
||||
chmod 0755 /sys/kernel/debug/tracing
|
||||
|
||||
# set aggressive read ahead for dm-0 and dm-1 during boot up
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 2048
|
||||
|
||||
on early-boot
|
||||
# Allow subsystem (modem etc) debugging
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
write /sys/kernel/boot_cdsp/boot 1
|
||||
write /sys/kernel/boot_slpi/boot 1
|
||||
write /sys/devices/virtual/cvp/cvp/boot 1
|
||||
|
||||
on boot
|
||||
# Set the console loglevel to < KERN_WARN
|
||||
# Set the default message loglevel to KERN_INFO
|
||||
write /proc/sys/kernel/printk "4 6 1 7"
|
||||
|
||||
# Allow access to emmc rawdump block partition and dload sysfs node
|
||||
chown root system /dev/block/bootdevice/by-name/rawdump
|
||||
chmod 0660 /dev/block/bootdevice/by-name/rawdump
|
||||
chown root system /sys/kernel/dload/emmc_dload
|
||||
chmod 0660 /sys/kernel/dload/emmc_dload
|
||||
chown root system /dev/block/bootdevice/by-name/ramdump
|
||||
chmod 0660 /dev/block/bootdevice/by-name/ramdump
|
||||
chown root system /sys/kernel/dload/dload_mode
|
||||
chmod 0660 /sys/kernel/dload/dload_mode
|
||||
|
||||
# set the io-scheduler to bfq on all mq support devices
|
||||
write /sys/block/sda/queue/scheduler bfq
|
||||
write /sys/block/sdb/queue/scheduler bfq
|
||||
write /sys/block/sdc/queue/scheduler bfq
|
||||
write /sys/block/sdd/queue/scheduler bfq
|
||||
write /sys/block/sde/queue/scheduler bfq
|
||||
write /sys/block/sdf/queue/scheduler bfq
|
||||
write /sys/block/sdg/queue/scheduler bfq
|
||||
write /sys/block/sdh/queue/scheduler bfq
|
||||
write /sys/class/block/mmcblk0/queue/scheduler bfq
|
||||
write /sys/class/block/mmcblk1/queue/scheduler bfq
|
||||
|
||||
# update io-scheduler tunables
|
||||
write /sys/block/sda/queue/iosched/slice_idle 0
|
||||
write /sys/block/sdb/queue/iosched/slice_idle 0
|
||||
write /sys/block/sdc/queue/iosched/slice_idle 0
|
||||
write /sys/block/sdd/queue/iosched/slice_idle 0
|
||||
write /sys/block/sde/queue/iosched/slice_idle 0
|
||||
write /sys/block/sdf/queue/iosched/slice_idle 0
|
||||
write /sys/block/sdg/queue/iosched/slice_idle 0
|
||||
write /sys/block/sdh/queue/iosched/slice_idle 0
|
||||
write /sys/class/block/mmcblk0/queue/iosched/slice_idle 0
|
||||
write /sys/class/block/mmcblk1/queue/iosched/slice_idle 0
|
||||
|
||||
on post-fs-data
|
||||
# Create directory used for dump collection
|
||||
mkdir /data/vendor/ssrdump 0770 root system
|
||||
|
||||
on property:persist.sys.ssr.enable_debug=*
|
||||
write /sys/module/subsys_pil_tz/parameters/enable_debug ${persist.sys.ssr.enable_debug}
|
||||
|
||||
on property:persist.sys.mba_boot_timeout=*
|
||||
write /sys/module/pil_msa/parameters/pbl_mba_boot_timeout_ms ${persist.sys.mba_boot_timeout}
|
||||
|
||||
on property:persist.sys.modem_auth_timeout=*
|
||||
write /sys/module/pil_msa/parameters/modem_auth_timeout_ms ${persist.sys.modem_auth_timeout}
|
||||
|
||||
on property:persist.sys.pil_proxy_timeout=*
|
||||
write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout}
|
||||
|
||||
on property:persist.vendor.ssr.enable_ramdumps=1
|
||||
write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
|
||||
|
||||
on property:persist.vendor.ssr.enable_ramdumps=0
|
||||
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
|
||||
|
||||
on property:persist.vendor.sys.rawdump_copy=1
|
||||
write /sys/kernel/dload/emmc_dload 1
|
||||
|
||||
on property:persist.vendor.sys.rawdump_copy=0
|
||||
write /sys/kernel/dload/emmc_dload 0
|
||||
|
||||
service kernel-boot /vendor/bin/sh /vendor/bin/init.qti.kernel.sh
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service kernel-post-boot /vendor/bin/sh /vendor/bin/init.kernel.post_boot.sh
|
||||
class core
|
||||
user root
|
||||
group root system wakelock graphics
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
write /dev/kmsg "Boot completed "
|
||||
#Reset read ahead for dm-0, dm-1 and dm-2 to 512kb
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 512
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 512
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 512
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
start kernel-boot
|
||||
start kernel-post-boot
|
||||
|
||||
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf
|
||||
class core
|
||||
user root
|
||||
group root
|
||||
disabled
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
# Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
||||
# Copyright (c) 2019-2020, 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
|
||||
|
|
@ -29,20 +29,42 @@
|
|||
#
|
||||
import /vendor/etc/init/hw/init.mmi.rc
|
||||
|
||||
import /vendor/etc/init/hw/init.qti.kernel.rc
|
||||
|
||||
on early-init
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules audio_q6_pdr audio_q6_notifier audio_snd_event audio_apr audio_adsp_loader audio_q6 audio_native audio_usf audio_pinctrl_wcd audio_pinctrl_lpi audio_swr audio_platform audio_hdmi audio_stub audio_wcd_core audio_wsa881x audio_bolero_cdc audio_wsa_macro audio_va_macro audio_rx_macro audio_tx_macro audio_wcd938x audio_wcd938x_slave audio_machine_kona
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/vendor_modprobe.sh
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules q6_pdr_dlkm q6_notifier_dlkm snd_event_dlkm apr_dlkm adsp_loader_dlkm q6_dlkm native_dlkm pinctrl_wcd_dlkm pinctrl_lpi_dlkm swr_dlkm platform_dlkm hdmi_dlkm stub_dlkm wcd_core_dlkm wsa883x_dlkm bolero_cdc_dlkm wsa_macro_dlkm va_macro_dlkm rx_macro_dlkm tx_macro_dlkm bt_fm_slim wcd938x_dlkm wcd938x_slave_dlkm wcd937x_dlkm wcd937x_slave_dlkm swr_dmic_dlkm swr_haptics_dlkm machine_dlkm radio-i2c-rtc6226-qca cdsprm
|
||||
write /proc/sys/kernel/sched_boost 1
|
||||
wait /sys/devices/soc0/soc_id
|
||||
|
||||
on init
|
||||
write /dev/stune/foreground/schedtune.sched_boost_no_override 1
|
||||
write /dev/stune/top-app/schedtune.sched_boost_no_override 1
|
||||
write /dev/stune/schedtune.colocate 0
|
||||
write /dev/stune/background/schedtune.colocate 0
|
||||
write /dev/stune/system-background/schedtune.colocate 0
|
||||
write /dev/stune/foreground/schedtune.colocate 0
|
||||
write /dev/stune/top-app/schedtune.colocate 1
|
||||
wait /dev/block/platform/soc/1d84000.ufshc
|
||||
symlink /dev/block/platform/soc/1d84000.ufshc /dev/block/bootdevice
|
||||
# Scheduler uclamp
|
||||
mkdir /dev/cpuctl/foreground
|
||||
mkdir /dev/cpuctl/background
|
||||
mkdir /dev/cpuctl/top-app
|
||||
mkdir /dev/cpuctl/rt
|
||||
chown system system /dev/cpuctl
|
||||
chown system system /dev/cpuctl/foreground
|
||||
chown system system /dev/cpuctl/background
|
||||
chown system system /dev/cpuctl/top-app
|
||||
chown system system /dev/cpuctl/rt
|
||||
chown system system /dev/cpuctl/tasks
|
||||
chown system system /dev/cpuctl/foreground/tasks
|
||||
chown system system /dev/cpuctl/background/tasks
|
||||
chown system system /dev/cpuctl/top-app/tasks
|
||||
chown system system /dev/cpuctl/rt/tasks
|
||||
chmod 0664 /dev/cpuctl/tasks
|
||||
chmod 0664 /dev/cpuctl/foreground/tasks
|
||||
chmod 0664 /dev/cpuctl/background/tasks
|
||||
chmod 0664 /dev/cpuctl/top-app/tasks
|
||||
chmod 0664 /dev/cpuctl/rt/tasks
|
||||
write /dev/cpuctl/foreground/cpu.rt_runtime_us 950000
|
||||
write /dev/cpuctl/background/cpu.rt_runtime_us 950000
|
||||
write /dev/cpuctl/top-app/cpu.rt_runtime_us 950000
|
||||
write /dev/cpuctl/rt/cpu.rt_runtime_us 950000
|
||||
|
||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
chown system system /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
|
||||
chmod 0660 /sys/devices/platform/soc/1d84000.ufshc/auto_hibern8
|
||||
start logd
|
||||
|
|
@ -53,70 +75,89 @@ on early-fs
|
|||
on fs
|
||||
start hwservicemanager
|
||||
mkdir /mnt/vendor/spunvm 0660 system system
|
||||
mount_all /vendor/etc/fstab.qcom --early
|
||||
mount_all --early
|
||||
chown root system /mnt/vendor/persist
|
||||
chmod 0771 /mnt/vendor/persist
|
||||
restorecon_recursive /mnt/vendor/persist
|
||||
mkdir /mnt/vendor/persist/data 0700 system system
|
||||
|
||||
on fs && property:ro.boot.product.vendor.sku=lahaina
|
||||
mkdir /mnt/vendor/spunvm 0660 system system
|
||||
wait /dev/block/bootdevice/by-name/spunvm
|
||||
mount vfat /dev/block/bootdevice/by-name/spunvm /mnt/vendor/spunvm rw noatime shortname=lower,uid=1000,gid=1000,dmask=007,fmask=007,context=u:object_r:vendor_spunvm_file:s0
|
||||
|
||||
on post-fs
|
||||
# set RLIMIT_MEMLOCK to 64MB
|
||||
setrlimit 8 67108864 67108864
|
||||
write /dev/ipa 1
|
||||
|
||||
on late-fs
|
||||
wait_for_prop hwservicemanager.ready true
|
||||
exec_start wait_for_keymaster
|
||||
mount_all /vendor/etc/fstab.qcom --late
|
||||
#exec_start wait_for_keymaster
|
||||
mount_all --late
|
||||
|
||||
on post-fs-data
|
||||
mkdir /vendor/data/tombstones 0771 system system
|
||||
# Enable WLAN cold boot calibration
|
||||
write /sys/devices/platform/soc/b0000000.qcom,cnss-qca6390/fs_ready 1
|
||||
write /sys/devices/platform/soc/b0000000.qcom,cnss-qca6490/fs_ready 1
|
||||
|
||||
# Motorola: disable vendor.sensors by default and move the start to init.qcom.rc
|
||||
# Disabling by default will ensure that we do not start vendor.sensors in
|
||||
# Charge-Only-Mode
|
||||
#on early-boot
|
||||
# start vendor.sensors
|
||||
on early-boot
|
||||
start vendor.sensors
|
||||
|
||||
on boot
|
||||
# CPUset policy is "spread" for foreground/top, "pack" for background/system
|
||||
# Cores 0-3 are silver, 4-6 are gold, 7 is gold+
|
||||
# Keep 1 reserved for top (gold+)
|
||||
# Keep 1 for system/background (silver)
|
||||
write /dev/cpuset/top-app/cpus 0-7
|
||||
write /dev/cpuset/foreground/cpus 1-6
|
||||
write /dev/cpuset/background/cpus 0-3
|
||||
write /dev/cpuset/system-background/cpus 0-3
|
||||
write /dev/cpuset/audio-app/cpus 1-2
|
||||
# Add a cpuset for the camera daemon
|
||||
# We want all cores for camera
|
||||
mkdir /dev/cpuset/camera-daemon
|
||||
write /dev/cpuset/camera-daemon/cpus 0-3
|
||||
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
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0049/trusted_touch_event
|
||||
chown system /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/990000.i2c/i2c-0/0-0038/trusted_touch_event
|
||||
chown system /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/988000.i2c/i2c-1/1-0038/trusted_touch_event
|
||||
chown system /sys/devices/platform/soc/a94000.i2c/i2c-2/2-0062/trusted_touch_enable
|
||||
chmod 0660 /sys/devices/platform/soc/a94000.i2c/i2c-2/2-0062/trusted_touch_enable
|
||||
chown system /sys/devices/platform/soc/a94000.i2c/i2c-2/2-0062/trusted_touch_event
|
||||
chmod 0660 /sys/devices/platform/soc/a94000.i2c/i2c-2/2-0062/trusted_touch_event
|
||||
chown system /sys/devices/system/cpu/hyp_core_ctl/enable
|
||||
chown system /sys/devices/system/cpu/hyp_core_ctl/hcc_min_freq
|
||||
#USB controller configuration
|
||||
setprop vendor.usb.rndis.func.name "gsi"
|
||||
setprop vendor.usb.rmnet.func.name "gsi"
|
||||
setprop vendor.usb.rmnet.inst.name "rmnet"
|
||||
setprop vendor.usb.dpl.inst.name "dpl"
|
||||
setprop vendor.usb.qdss.inst.name "qdss"
|
||||
setprop vendor.usb.qdss.inst.name "qdss_mdm"
|
||||
setprop vendor.usb.controller a600000.dwc3
|
||||
# Load all wlan drivers
|
||||
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_qca6390 qca_cld3_qca6490
|
||||
#Load WLAN driver
|
||||
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_wlan qca_cld3_qca6390
|
||||
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki qca_cld3_wlan qca_cld3_qca6390
|
||||
#Allow access to memory hotplug device attributes
|
||||
chown system system /sys/kernel/mem-offline/anon_migrate
|
||||
|
||||
on boot && property:persist.vendor.usb.controller.default=*
|
||||
setprop vendor.usb.controller ${persist.vendor.usb.controller.default}
|
||||
|
||||
on init && property:ro.boot.mode=charger
|
||||
mount_all /vendor/etc/charger_fw_fstab.qti --early
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
wait /sys/class/power_supply/battery
|
||||
|
||||
on charger
|
||||
start vendor.power_off_alarm
|
||||
setprop sys.usb.controller a600000.dwc3
|
||||
setprop sys.usb.configfs 1
|
||||
|
||||
service vendor.lowi /vendor/bin/sscrpcd
|
||||
service vendor.lowi /vendor/bin/lowirpcd
|
||||
class core
|
||||
user system
|
||||
group system wakelock
|
||||
|
|
@ -126,7 +167,7 @@ service vendor.lowi /vendor/bin/sscrpcd
|
|||
service vendor.pd_mapper /vendor/bin/pd-mapper
|
||||
class core
|
||||
user system
|
||||
group system
|
||||
group system log diag
|
||||
|
||||
#Peripheral manager
|
||||
service vendor.per_mgr /vendor/bin/pm-service
|
||||
|
|
@ -141,10 +182,10 @@ service vendor.per_proxy /vendor/bin/pm-proxy
|
|||
group system
|
||||
disabled
|
||||
|
||||
service vendor.mdm_helper /vendor/bin/mdm_helper
|
||||
class core
|
||||
group log system wakelock diag vendor_rfs
|
||||
disabled
|
||||
#service vendor.mdm_helper /vendor/bin/mdm_helper
|
||||
# class core
|
||||
# group log system wakelock diag vendor_rfs
|
||||
# disabled
|
||||
|
||||
service vendor.mdm_launcher /vendor/bin/sh /vendor/bin/init.mdm.sh
|
||||
class core
|
||||
|
|
@ -156,12 +197,15 @@ on property:init.svc.vendor.per_mgr=running
|
|||
on property:sys.shutdown.requested=*
|
||||
stop vendor.per_proxy
|
||||
|
||||
service dcvs-sh /vendor/bin/init.qti.dcvs.sh
|
||||
#fan-controller
|
||||
service fan_control_turn_on /vendor/bin/fan_control 1
|
||||
class late_start
|
||||
user root
|
||||
group root system
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
on property:vendor.dcvs.prop=1
|
||||
start dcvs-sh
|
||||
service fan_control_turn_off /vendor/bin/fan_control 0
|
||||
class late_start
|
||||
user root
|
||||
disabled
|
||||
oneshot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue