The partition reserved sizes were taking from stock ROM IE, blockdev --getsize64 /dev/block/mapper/system_a Also add TARGET_IS_VAB cflag as ro.virtual_ab.enabled is true on stock so that our commonized tree can enable VAB-specific changes. Change-Id: I922f61e5a0380d16eba5967f6c77346437290eb6
113 lines
4.4 KiB
Text
113 lines
4.4 KiB
Text
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
|
|
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
|
|
|
|
on early-init
|
|
insmod /vendor/lib/modules/aw882xx_k504.ko
|
|
insmod /vendor/lib/modules/bm_adsp_ulog.ko
|
|
insmod /vendor/lib/modules/camera.ko
|
|
insmod /vendor/lib/modules/cci_intf.ko
|
|
insmod /vendor/lib/modules/fpc1020_mmi.ko
|
|
insmod /vendor/lib/modules/goodix_fod_mmi.ko
|
|
insmod /vendor/lib/modules/leds_aw99703.ko
|
|
insmod /vendor/lib/modules/leds_lm3697.ko
|
|
insmod /vendor/lib/modules/mmi_charger.ko
|
|
insmod /vendor/lib/modules/mmi_sys_temp.ko
|
|
insmod /vendor/lib/modules/qpnp_adaptive_charge.ko
|
|
insmod /vendor/lib/modules/qti_glink_charger.ko
|
|
insmod /vendor/lib/modules/rbs_fps_mmi.ko
|
|
insmod /vendor/lib/modules/wl2866d.ko
|
|
|
|
on post-fs
|
|
# Sensors
|
|
chown system system /sys/devices/platform/soc/998000.spi/spi_master/spi0/spi0.0/touchscreen/NVT-ts/double_tap_enabled
|
|
chown system system /sys/devices/platform/soc/998000.spi/spi_master/spi0/spi0.0/touchscreen/NVT-ts/double_tap_pressed
|
|
|
|
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
|
|
mkdir /data/vendor/tzstorage/goodix 0770 system system
|
|
|
|
on early-boot
|
|
# Goodix fingerprint
|
|
chown system system /dev/goodix_fp
|
|
chmod 0664 /dev/goodix_fp
|
|
|
|
on boot
|
|
chmod 0664 /mnt/vendor/persist/factory/audio/aw_cali.bin
|
|
mkdir /data/vendor/gf_data 0770 system system
|
|
mkdir /mnt/vendor/persist/goodix 0770 system system
|
|
|
|
#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
|
|
# 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/lower_limit
|
|
# allow TCMD to access cci
|
|
chmod 0660 /dev/cci_intf
|
|
chown system camera /dev/cci_intf
|
|
# 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
|
|
# touch screen calibration file
|
|
mkdir /mnt/vendor/persist/touch
|
|
chown vendor_tcmd system /mnt/vendor/persist/touch
|
|
chmod 0775 /mnt/vendor/persist/touch
|
|
|
|
service capsense_reset /system/vendor/bin/capsense_reset
|
|
class core
|
|
user system
|
|
group system input
|
|
disabled
|
|
|
|
on property:sys.boot_completed=1
|
|
start capsense_reset
|
|
|
|
service egis_ident /vendor/bin/hw/egis_ident
|
|
class late_start
|
|
user system
|
|
group system
|
|
oneshot
|
|
disabled
|
|
|
|
service fpc_ident /vendor/bin/hw/fpc_ident
|
|
class late_start
|
|
user system
|
|
group system
|
|
oneshot
|
|
disabled
|
|
|
|
service gf_ident /vendor/bin/hw/goodix_ident
|
|
class late_start
|
|
user system
|
|
group system input uhid
|
|
oneshot
|
|
disabled
|
|
|
|
service vendor.hal-fps-sh /vendor/bin/init.oem.fingerprint2.sh
|
|
class late_start
|
|
user root
|
|
group system
|
|
oneshot
|