mirror of
https://github.com/Evolution-X-Devices/device_motorola_rtwo
synced 2026-01-27 18:07:35 +00:00
eqs: update rootdir to S3SQ32.16-53-9
This commit is contained in:
@@ -1,31 +1,47 @@
|
|||||||
import /vendor/etc/init/hw/init.vendor.st21nfc.rc
|
import /vendor/etc/init/hw/init.vendor.st21nfc.rc
|
||||||
|
|
||||||
on early-init && property:ro.bootmode=mot-factory
|
|
||||||
insmod /vendor/lib/modules/moto_f_usbnet.ko
|
|
||||||
|
|
||||||
on early-init
|
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
|
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor walt
|
||||||
|
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor walt
|
||||||
on early-init
|
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor walt
|
||||||
insmod /vendor/lib/modules/bm_adsp_ulog.ko
|
|
||||||
insmod /vendor/lib/modules/mmi_charger.ko
|
|
||||||
insmod /vendor/lib/modules/qti_glink_charger.ko
|
|
||||||
insmod /vendor/lib/modules/aw882xx_k504.ko
|
|
||||||
insmod /vendor/lib/modules/cirrus_wm_adsp.ko
|
|
||||||
insmod /vendor/lib/modules/cirrus_cs35l41.ko
|
|
||||||
insmod /vendor/lib/modules/cirrus_cs35l45.ko
|
|
||||||
insmod /vendor/lib/modules/mmi_sys_temp.ko
|
|
||||||
insmod /vendor/lib/modules/wl2864c.ko
|
|
||||||
insmod /vendor/lib/modules/goodix_brl_mmi.ko
|
|
||||||
insmod /vendor/lib/modules/camera.ko
|
|
||||||
insmod /vendor/lib/modules/aw862x.ko
|
|
||||||
insmod /vendor/lib/modules/cci_intf.ko
|
|
||||||
insmod /vendor/lib/modules/qpnp_adaptive_charge.ko
|
|
||||||
start vendor.mmi_modules
|
|
||||||
|
|
||||||
on fs
|
on fs
|
||||||
# egis fod ko
|
insmod /vendor/lib/modules/rbs_fod_mmi.ko
|
||||||
insmod /vendor/lib/modules/rbs_fps_mmi.ko
|
insmod /vendor/lib/modules/msm_drm.ko
|
||||||
|
insmod /vendor/lib/modules/mmi_annotate.ko
|
||||||
|
insmod /vendor/lib/modules/mmi_info.ko
|
||||||
|
insmod /vendor/lib/modules/mmi_relay.ko
|
||||||
|
insmod /vendor/lib/modules/sensors_class.ko
|
||||||
|
insmod /vendor/lib/modules/touchscreen_mmi.ko
|
||||||
|
insmod /vendor/lib/modules/stmicro_mmi.ko
|
||||||
|
insmod /vendor/lib/modules/goodix_brl_mmi.ko
|
||||||
|
insmod /vendor/lib/modules/sx937x_sar.ko
|
||||||
|
insmod /vendor/lib/modules/qti_glink_charger.ko
|
||||||
|
insmod /vendor/lib/modules/qpnp_adaptive_charge.ko
|
||||||
|
#zram wb
|
||||||
|
mount_all /vendor/etc/fstab.qcom.zram --early
|
||||||
|
|
||||||
|
on early-boot
|
||||||
|
# factory i2c
|
||||||
|
chmod 0660 /dev/i2c-0
|
||||||
|
chmod 0660 /dev/i2c-1
|
||||||
|
chmod 0660 /dev/i2c-2
|
||||||
|
chmod 0660 /dev/i2c-3
|
||||||
|
chmod 0660 /dev/i2c-4
|
||||||
|
chown system system /dev/i2c-0
|
||||||
|
chown system system /dev/i2c-1
|
||||||
|
chown system system /dev/i2c-2
|
||||||
|
chown system system /dev/i2c-3
|
||||||
|
chown system system /dev/i2c-4
|
||||||
|
# for ufs HID
|
||||||
|
chown system system /sys/devices/platform/soc/1d84000.ufshc/ufshid/trigger
|
||||||
|
|
||||||
|
# Create directory for wireless charge test in factory
|
||||||
|
mkdir /data/vendor/wlc 0775 vendor_tcmd system
|
||||||
|
|
||||||
|
# Change force_charging_enable access mode and permission for tcmd
|
||||||
|
chmod 0664 /sys/class/power_supply/battery/device/force_charging_enable
|
||||||
|
chown vendor_tcmd system /sys/class/power_supply/battery/device/force_charging_enable
|
||||||
|
|
||||||
on post-fs
|
on post-fs
|
||||||
# Sensors
|
# Sensors
|
||||||
@@ -33,20 +49,9 @@ on post-fs
|
|||||||
chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
|
chown system system /sys/devices/platform/soc/a94000.spi/spi_master/spi0/spi0.0/touchscreen/primary/double_tap_pressed
|
||||||
|
|
||||||
on post-fs-data
|
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
|
# Param updater data for various modules
|
||||||
mkdir /data/vendor/param 0775 system system
|
mkdir /data/vendor/param 0775 system system
|
||||||
# Add for Egis Fod fingerprint
|
# prepare folders for Egis FoD fingerprint sensor
|
||||||
mkdir /data/vendor/egis 0770 system system
|
mkdir /data/vendor/egis 0770 system system
|
||||||
mkdir /mnt/vendor/persist/egis 0770 system system
|
mkdir /mnt/vendor/persist/egis 0770 system system
|
||||||
mkdir /data/vendor/tzstorage/egis 0770 system system
|
mkdir /data/vendor/tzstorage/egis 0770 system system
|
||||||
@@ -72,13 +77,11 @@ on boot
|
|||||||
chmod 0660 /dev/cci_intf
|
chmod 0660 /dev/cci_intf
|
||||||
chown system camera /dev/cci_intf
|
chown system camera /dev/cci_intf
|
||||||
|
|
||||||
#change adsp pmic test command file access permission
|
start vendor.touchRec
|
||||||
chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/tcmd
|
# touch screen calibration file
|
||||||
chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/force_pmic_icl
|
mkdir /mnt/vendor/persist/touch
|
||||||
chown vendor_tcmd system /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,battery_charger/force_charging_enable
|
chown vendor_tcmd system /mnt/vendor/persist/touch
|
||||||
chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/tcmd
|
chmod 0775 /mnt/vendor/persist/touch
|
||||||
chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:mmi,qti-glink-charger/force_pmic_icl
|
|
||||||
chmod 0660 /sys/devices/platform/soc/soc:qcom,pmic_glink/soc:qcom,pmic_glink:qcom,battery_charger/force_charging_enable
|
|
||||||
# Touch game mode control
|
# Touch game mode control
|
||||||
chown system system /sys/class/touchscreen/primary/rotate
|
chown system system /sys/class/touchscreen/primary/rotate
|
||||||
chmod 0660 /sys/class/touchscreen/primary/rotate
|
chmod 0660 /sys/class/touchscreen/primary/rotate
|
||||||
@@ -86,12 +89,39 @@ on boot
|
|||||||
chmod 0660 /sys/class/touchscreen/primary/interpolation
|
chmod 0660 /sys/class/touchscreen/primary/interpolation
|
||||||
chown system system /sys/class/touchscreen/primary/edge
|
chown system system /sys/class/touchscreen/primary/edge
|
||||||
chmod 0660 /sys/class/touchscreen/primary/edge
|
chmod 0660 /sys/class/touchscreen/primary/edge
|
||||||
chown system system /sys/class/touchscreen/primary/first_filter
|
chown system system /sys/class/touchscreen/primary/sensitivity
|
||||||
chmod 0660 /sys/class/touchscreen/primary/first_filter
|
chmod 0660 /sys/class/touchscreen/primary/sensitivity
|
||||||
|
chown system system /sys/class/touchscreen/primary/gesture
|
||||||
|
chmod 0660 /sys/class/touchscreen/primary/gesture
|
||||||
# Set adaptive charging perms for HAL
|
# Set adaptive charging perms for HAL
|
||||||
chown system system /sys/module/qpnp_adaptive_charge/parameters/upper_limit
|
chown system system /sys/module/qpnp_adaptive_charge/parameters/upper_limit
|
||||||
chown system system /sys/module/qpnp_adaptive_charge/parameters/lower_limit
|
chown system system /sys/module/qpnp_adaptive_charge/parameters/lower_limit
|
||||||
|
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/tx_mode
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/wls_input_current_limit
|
||||||
|
chown vendor_tcmd system /sys/class/power_supply/wireless/device/tx_mode_vout
|
||||||
|
chmod 0660 /sys/class/power_supply/wireless/device/tx_mode
|
||||||
|
chmod 0660 /sys/class/power_supply/wireless/device/wls_input_current_limit
|
||||||
|
|
||||||
|
#change vibrator test node file access permission
|
||||||
|
chmod 0660 /sys/class/qcom-haptics/enable_play
|
||||||
|
chown vendor_tcmd system /sys/class/qcom-haptics/enable_play
|
||||||
|
write /sys/class/qcom-battery/wireless_fw_update_time_ms 5000
|
||||||
|
write /sys/class/qcom-battery/wireless_fw_update 1
|
||||||
|
|
||||||
|
# Set wlc perms for HAL
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/wlc_light_ctl
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/wlc_fan_speed
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/wlc_st_changed
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/wlc_tx_power
|
||||||
|
chown system system /sys/class/power_supply/wireless/device/wlc_tx_type
|
||||||
|
chmod 0660 /sys/class/power_supply/wireless/device/wlc_light_ctl
|
||||||
|
chmod 0660 /sys/class/power_supply/wireless/device/wlc_fan_speed
|
||||||
|
|
||||||
|
# vibrator hal need to access this sysfs node for AF noise issue
|
||||||
|
chown cameraserver cameraserver /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
|
||||||
|
chmod 0660 /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
|
||||||
|
|
||||||
service capsense_reset /system/vendor/bin/capsense_reset
|
service capsense_reset /system/vendor/bin/capsense_reset
|
||||||
class core
|
class core
|
||||||
user system
|
user system
|
||||||
@@ -100,6 +130,35 @@ service capsense_reset /system/vendor/bin/capsense_reset
|
|||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
start capsense_reset
|
start capsense_reset
|
||||||
|
#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
|
||||||
|
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
|
||||||
|
|
||||||
on property:persist.vendor.paramfile.parse_panel=1
|
#change for Rogue because the node changed
|
||||||
write /sys/devices/platform/soc/soc:qcom,dsi-display-primary/dsi_display_parse_para "5"
|
on property:vendor.wifi.tethering=false
|
||||||
|
write /sys/module/qca6490/parameters/sar_mhs disabled
|
||||||
|
|
||||||
|
on property:vendor.wifi.tethering=true
|
||||||
|
write /sys/module/qca6490/parameters/sar_mhs enabled
|
||||||
|
|
||||||
|
on property:vendor.wifi.station=true
|
||||||
|
write /sys/module/qca6490/parameters/sar_sta enabled
|
||||||
|
|
||||||
|
on property:vendor.wifi.station=false
|
||||||
|
write /sys/module/qca6490/parameters/sar_sta disabled
|
||||||
|
|
||||||
|
on property:dev.bootcomplete=1
|
||||||
|
stop llkd-${ro.debuggable:-0}
|
||||||
|
|
||||||
|
on property:vendor.post_boot.parsed=1
|
||||||
|
write /sys/devices/system/cpu/cpu4/core_ctl/enable 0
|
||||||
|
write /sys/devices/system/cpu/cpu7/core_ctl/enable 0
|
||||||
|
|
||||||
|
on property:vendor.usb.headset_reset=2
|
||||||
|
write /sys/bus/platform/devices/${ro.boot.usb.dwc3_msm:-a600000.ssusb}/mode none
|
||||||
|
|
||||||
|
on property:vendor.usb.headset_reset=0
|
||||||
|
wait /sys/bus/platform/devices/${ro.boot.usb.dwc3_msm:-a600000.ssusb}/headset_reset_delay 2
|
||||||
|
write /sys/bus/platform/devices/${ro.boot.usb.dwc3_msm:-a600000.ssusb}/mode host
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
# This file needs to be executed by vendor_init at boot of the device,
|
# This file needs to be executed by vendor_init at boot of the device,
|
||||||
# both in normal and factory mode.
|
# both in normal and factory mode.
|
||||||
|
|
||||||
on post-fs
|
on early-boot
|
||||||
# Change ownership and permision of st nfc device
|
# Change ownership and permision of st nfc device
|
||||||
chown nfc nfc /dev/st21nfc
|
chown nfc nfc /dev/st21nfc
|
||||||
chmod 0660 /dev/st21nfc
|
chmod 0660 /dev/st21nfc
|
||||||
|
chown secure_element secure_element /dev/st54spi
|
||||||
|
chmod 0660 /dev/st54spi
|
||||||
|
|
||||||
on property:ro.vendor.hw.nfc=true && property:persist.vendor.radio.multisim.config=*
|
on property:ro.vendor.hw.nfc=true && property:persist.vendor.radio.multisim.config=*
|
||||||
start vendor.stflashtool
|
start vendor.stflashtool
|
||||||
|
|||||||
Reference in New Issue
Block a user