blob: 1724b5f7056f61b9cb26149e90f56655053b936c [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
Tai Kuo7c202b22021-03-12 16:30:19 +080011# Toggle glove_mode according to touch_sensitivity_mode
12on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
13 write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
14
15on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
16 write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
TeYuan Wang60d11bc2021-03-30 17:14:52 +080017
18on late-init && property:ro.boot.hardware.revision=PROTO1.0
19 setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
Cyan_Hsiehf3cb3c12021-06-08 16:45:14 +080020
21# For Japan sku, always enforce camera shutter sound
22# Since this property is read by the audio server in system service,
23# it should be written by the system init.
24on property:ro.boot.hardware.sku=GR1YH
25 setprop audio.camerasound.force true