Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 1 | # Oriole specific init.rc |
| 2 | import /vendor/etc/init/hw/init.gs101.rc |
Robin Peng | 334022f | 2021-05-05 12:01:32 +0800 | [diff] [blame] | 3 | import /vendor/etc/init/hw/init.raviole.rc |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 4 | |
| 5 | on init |
| 6 | # logbuffer |
| 7 | chown system system /dev/logbuffer_5-0057 |
Ted Lin | 317f221 | 2021-06-09 11:56:55 +0800 | [diff] [blame] | 8 | # nvmem dump |
Robin Peng | cd374d8 | 2021-02-23 20:00:46 +0800 | [diff] [blame] | 9 | chown system system /sys/bus/nvmem/devices/4-00500/nvmem |
| 10 | |
André Draszik | e3f5d8a | 2023-06-19 15:55:08 +0100 | [diff] [blame^] | 11 | on init && property:ro.boot.vh_sched_available=0 |
| 12 | setprop vendor.powerhal.config powerhint-mainline.json |
| 13 | |
Tai Kuo | 7c202b2 | 2021-03-12 16:30:19 +0800 | [diff] [blame] | 14 | # Toggle glove_mode according to touch_sensitivity_mode |
| 15 | on 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 | |
| 18 | on 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 Wang | 60d11bc | 2021-03-30 17:14:52 +0800 | [diff] [blame] | 20 | |
TeYuan Wang | bc7c206 | 2021-08-27 13:26:51 +0800 | [diff] [blame] | 21 | # Thermal |
TeYuan Wang | 60d11bc | 2021-03-30 17:14:52 +0800 | [diff] [blame] | 22 | on late-init && property:ro.boot.hardware.revision=PROTO1.0 |
| 23 | setprop vendor.thermal.config "thermal_info_config_WHI_A.json" |
Cyan_Hsieh | f3cb3c1 | 2021-06-08 16:45:14 +0800 | [diff] [blame] | 24 | |
TeYuan Wang | bc7c206 | 2021-08-27 13:26:51 +0800 | [diff] [blame] | 25 | on late-init && property:ro.boot.hardware.revision=PROTO1.1 |
| 26 | setprop vendor.disable.usb.overheat.mitigation.control 1 |
| 27 | |
| 28 | on late-init && property:ro.boot.hardware.revision=EVT1.0 |
| 29 | setprop vendor.disable.usb.overheat.mitigation.control 1 |
| 30 | |
Cyan_Hsieh | f3cb3c1 | 2021-06-08 16:45:14 +0800 | [diff] [blame] | 31 | # 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. |
| 34 | on property:ro.boot.hardware.sku=GR1YH |
| 35 | setprop audio.camerasound.force true |