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