device_google_raviole/conf/init.oriole.rc
Cyan_Hsieh f3cb3c16fd Set audio.camerasound.force for JP devices
Test: set to JP sku and check No camera sound option
Bug: 188396079
Change-Id: Ic89a150701de17fb29130206c2e25ec929972e25
2021-06-08 16:46:27 +08:00

26 lines
1 KiB
Text

# Oriole specific init.rc
import /vendor/etc/init/hw/init.gs101.rc
import /vendor/etc/init/hw/init.raviole.rc
on init
# logbuffer
chown system system /dev/logbuffer_5-0057
# register/nvmem dump
chown system system /d/regmap/5-0036/registers
chown system system /sys/bus/nvmem/devices/4-00500/nvmem
# Toggle glove_mode according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /sys/class/spi_master/spi11/spi11.0/glove_mode 00
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
write /sys/class/spi_master/spi11/spi11.0/glove_mode 01
on late-init && property:ro.boot.hardware.revision=PROTO1.0
setprop vendor.thermal.config "thermal_info_config_WHI_A.json"
# For Japan sku, always enforce camera shutter sound
# Since this property is read by the audio server in system service,
# it should be written by the system init.
on property:ro.boot.hardware.sku=GR1YH
setprop audio.camerasound.force true