sanders: rootdir: add sensors init script from LA.UM.7.6.2.r1-03200-89xx.0

This commit is contained in:
therootlord
2018-09-25 14:03:31 -03:00
parent 361be56624
commit 070727ce81
5 changed files with 82 additions and 6 deletions

View File

@@ -84,6 +84,24 @@ on early-boot
# Motorola uses external sensorhub, do not boot the slpi
# write /sys/kernel/boot_slpi/boot 1
# for backward compatibility
chown system system /persist/sensors
chown system system /persist/sensors/registry
chown system system /persist/sensors/registry/registry
chown system system /persist/sensors/registry/registry/sensors_registry
chown system system /persist/sensors/sensors_settings
chown system system /persist/sensors/registry/config
chmod 0664 /persist/sensors/sensors_settings
chown system system /mnt/vendor/persist/sensors
chown system system /mnt/vendor/persist/sensors/registry
chown system system /mnt/vendor/persist/sensors/registry/registry
chown system system /mnt/vendor/persist/sensors/registry/registry/sensors_registry
chown system system /mnt/vendor/persist/sensors/sensors_settings
chown system system /mnt/vendor/persist/sensors/registry/sns_reg_config
chown system system /mnt/vendor/persist/sensors/registry/config
chmod 0664 /mnt/vendor/persist/sensors/sensors_settings
on boot
# access permission for secure touch
chmod 0660 /sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
@@ -685,6 +703,12 @@ service vendor.qti /vendor/bin/qti
group radio net_raw oem_2950 usb net_admin
writepid /dev/cpuset/system-background/tasks
service vendor.sensors.qti /vendor/bin/sensors.qti
class core
user system
group system
disabled
on property:ro.use_data_netmgrd=false
# netmgr not supported on specific target
stop vendor.netmgrd
@@ -823,6 +847,11 @@ on property:crypto.driver.load=1
insmod /vendor/lib/modules/qce.ko
insmod /vendor/lib/modules/qcedev.ko
service vendor-sensor-sh /vendor/bin/init.qcom.sensors.sh
class core
user root
oneshot
service atfwd /vendor/bin/ATFWD-daemon
class late_start
user system