android_device_motorola_milanf/init/init.mmi.overlay.rc
Anand S 3c6ac1c248
bangkk: Correct double tap and udfps nodes
Change-Id: I323ffa5a0e4a33ee73005d12cdb3f919845b6bdb
2025-04-07 23:22:49 +03:00

128 lines
5.5 KiB
Text

on post-fs
chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable
chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq
# Sensors
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_enabled
chown system system /sys/devices/platform/soc/4a80000.spi/spi_master/spi0/spi0.0/touchscreen/primary/udfps_pressed
on post-fs-data
chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en
# touch api
chown system system /sys/class/touchscreen/primary/interpolation
chmod 0660 /sys/class/touchscreen/primary/interpolation
chown system system /sys/class/touchscreen/primary/first_filter
chmod 0660 /sys/class/touchscreen/primary/first_filter
chown system system /sys/class/touchscreen/primary/edge
chmod 0660 /sys/class/touchscreen/primary/edge
# change permission for stylus
chown system system /sys/class/touchscreen/primary/palm_settings
# Change ownership and permission for bq25960-standalone factory testing
chown system system /sys/class/power_supply/bq25960-standalone/voltage_now
chown system system /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input
chmod 0644 /sys/class/power_supply/bq25960-standalone/voltage_now
chmod 0664 /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input
# Add for Egis Fod fingerprint
mkdir /data/vendor/egis 0770 system system
mkdir /mnt/vendor/persist/egis 0770 system system
mkdir /data/vendor/tzstorage/egis 0770 system system
mkdir /data/vendor/egis/cqa 0770 system system
# Add for after-sale ois gyro cal
mkdir /mnt/vendor/persist/camera/gyro_compat 0770 vendor_tcmd camera
# Add for OIS hall test result
mkdir /mnt/vendor/persist/camera/ois_hall 0770 vendor_tcmd camera
# Add for fod fps calibration
chown system system /sys/class/backlight/panel0-backlight/brightness
chown system system /sys/class/drm/card0-DSI-1/panelName
chown system system /sys/class/drm/card0-DSI-1/panelId
chown system system /d/dri/0/debug/motUtil
chmod 0666 /d/dri/0/debug/motUtil;
chmod 0666 /sys/class/backlight/panel0-backlight/brightness
chmod 0666 /sys/class/drm/card0-DSI-1/panelName
chmod 0666 /sys/class/drm/card0-DSI-1/panelId
#bluetooth sar
write /data/vendor/radio/bluetooth_sar disable
chmod 0644 /data/vendor/radio/bluetooth_sar
chown radio /data/vendor/radio/bluetooth_sar
on early-init
insmod /vendor/lib/modules/leds_aw99703.ko
insmod /vendor/lib/modules/leds_lm3697.ko
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/${ro.vendor.mot.gki.path} zram
on boot
# vibrator hal need to access this sysfs node for AF noise issue
chown system system /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
chmod 0660 /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
# change permission for capsensor
chown system system /sys/class/capsense/reset
chown system system /sys/class/capsense/int_state
chown radio system /sys/class/capsense/reg
chown radio system /sys/class/capsense/fw_download_status
chown system system /sys/class/capsense/mode
chmod 0660 /sys/class/capsense/reset
chmod 0660 /sys/class/capsense/int_state
chmod 0660 /sys/class/capsense/reg
chmod 0660 /sys/class/capsense/fw_download_status
# touch
chown system system /sys/class/touchscreen/primary/interpolation
chmod 0660 /sys/class/touchscreen/primary/interpolation
chown system system /sys/class/touchscreen/primary/sample
chmod 0660 /sys/class/touchscreen/primary/sample
chown system system /sys/class/touchscreen/primary/edge
chmod 0660 /sys/class/touchscreen/primary/edge
chown system system /sys/class/touchscreen/primary/gesture
chmod 0660 /sys/class/touchscreen/primary/gesture
chmod 0660 /sys/class/capsense/mode
chmod 0666 /dev/gtp_tools
on fs
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rbs_fod_mmi.ko
on boot && property:ro.vendor.mot.gki.path=5.4-gki
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/nfc_i2c.ko
on late-init
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_parallel_charger_iio.ko
on early-boot
# Add for egis fingerprint
chown system system /dev/esfp0
chmod 0664 /dev/esfp0
chown system camera /dev/cci_intf
chmod 0660 /dev/cci_intf
on charger
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_parallel_charger_iio.ko
on post-fs-data && property:ro.boot.mode=charger
setprop persist.vendor.hvdcp_opti.start 1
service capsense_reset /vendor/bin/capsense_reset
class core
user system
group system input
disabled
on property:vendor.bluetooth.sar_state=connect
write /data/vendor/radio/bluetooth_sar connect
on property:vendor.bluetooth.sar_state=disconnect
write /data/vendor/radio/bluetooth_sar disconnect
on property:sys.boot_completed=1
start capsense_reset