device_google_raviole/conf/init.oriole.rc
Jacky Liu 78c26013fa Update i2c device paths
Update i2c device paths with static bus numbers.
Also remove some redundant paths.

Bug: 323447554
Test: Boot to home
Change-Id: Ibe1f5060daa45a7d19be08bd60c3f3a615427632
Signed-off-by: Jacky Liu <qsliu@google.com>
2024-02-06 16:20:12 +00:00

33 lines
1.3 KiB
Text

# Oriole specific init.rc
import /vendor/etc/init/hw/init.gs101.rc
import /vendor/etc/init/hw/init.raviole.rc
on init
# nvmem dump
chown system system /sys/bus/nvmem/devices/8-00500/nvmem
on init && property:ro.boot.vh_sched_available=0
setprop vendor.powerhal.config powerhint-mainline.json
# Toggle glove_mode according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
# Thermal
on late-init && property:ro.boot.hardware.revision=PROTO1.0
setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
on late-init && property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.disable.usb.overheat.mitigation.control 1
on late-init && property:ro.boot.hardware.revision=EVT1.0
setprop vendor.disable.usb.overheat.mitigation.control 1
# For Japan sku, always enforce camera shutter sound
# Since this property is read by the audio server in system service,
# it should be written by the system init.
on property:ro.boot.hardware.sku=GR1YH
setprop audio.camerasound.force true