2021-10-25 19:10:38 +09:00
|
|
|
# Lynx specific init.rc
|
|
|
|
import /vendor/etc/init/hw/init.gs201.rc
|
|
|
|
|
|
|
|
on init
|
|
|
|
# NFC streset tool name
|
|
|
|
setprop persist.vendor.nfc.streset libstreset21
|
|
|
|
setprop persist.vendor.se.streset libstreset21
|
2022-11-04 12:47:31 +09:00
|
|
|
setprop dalvik.vm.dexopt.thermal-cutoff 1
|
2021-10-25 19:10:38 +09:00
|
|
|
|
|
|
|
# When ro.build.flavor=factory_lynx-userdebug, add vendor/bin/factory to default path
|
|
|
|
on init && property:ro.build.flavor=factory_lynx-userdebug
|
|
|
|
export PATH /product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/vendor/bin/factory
|
|
|
|
|
|
|
|
on early-boot
|
|
|
|
# Wait for insmod_sh to finish all common modules
|
|
|
|
wait_for_prop vendor.common.modules.ready 1
|
|
|
|
start insmod_sh_lynx
|
|
|
|
|
2022-09-06 13:44:45 +09:00
|
|
|
service insmod_sh_lynx /vendor/bin/insmod.sh /vendor/etc/init.insmod.lynx.cfg
|
2021-10-25 19:10:38 +09:00
|
|
|
class main
|
|
|
|
user root
|
|
|
|
group root system
|
|
|
|
disabled
|
|
|
|
oneshot
|
|
|
|
|
|
|
|
on boot && property:ro.build.flavor=factory_lynx-userdebug
|
|
|
|
# FTM log folder
|
|
|
|
mkdir /data/ftmlog 0775 system system
|
|
|
|
|
|
|
|
# Audio test folder
|
|
|
|
mkdir /data/AudioTest 0775 system system
|
|
|
|
|
2022-07-01 13:05:58 +09:00
|
|
|
# Start the twoshay touch service
|
2022-07-20 13:48:36 +09:00
|
|
|
on property:vendor.device.modules.ready=1
|
2022-07-01 13:05:58 +09:00
|
|
|
start twoshay
|
|
|
|
|
2021-10-25 19:10:38 +09:00
|
|
|
on property:vendor.mfgapi.touchpanel.permission=1
|
|
|
|
chmod 0600 /sys/devices/virtual/sec/tsp/cmd
|
|
|
|
chown system system /sys/devices/virtual/sec/tsp/cmd
|
|
|
|
|
2022-07-20 16:21:04 +09:00
|
|
|
# SecureElement eSE2 cts mode
|
|
|
|
on property:persist.vendor.se.ese2.mode=ctsmode
|
|
|
|
write /sys/class/st33spi/st33spi/st33spi_state 33
|
|
|
|
|
2022-06-13 21:05:02 +09:00
|
|
|
# Allow secure_element group to read / write ST33 SPI state
|
|
|
|
on post-fs-data
|
|
|
|
chown secure_element secure_element /sys/class/st33spi/st33spi/st33spi_state
|
|
|
|
chmod 0660 /sys/class/st33spi/st33spi/st33spi_state
|
|
|
|
|
2021-12-06 00:48:11 +09:00
|
|
|
# Wifi
|
2022-08-31 16:28:15 +09:00
|
|
|
on property:sys.boot_completed=1
|
2021-12-06 00:48:11 +09:00
|
|
|
write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1
|
2022-09-02 22:21:20 +09:00
|
|
|
|
|
|
|
on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1
|
|
|
|
write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1
|
2022-03-03 11:20:19 +09:00
|
|
|
# Create directories for wifihal services
|
|
|
|
mkdir /dev/socket/wifihal 0770 wifi wifi
|
|
|
|
chmod 2777 /dev/socket/wifihal
|
|
|
|
# Create directories for Location services
|
|
|
|
mkdir /dev/socket/location 0770 wifi wifi
|
|
|
|
chmod 2777 /dev/socket/location
|
|
|
|
mkdir /dev/socket/location/mq 0770 wifi wifi
|
|
|
|
chmod 2777 /dev/socket/location/mq
|
|
|
|
start vendor.loc_launcher
|
|
|
|
|
|
|
|
# Start loc_launcher to launch lowi-server
|
|
|
|
service vendor.loc_launcher /system/vendor/bin/loc_launcher
|
|
|
|
class late_start
|
|
|
|
user wifi
|
|
|
|
group wifi
|
|
|
|
disabled
|
2022-06-24 19:08:22 +09:00
|
|
|
|
2023-02-13 18:19:52 +09:00
|
|
|
# Start cnss-daemon for CHRE
|
|
|
|
service vendor.cnss-daemon /vendor/bin/cnss-daemon -n -l
|
|
|
|
class late_start
|
|
|
|
user system
|
|
|
|
group system inet wifi
|
|
|
|
|
2022-06-24 19:08:22 +09:00
|
|
|
# Toggle high_sensitivity according to touch_sensitivity_mode
|
|
|
|
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
|
|
|
|
write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0
|
|
|
|
|
|
|
|
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
|
|
|
|
write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1
|
2022-07-29 19:19:33 +09:00
|
|
|
|
2022-09-29 15:24:08 +09:00
|
|
|
# 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=G82U8
|
|
|
|
setprop audio.camerasound.force true
|
2022-11-03 07:21:50 +09:00
|
|
|
|
2023-01-18 18:02:49 +09:00
|
|
|
# Haptics
|
|
|
|
on property:vendor.all.modules.ready=1
|
|
|
|
mkdir /mnt/vendor/persist/haptics 0770 system system
|
|
|
|
chmod 770 /mnt/vendor/persist/haptics
|
|
|
|
chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal
|
|
|
|
chown system system /mnt/vendor/persist/haptics
|
|
|
|
chown system system /mnt/vendor/persist/haptics/cs40l26.cal
|
|
|
|
|
2024-02-05 21:52:00 +09:00
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/calibration/f0_stored
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/calibration/q_stored
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/calibration/redc_stored
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/vibe_state
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/num_waves
|
2024-05-23 12:34:06 +09:00
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_bank
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_index
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_ms
|
2024-02-05 21:52:00 +09:00
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/f0_offset
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/owt_free_space
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/f0_comp_enable
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/redc_comp_enable
|
|
|
|
chown system system /sys/bus/i2c/devices/8-0043/default/delay_before_stop_playback_us
|
2023-01-18 18:02:49 +09:00
|
|
|
|
|
|
|
enable vendor.vibrator.cs40l26
|