blob: a68876fc9c3f00f3c9705af6215359f5a1e27f70 [file] [log] [blame]
Robin Pengcd374d82021-02-23 20:00:46 +08001# Oriole specific init.rc
2import /vendor/etc/init/hw/init.gs101.rc
Robin Peng334022f2021-05-05 12:01:32 +08003import /vendor/etc/init/hw/init.raviole.rc
Robin Pengcd374d82021-02-23 20:00:46 +08004
5on init
Ted Lin317f2212021-06-09 11:56:55 +08006 # nvmem dump
Jacky Liu78c26012024-02-02 12:59:20 +08007 chown system system /sys/bus/nvmem/devices/8-00500/nvmem
Robin Pengcd374d82021-02-23 20:00:46 +08008
André Draszike3f5d8a2023-06-19 15:55:08 +01009on init && property:ro.boot.vh_sched_available=0
10 setprop vendor.powerhal.config powerhint-mainline.json
11
Tai Kuo7c202b22021-03-12 16:30:19 +080012# Toggle glove_mode according to touch_sensitivity_mode
13on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
14 write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
15
16on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
17 write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
TeYuan Wang60d11bc2021-03-30 17:14:52 +080018
TeYuan Wangbc7c2062021-08-27 13:26:51 +080019# Thermal
TeYuan Wang60d11bc2021-03-30 17:14:52 +080020on late-init && property:ro.boot.hardware.revision=PROTO1.0
21 setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
Cyan_Hsiehf3cb3c12021-06-08 16:45:14 +080022
TeYuan Wangbc7c2062021-08-27 13:26:51 +080023on late-init && property:ro.boot.hardware.revision=PROTO1.1
24 setprop vendor.disable.usb.overheat.mitigation.control 1
25
26on late-init && property:ro.boot.hardware.revision=EVT1.0
27 setprop vendor.disable.usb.overheat.mitigation.control 1
28
Cyan_Hsiehf3cb3c12021-06-08 16:45:14 +080029# For Japan sku, always enforce camera shutter sound
30# Since this property is read by the audio server in system service,
31# it should be written by the system init.
32on property:ro.boot.hardware.sku=GR1YH
33 setprop audio.camerasound.force true