rhodep: init: Selectively update from stock
Change-Id: I34880cc66f5732d5031ae03c14487b0e580a8c31
This commit is contained in:
parent
fe4a066897
commit
53b297734e
4 changed files with 235 additions and 96 deletions
|
|
@ -6,107 +6,66 @@ on post-fs
|
|||
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
|
||||
|
||||
#fps dual sensor
|
||||
service chipone_ident /vendor/bin/hw/chipone_ident
|
||||
class late_start
|
||||
user system
|
||||
group system
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
service vendor.ident-fps-overlay-sh /vendor/bin/init.oem.fingerprint.overlay.sh
|
||||
class core
|
||||
user root
|
||||
group drmrpc system
|
||||
oneshot
|
||||
disabled
|
||||
|
||||
on post-fs-data
|
||||
|
||||
exec_start vendor.ident-fps-overlay-sh
|
||||
chown system system /dev/fpsensor
|
||||
chmod 0660 /dev/fpsensor
|
||||
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
|
||||
# Change ownership and permission for cp-standalone factory testing
|
||||
chown system system /sys/class/power_supply/cp-standalone/voltage_now
|
||||
chown system system /sys/bus/iio/devices/iio:device5/in_index_sc8549_cp_enable_input
|
||||
chmod 0644 /sys/class/power_supply/cp-standalone/voltage_now
|
||||
chmod 0664 /sys/bus/iio/devices/iio:device5/in_index_sc8549_cp_enable_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
|
||||
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
|
||||
chown vendor_pwric vendor_pwric /sys/class/power_supply/cp-standalone/force_chg_auto_enable
|
||||
|
||||
on fs
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rbs_fod_mmi.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/goodix_brl_mmi.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2597x_mmi_iio.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger_class.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/sgm4154x_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2589x_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_class.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_rt1711h.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_sgm7220.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rt_pd_manager.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_turbo_charger.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}/mmi_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2597x_mmi_iio.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger_class.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/sgm4154x_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/bq2589x_charger.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_charger.ko
|
||||
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
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_class.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_rt1711h.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/tcpc_sgm7220.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rt_pd_manager.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_discrete_turbo_charger.ko
|
||||
|
||||
service capsense_reset /vendor/bin/capsense_reset
|
||||
class core
|
||||
|
|
@ -114,11 +73,5 @@ service capsense_reset /vendor/bin/capsense_reset
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue