2022-02-17 04:22:49 -05:00
|
|
|
import /vendor/etc/init/hw/init.vendor.st21nfc.rc
|
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on early-init && property:ro.bootmode=mot-factory
|
|
|
|
insmod /vendor/lib/modules/moto_f_usbnet.ko
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on early-init
|
|
|
|
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/${ro.vendor.mot.gki.path} mmi_annotate mmi_info mmi_relay
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on early-init
|
|
|
|
insmod /vendor/lib/modules/bm_adsp_ulog.ko
|
|
|
|
insmod /vendor/lib/modules/mmi_charger.ko
|
|
|
|
insmod /vendor/lib/modules/qti_glink_charger.ko
|
2022-08-03 23:26:21 -04:00
|
|
|
insmod /vendor/lib/modules/aw882xx_k504.ko
|
2022-08-23 03:59:50 -04:00
|
|
|
insmod /vendor/lib/modules/cirrus_wm_adsp.ko
|
|
|
|
insmod /vendor/lib/modules/cirrus_cs35l41.ko
|
|
|
|
insmod /vendor/lib/modules/cirrus_cs35l45.ko
|
2022-02-17 04:22:49 -05:00
|
|
|
insmod /vendor/lib/modules/mmi_sys_temp.ko
|
2022-03-26 12:31:45 -04:00
|
|
|
insmod /vendor/lib/modules/wl2864c.ko
|
2022-08-03 23:26:21 -04:00
|
|
|
insmod /vendor/lib/modules/goodix_brl_mmi.ko
|
2022-03-26 12:31:45 -04:00
|
|
|
insmod /vendor/lib/modules/camera.ko
|
2022-08-03 23:26:21 -04:00
|
|
|
insmod /vendor/lib/modules/aw862x.ko
|
2022-03-26 12:31:45 -04:00
|
|
|
insmod /vendor/lib/modules/cci_intf.ko
|
|
|
|
insmod /vendor/lib/modules/qpnp_adaptive_charge.ko
|
|
|
|
start vendor.mmi_modules
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on fs
|
2022-08-03 23:26:21 -04:00
|
|
|
# egis fod ko
|
|
|
|
insmod /vendor/lib/modules/rbs_fps_mmi.ko
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-09-21 00:39:08 -04:00
|
|
|
on post-fs
|
|
|
|
# Sensors
|
|
|
|
chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_enabled
|
|
|
|
chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
|
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on post-fs-data
|
|
|
|
mkdir /mnt/vendor/persist/tof 0755 vendor_tcmd camera
|
|
|
|
chown vendor_tcmd camera /mnt/vendor/persist/tof/refspad_cal
|
|
|
|
chown vendor_tcmd camera /mnt/vendor/persist/tof/xtalk_g1_cal
|
|
|
|
chown vendor_tcmd camera /mnt/vendor/persist/tof/xtalk_shape_cal
|
|
|
|
chown vendor_tcmd camera /mnt/vendor/persist/tof/xtalk_production_cal
|
|
|
|
chown vendor_tcmd camera /mnt/vendor/persist/tof/offset_cal
|
|
|
|
chmod 0640 /mnt/vendor/persist/tof/refspad_cal
|
|
|
|
chmod 0640 /mnt/vendor/persist/tof/xtalk_g1_cal
|
|
|
|
chmod 0640 /mnt/vendor/persist/tof/xtalk_shape_cal
|
|
|
|
chmod 0640 /mnt/vendor/persist/tof/xtalk_production_cal
|
|
|
|
chmod 0640 /mnt/vendor/persist/tof/offset_cal
|
|
|
|
# Param updater data for various modules
|
|
|
|
mkdir /data/vendor/param 0775 system system
|
2022-08-03 23:26:21 -04:00
|
|
|
# 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 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
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on early-boot
|
2022-08-03 23:26:21 -04:00
|
|
|
# Add for egis fingerprint
|
|
|
|
chown system system /dev/esfp0
|
|
|
|
chmod 0664 /dev/esfp0
|
2022-02-17 04:22:49 -05:00
|
|
|
|
|
|
|
on boot
|
2022-03-26 12:31:45 -04:00
|
|
|
# allow TCMD to access cci for OIS test
|
|
|
|
chmod 0660 /dev/cci_intf
|
|
|
|
chown system camera /dev/cci_intf
|
|
|
|
|
|
|
|
#change adsp pmic test command file access permission
|
|
|
|
chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/tcmd
|
|
|
|
chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/force_pmic_icl
|
2022-08-03 23:26:21 -04:00
|
|
|
chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,battery_charger/force_charging_enable
|
2022-03-26 12:31:45 -04:00
|
|
|
chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/tcmd
|
|
|
|
chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/force_pmic_icl
|
2022-08-03 23:26:21 -04:00
|
|
|
chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,battery_charger/force_charging_enable
|
2022-03-26 12:31:45 -04:00
|
|
|
# Touch game mode control
|
|
|
|
chown system system /sys/class/touchscreen/primary/rotate
|
|
|
|
chmod 0660 /sys/class/touchscreen/primary/rotate
|
|
|
|
chown system system /sys/class/touchscreen/primary/interpolation
|
|
|
|
chmod 0660 /sys/class/touchscreen/primary/interpolation
|
|
|
|
chown system system /sys/class/touchscreen/primary/edge
|
|
|
|
chmod 0660 /sys/class/touchscreen/primary/edge
|
|
|
|
chown system system /sys/class/touchscreen/primary/first_filter
|
|
|
|
chmod 0660 /sys/class/touchscreen/primary/first_filter
|
2022-02-17 04:22:49 -05:00
|
|
|
# Set adaptive charging perms for HAL
|
2022-03-26 12:31:45 -04:00
|
|
|
chown system system /sys/module/qpnp_adaptive_charge/parameters/upper_limit
|
|
|
|
chown system system /sys/module/qpnp_adaptive_charge/parameters/lower_limit
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
service capsense_reset /system/vendor/bin/capsense_reset
|
|
|
|
class core
|
|
|
|
user system
|
|
|
|
group system input
|
|
|
|
disabled
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on property:sys.boot_completed=1
|
|
|
|
start capsense_reset
|
2022-02-17 04:22:49 -05:00
|
|
|
|
2022-03-26 12:31:45 -04:00
|
|
|
on property:persist.vendor.paramfile.parse_panel=1
|
|
|
|
write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dsi_display_parse_para "5"
|