mirror of
https://github.com/Evolution-X-Devices/device_google_redbull
synced 2026-02-01 09:20:23 +00:00
init.insmod.cfg: split out init.insmod.charger.rc
Create charger_insmod_sh service. Copy a minimal set of operations for charger into init.insmod.charger.rc, most notably do not start adsp and cdsp as they contribute to a power drain. Bug: 159424228 Test: confirm charger does not start adsp/cdsp Merged-In: I42953827a440ac3366bdf0819a00f04623881efd Change-Id: I42953827a440ac3366bdf0819a00f04623881efd
This commit is contained in:
@@ -226,4 +226,5 @@ BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true
|
||||
|
||||
# List of modules that should not load automatically
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/redbull/modules.blocklist:$(TARGET_COPY_OUT_VENDOR)/lib/modules/modules.blocklist
|
||||
device/google/redbull/modules.blocklist:$(TARGET_COPY_OUT_VENDOR)/lib/modules/modules.blocklist \
|
||||
device/google/redbull/init.insmod.charger.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.charger.cfg
|
||||
|
||||
@@ -46,7 +46,7 @@ on early-init && property:ro.revision="DEV1.0"
|
||||
on early-init && property:ro.boot.mode=charger
|
||||
setprop vendor.skip.init 1
|
||||
# Loading kernel modules in background
|
||||
start insmod_sh
|
||||
start charger_insmod_sh
|
||||
|
||||
on init && property:vendor.skip.init=0
|
||||
# Boot time fs tuning
|
||||
@@ -701,6 +701,13 @@ service insmod_sh /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.${ro.hardwa
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service charger_insmod_sh /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.charger.cfg
|
||||
class main
|
||||
user root
|
||||
group root system
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance.conf
|
||||
socket msm_irqbalance seqpacket 660 root system
|
||||
class core
|
||||
|
||||
8
init.insmod.charger.cfg
Normal file
8
init.insmod.charger.cfg
Normal file
@@ -0,0 +1,8 @@
|
||||
#############################################
|
||||
# init.insmod.cfg #
|
||||
# This file contains kernel modules to load #
|
||||
# at init time by init.insmod.sh script #
|
||||
#############################################
|
||||
|
||||
# Load kernel modules
|
||||
modprobe|-b *
|
||||
Reference in New Issue
Block a user