Files
device_xiaomi_sky/rootdir/etc/init.sky.rc
Michael Bestas d2c79049a9 sky: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2024-11-16 12:59:08 +05:30

80 lines
2.8 KiB
Plaintext

on early-init
write /proc/sys/kernel/firmware_config/force_sysfs_fallback 1
# SSR Setup
write /sys/class/remoteproc/remoteproc0/recovery enabled
write /sys/class/remoteproc/remoteproc1/recovery enabled
write /sys/class/remoteproc/remoteproc2/recovery enabled
write /sys/class/remoteproc/remoteproc3/recovery enabled
on early-init && property:ro.boot.boardid=S88019BP1
setprop ro.boot.product.hardware.sku hcesimese
setprop ro.vendor.se.type eSE,HCE,UICC
setprop ro.vendor.se.chip.model SN100T
on early-init && property:ro.boot.boardid=S88018PA1
setprop ro.boot.product.hardware.sku hcesimese
setprop ro.vendor.se.type eSE,HCE,UICC
setprop ro.vendor.se.chip.model SN100T
on early-init && property:ro.boot.boardid=S88029JA1
setprop ro.boot.product.hardware.sku hcesim1ese
setprop ro.vendor.se.type eSE,HCE,UICC
setprop ro.vendor.se.chip.model SN100T
on early-init && property:ro.boot.boardid=S88029EA1
setprop ro.boot.product.hardware.sku hcesim1ese
setprop ro.vendor.se.type eSE,HCE,UICC
setprop ro.vendor.se.chip.model SN100T
on early-init && property:ro.boot.boardid=S88029AA1
setprop ro.boot.product.hardware.sku hcesim
setprop ro.vendor.se.type HCE,UICC
on early-init && property:ro.product.device=river
setprop persist.vendor.nfc.factory.fwstatus unknown
setprop ro.vendor.nfc.repair 1
setprop ro.vendor.nfc.wallet_fusion 1
setprop ro.vendor.nfc.dispatch_optim 1
on early-init && property:ro.product.device=XIG03
setprop ro.vendor.nfc.repair 1
setprop persist.vendor.nfc.factory.fwstatus unknown
on early-init && property:ro.boot.hwc=CN
setprop ro.miui.build.region cn
on early-init && property:ro.boot.hwc=Global
setprop ro.miui.build.region global
on early-init && property:ro.boot.hwc=India
setprop ro.miui.build.region in
on early-init && property:ro.boot.hwc=Japan
setprop ro.miui.build.region jp
on boot
chown system system /sys/bus/platform/devices/soc:fpc1020/irq
chown system system /sys/bus/platform/devices/soc:fpc1020/wakeup_enable
chown system system /sys/bus/platform/devices/soc:fpc1020/modalias
chown system system /sys/bus/platform/devices/soc:fpc1020/compatible_all
chmod 0660 /sys/bus/platform/devices/soc:fpc1020/irq
chmod 0660 /sys/bus/platform/devices/soc:fpc1020/wakeup_enable
chmod 0660 /sys/bus/platform/devices/soc:fpc1020/modalias
chmod 0660 /sys/bus/platform/devices/soc:fpc1020/compatible_all
chmod 0777 /dev/goodix_fp
on post-fs-data
mkdir /data/vendor/fpc 0777 system system
mkdir /data/vendor/goodix 0777 system system
on property:vendor.fps_hal.restartimes=max
stop vendor.fps_hal_lc
on property:sys.boot_completed=1
write /sys/class/thermal/thermal_message/sconfig 500
on property:persist.sys.xtra-daemon.enabled=*
restart loc_launcher