blob: 23d1bff9672d8aae9f219b45142d6815eab95860 [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
6 # logbuffer
7 chown system system /dev/logbuffer_5-0057
Ted Lin317f2212021-06-09 11:56:55 +08008 # nvmem dump
Robin Pengcd374d82021-02-23 20:00:46 +08009 chown system system /sys/bus/nvmem/devices/4-00500/nvmem
10
André Draszike3f5d8a2023-06-19 15:55:08 +010011on init && property:ro.boot.vh_sched_available=0
12 setprop vendor.powerhal.config powerhint-mainline.json
13
Tai Kuo7c202b22021-03-12 16:30:19 +080014# Toggle glove_mode according to touch_sensitivity_mode
15on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
16 write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
17
18on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
19 write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
TeYuan Wang60d11bc2021-03-30 17:14:52 +080020
TeYuan Wangbc7c2062021-08-27 13:26:51 +080021# Thermal
TeYuan Wang60d11bc2021-03-30 17:14:52 +080022on late-init && property:ro.boot.hardware.revision=PROTO1.0
23 setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
Cyan_Hsiehf3cb3c12021-06-08 16:45:14 +080024
TeYuan Wangbc7c2062021-08-27 13:26:51 +080025on late-init && property:ro.boot.hardware.revision=PROTO1.1
26 setprop vendor.disable.usb.overheat.mitigation.control 1
27
28on late-init && property:ro.boot.hardware.revision=EVT1.0
29 setprop vendor.disable.usb.overheat.mitigation.control 1
30
Cyan_Hsiehf3cb3c12021-06-08 16:45:14 +080031# For Japan sku, always enforce camera shutter sound
32# Since this property is read by the audio server in system service,
33# it should be written by the system init.
34on property:ro.boot.hardware.sku=GR1YH
35 setprop audio.camerasound.force true