device_google_caimito/conf/init.komodo.rc
Darren Hsu ac99727658 odpm: replace MMWAVE rail with AUR rail for SUB6 only sku
Bug: 323103160
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I9e8bacce73f1b81c1c6b8ce7fbf1bc8fef8ec40c
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2024-02-01 02:00:36 +00:00

77 lines
2.6 KiB
Text

# Komodo specific init.rc
import /vendor/etc/init/hw/init.${ro.board.platform}.board.rc
on init && property:ro.vendor.factory=1
import /vendor/etc/init/hw/init.factory.rc
on init && property:ro.boot.hardware.platform=zuma
setprop vendor.powerhal.config powerhint-proto.json
on init
# eSE streset tool name
setprop persist.vendor.se.streset libstreset24
# No se_chip_en for P1.0
on late-init && property:ro.boot.hardware.revision=PROTO1.0
setprop persist.vendor.se.reset.chip_en false
# Display permission for SSC mode
chown system system /sys/class/backlight/panel0-backlight/ssc_mode
chmod 664 /sys/class/backlight/panel0-backlight/ssc_mode
on early-boot
# Wait for insmod_sh to finish all common modules
wait_for_prop vendor.common.modules.ready 1
start insmod_sh_komodo
service insmod_sh_komodo /vendor/bin/insmod.sh /vendor_dlkm/etc/init.insmod.${ro.hardware}.cfg
class main
user root
group root system
disabled
oneshot
on property:vendor.mfgapi.touchpanel.permission=1
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
chown system system /sys/devices/virtual/sec/tsp/cmd
# Permissions for display
on fs
chown system system /sys/class/backlight/panel0-backlight/acl_mode
# WiFi
on post-fs-data
setprop wifi.direct.interface p2p-dev-wlan0
setprop wifi.aware.interface aware_nmi0
# Speaker amp permission
chmod 644 /mnt/vendor/persist/audio/speaker.cal
# Bluetooth
on post-fs-data
chown bluetooth system /proc/bluetooth/timesync
# Thermal
on late-init && property:ro.boot.hardware.revision=PROTO1.0
setprop vendor.thermal.config "thermal_info_config_proto.json"
on late-init && property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.thermal.config "thermal_info_config_proto.json"
# Toggle high_sensitivity according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1
# ODPM
on early-boot && property:ro.boot.hardware.sku=GZC4K
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
on early-boot && property:ro.boot.hardware.sku=GQ57S
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
# Start the twoshay touch service
on property:sys.boot_completed=1
chown system input /dev/touch_offload
chmod 660 /dev/touch_offload
start twoshay