land: Slightly clean up init scripts

* Merge init.target.rc into init.qcom.rc
 * Re-organise init triggers based on actual init sequence
 * Clean up a little bit of whitespace
 * Remove services for daemons not even present in stock

Change-Id: I6682040cfbc2aabe3886bd64f4277cc99172a7bf
This commit is contained in:
Zhao Wei Liew 2016-11-06 20:07:37 +08:00
parent 9849c64197
commit 36a430bf60
4 changed files with 336 additions and 650 deletions

View file

@ -3,5 +3,4 @@ PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.rc \
init.qcom.sh \
init.target.rc \
ueventd.qcom.rc

View file

@ -50,14 +50,6 @@ LOCAL_SRC_FILES := init.qcom.usb.sh
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.target.rc
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := init.target.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := ueventd.qcom.rc
LOCAL_MODULE_TAGS := optional eng

View file

@ -27,10 +27,14 @@
import init.qcom.power.rc
import init.qcom.usb.rc
import init.target.rc
import init.qcom.factory.rc
on early-init
mkdir /firmware 0771 system system
mkdir /system 0777 root root
symlink /data/tombstones /tombstones
mkdir /dsp 0771 media media
mount debugfs debugfs /sys/kernel/debug
chmod 0755 /sys/kernel/debug
@ -42,142 +46,30 @@ on init
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
# Allow subsystem (modem etc) debugging
write /sys/kernel/boot_adsp/boot 1
write /sys/kernel/boot_slpi/boot 1
exec u:r:qti_init_shell:s0 -- /init.qcom.early_boot.sh
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
# Graphics
chown system graphics /sys/class/graphics/fb0/idle_time
chmod 0664 /sys/class/graphics/fb0/idle_time
chown system graphics /sys/class/graphics/fb0/dynamic_fps
chmod 0664 /sys/class/graphics/fb0/dynamic_fps
chown system graphics /sys/class/graphics/fb0/dyn_pu
chmod 0664 /sys/class/graphics/fb0/dyn_pu
chown system graphics /sys/class/graphics/fb0/modes
chmod 0664 /sys/class/graphics/fb0/modes
chown system graphics /sys/class/graphics/fb0/mode
chmod 0664 /sys/class/graphics/fb0/mode
chown system graphics /sys/class/graphics/fb0/msm_cmd_autorefresh_en
chmod 0664 /sys/class/graphics/fb0/msm_cmd_autorefresh_en
on fs
mount_all fstab.qcom
on boot
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite
chown system system /sys/module/sco/parameters/disable_esco
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
chown system system /sys/module/radio_iris_transport/parameters/fmsmd_set
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/module/radio_iris_transport/parameters/fmsmd_set
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth net_bt /dev/ttyHS0
chmod 0660 /sys/module/hci_uart/parameters/ath_lpm
chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
mkdir /persist/data 0700 system system
restorecon_recursive /persist
chmod 0660 /dev/ttyHS2
chown bluetooth bluetooth /dev/ttyHS2
chown bluetooth net_bt /sys/class/rfkill/rfkill0/device/extldo
chmod 0660 /sys/class/rfkill/rfkill0/device/extldo
#Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
mkdir /dev/socket/qmux_audio 0770 media audio
chmod 2770 /dev/socket/qmux_audio
mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
chmod 2770 /dev/socket/qmux_bluetooth
mkdir /dev/socket/qmux_gps 0770 gps gps
chmod 2770 /dev/socket/qmux_gps
mkdir /persist/drm 0770 system system
mkdir /persist/bluetooth 0770 bluetooth bluetooth
#Create NETMGR daemon socket area
mkdir /dev/socket/netmgr 0750 radio radio
#NULL lixiuzhen 2016\04\03 add ota prop for mbn update
setprop persist.radio.start_ota_daemon 1
setprop persist.radio.sw_mbn_openmkt 1
#enable camera read sensors data
setprop persist.camera.gyro.disable 0
setprop persist.camera.stats.test 5
#Remove SUID bit for iproute2 ip tool
chmod 0755 /system/bin/ip
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
#For bridgemgr daemon to inform the USB driver of the correct transport
chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 8388608
write /proc/sys/net/core/wmem_max 8388608
#To allow interfaces to get v6 address when tethering is enabled
write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2
# To prevent out of order acknowledgements from making
# connection tracking to treat them as not belonging to
# the connection they belong to.
# Otherwise, a weird issue happens in which some long
# connections on high-throughput links get dropped when
# an ack packet comes out of order
write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1
# Set the console loglevel to < KERN_INFO
# Set the default message loglevel to KERN_INFO
write /proc/sys/kernel/printk "6 6 1 7"
# Allow access for CCID command/response timeout configuration
chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout
# bond0 used by FST Manager
chown wifi wifi /sys/class/net/bond0/bonding/queue_id
# Goodix Fingerprint
chown system system /dev/goodix_fp
chmod 0644 /dev/goodix_fp
setprop persist.sys.fp.vendor none
start gx_fpd
on post-fs
wait /dev/block/bootdevice/by-name/oem
mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev barrier=1
# msm specific files that need to be created on /data
on post-fs-data
mkdir /data/tombstones 0771 system system
mkdir /tombstones/modem 0771 system system
mkdir /tombstones/lpass 0771 system system
mkdir /tombstones/wcnss 0771 system system
mkdir /tombstones/dsps 0771 system system
mkdir /persist/data/sfs 0700 system system
mkdir /persist/data/tz 0700 system system
mkdir /data/misc/hbtp 0750 system system
mkdir /data/misc/dts 0770 media audio
#Create directories for Fingerprint
mkdir /data/misc/stargate 0770 system system
mkdir /data/misc/stargate/bg_estimation 0770 system system
@ -336,6 +228,163 @@ on post-fs-data
mkdir /data/misc/sensors
chmod 0775 /data/misc/sensors
on early-boot
# set RLIMIT_MEMLOCK to 64MB
setrlimit 8 67108864 67108864
# Allow subsystem (modem etc) debugging
write /sys/kernel/boot_adsp/boot 1
write /sys/kernel/boot_slpi/boot 1
exec u:r:qti_init_shell:s0 -- /init.qcom.early_boot.sh
# Graphics
chown system graphics /sys/class/graphics/fb0/idle_time
chmod 0664 /sys/class/graphics/fb0/idle_time
chown system graphics /sys/class/graphics/fb0/dynamic_fps
chmod 0664 /sys/class/graphics/fb0/dynamic_fps
chown system graphics /sys/class/graphics/fb0/dyn_pu
chmod 0664 /sys/class/graphics/fb0/dyn_pu
chown system graphics /sys/class/graphics/fb0/modes
chmod 0664 /sys/class/graphics/fb0/modes
chown system graphics /sys/class/graphics/fb0/mode
chmod 0664 /sys/class/graphics/fb0/mode
chown system graphics /sys/class/graphics/fb0/msm_cmd_autorefresh_en
chmod 0664 /sys/class/graphics/fb0/msm_cmd_autorefresh_en
on boot
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_lpm
chown bluetooth bluetooth /sys/module/hci_uart/parameters/ath_btwrite
chown system system /sys/module/sco/parameters/disable_esco
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
chown system system /sys/module/radio_iris_transport/parameters/fmsmd_set
chmod 0660 /sys/module/bluetooth_power/parameters/power
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
chmod 0660 /sys/module/radio_iris_transport/parameters/fmsmd_set
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /proc/bluetooth/sleep/proto
chown bluetooth net_bt /dev/ttyHS0
chmod 0660 /sys/module/hci_uart/parameters/ath_lpm
chmod 0660 /sys/module/hci_uart/parameters/ath_btwrite
chmod 0660 /dev/ttyHS0
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
chmod 0660 /dev/ttyHS2
chown bluetooth bluetooth /dev/ttyHS2
chown bluetooth net_bt /sys/class/rfkill/rfkill0/device/extldo
chmod 0660 /sys/class/rfkill/rfkill0/device/extldo
#Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
mkdir /dev/socket/qmux_audio 0770 media audio
chmod 2770 /dev/socket/qmux_audio
mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
chmod 2770 /dev/socket/qmux_bluetooth
mkdir /dev/socket/qmux_gps 0770 gps gps
chmod 2770 /dev/socket/qmux_gps
mkdir /persist/drm 0770 system system
mkdir /persist/bluetooth 0770 bluetooth bluetooth
#Create NETMGR daemon socket area
mkdir /dev/socket/netmgr 0750 radio radio
#NULL lixiuzhen 2016\04\03 add ota prop for mbn update
setprop persist.radio.start_ota_daemon 1
setprop persist.radio.sw_mbn_openmkt 1
#enable camera read sensors data
setprop persist.camera.gyro.disable 0
setprop persist.camera.stats.test 5
#Remove SUID bit for iproute2 ip tool
chmod 0755 /system/bin/ip
chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state
#For bridgemgr daemon to inform the USB driver of the correct transport
chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport
# Assign TCP buffer thresholds to be ceiling value of technology maximums
# Increased technology maximums should be reflected here.
write /proc/sys/net/core/rmem_max 8388608
write /proc/sys/net/core/wmem_max 8388608
#To allow interfaces to get v6 address when tethering is enabled
write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2
write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2
# To prevent out of order acknowledgements from making
# connection tracking to treat them as not belonging to
# the connection they belong to.
# Otherwise, a weird issue happens in which some long
# connections on high-throughput links get dropped when
# an ack packet comes out of order
write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1
# Set the console loglevel to < KERN_INFO
# Set the default message loglevel to KERN_INFO
write /proc/sys/kernel/printk "6 6 1 7"
# Allow access for CCID command/response timeout configuration
chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout
# bond0 used by FST Manager
chown wifi wifi /sys/class/net/bond0/bonding/queue_id
# Goodix Fingerprint
chown system system /dev/goodix_fp
chmod 0644 /dev/goodix_fp
setprop persist.sys.fp.vendor none
start gx_fpd
write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/fw_name PR1702898-s3528t_00260005_00380008.img
write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/update_fw 1
restorecon /dev/block/mmcblk0p13
restorecon /dev/block/mmcblk0p14
restorecon /dev/block/mmcblk0p16
restorecon /dev/block/mmcblk0p2
restorecon /dev/block/mmcblk0p3
restorecon /dev/block/mmcblk0p27
restorecon /dev/block/mmcblk0p33
restorecon /dev/block/mmcblk0p34
start rmt_storage
# access permission for secure touch
chmod 0660 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
chmod 0440 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
chmod 0660 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
chmod 0440 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
on class_start:late_start
write /proc/sys/net/ipv6/conf/default/accept_ra_defrtr 1
@ -435,24 +484,7 @@ on property:bluetooth.dun.status=stopped
on property:ro.bluetooth.ftm_enabled=true
start ftmd
on property:bluetooth.startbtsnoop=true
start btsnoop
on property:bluetooth.startbtsnoop=false
stop btsnoop
service qcom-c_core-sh /system/bin/sh /init.qcom.class_core.sh
class core
user root
oneshot
service qcom-c_main-sh /system/bin/sh /init.class_main.sh
class main
user root
oneshot
on property:vold.decrypt=trigger_restart_framework
start qcom-c_main-sh
start config_bt_addr
start config_bluetooth
@ -485,30 +517,6 @@ service tftp_server /system/bin/tftp_server
class main
user root
on property:wc_transport.start_hci=true
start start_hci_filter
on property:wc_transport.start_hci=false
stop start_hci_filter
service start_hci_filter /system/bin/wcnss_filter
class late_start
user bluetooth
group bluetooth qcom_diag
disabled
on property:wc_transport.start_root=true
start hci_filter_root
on property:wc_transport.start_root=false
stop hci_filter_root
service hci_filter_root /system/bin/wcnss_filter
class late_start
user bluetooth
group bluetooth qcom_diag system
disabled
service config_bt_addr /system/bin/btnvtool -O
class core
user bluetooth
@ -547,20 +555,6 @@ service bt-dun /system/bin/dun-server /dev/smd7 /dev/rfcomm0
disabled
oneshot
service bt-sap /system/bin/sapd 15
user bluetooth
group bluetooth net_bt_admin
class late_start
disabled
oneshot
service btsnoop /system/bin/btsnoop
user bluetooth
group bluetooth net_bt_admin sdcard_rw sdcard_r media_rw
class late_start
disabled
oneshot
service ftmd /system/bin/logwrapper /system/bin/ftmdaemon
class late_start
user root
@ -568,24 +562,12 @@ service ftmd /system/bin/logwrapper /system/bin/ftmdaemon
disabled
oneshot
service bridgemgrd /system/bin/bridgemgrd
class late_start
user radio
group radio qcom_diag
disabled
service port-bridge /system/bin/port-bridge
class main
user radio system
group radio system inet
oneshot
service qmiproxy /system/bin/qmiproxy
class main
user radio
group radio qcom_diag
disabled
# QMUX must be in multiple groups to support external process connections
service qmuxd /system/bin/qmuxd
class main
@ -595,17 +577,6 @@ service qmuxd /system/bin/qmuxd
service netmgrd /system/bin/netmgrd
class main
service ipacm-diag /system/bin/ipacm-diag
class main
user system
socket ipacm_log_file dgram 660 system net_admin
group net_admin qcom_diag
service ipacm /system/bin/ipacm
class main
user net_admin
group net_admin inet
service qti /system/vendor/bin/qti
class main
user radio
@ -635,24 +606,6 @@ service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
disabled
oneshot
service amp_init /system/bin/amploader -i
class late_start
user root
disabled
oneshot
service amp_load /system/bin/amploader -l 7000
class late_start
user root
disabled
oneshot
service amp_unload /system/bin/amploader -u
class late_start
user root
disabled
oneshot
service p2p_supplicant /system/bin/wpa_supplicant \
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
@ -790,32 +743,11 @@ service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
disabled
oneshot
on property:crypto.driver.load=1
insmod /system/lib/modules/qce.ko
insmod /system/lib/modules/qcedev.ko
service drmdiag /system/bin/drmdiagapp
class late_start
user root
disabled
oneshot
on property:drmdiag.load=1
start drmdiag
on property:drmdiag.load=0
stop drmdiag
service qcom-sh /system/bin/sh /init.qcom.sh
class late_start
user root
oneshot
service sensor-sh /system/bin/sh /init.qcom.sensors.sh
class core
user root
oneshot
service qti-testscripts /system/bin/sh /system/etc/init.qcom.testscripts.sh
class late_start
user root
@ -850,32 +782,10 @@ service hostapd /system/bin/hostapd -dd /data/hostapd/hostapd.conf
oneshot
disabled
service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
class late_start
group radio wifi inet
disabled
oneshot
on property:persist.data.ds_fmc_app.mode=1
start ds_fmc_appd
service ims_regmanager /system/bin/exe-ims-regmanagerprocessnative
class late_start
group net_bt_admin inet radio wifi
disabled
on property:persist.ims.regmanager.mode=1
start ims_regmanager
on property:ro.data.large_tcp_window_size=true
# Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB)
write /proc/sys/net/ipv4/tcp_adv_win_scale 2
service battery_monitor /system/bin/battery_monitor
user system
group system
disabled
service ril-daemon2 /system/bin/rild -c 2
class main
socket rild2 stream 660 root radio
@ -883,38 +793,18 @@ service ril-daemon2 /system/bin/rild -c 2
user root
group radio cache inet misc audio sdcard_r sdcard_rw qcom_diag diag log
service ril-daemon3 /system/bin/rild -c 3
class main
socket rild3 stream 660 root radio
socket rild-debug3 stream 660 radio system
user root
disabled
group radio cache inet misc audio sdcard_r sdcard_rw qcom_diag diag log
service usb_uicc_enable /system/bin/sh /system/etc/init.qcom.uicc.sh
class late_start
user root
disabled
oneshot
service usb_uicc_daemon /system/bin/usb_uicc_client
class main
user system
group system log net_raw
oneshot
on property:sys.usb_uicc.enabled=1
start usb_uicc_enable
on property:sys.usb_uicc.enabled=0
start usb_uicc_enable
service profiler_daemon /system/bin/profiler_daemon
class late_start
user root
group root
disabled
service hcidump /system/bin/sh /system/etc/hcidump.sh
user bluetooth
group bluetooth system net_bt_admin net_admin
@ -932,22 +822,6 @@ service ssr_diag /system/bin/ssr_diag
group system
disabled
service hvdcp /system/bin/hvdcp
class core
user root
disabled
on property:persist.usb.hvdcp.detect=true
start hvdcp
on property:persist.usb.hvdcp.detect=false
stop hvdcp
service charger_monitor /system/bin/charger_monitor
user root
group root
disabled
service qbcharger /charger -m 1
disabled
oneshot
@ -980,26 +854,11 @@ service diag_mdlog_stop /system/bin/diag_mdlog -k
disabled
oneshot
service qlogd /system/xbin/qlogd
socket qlogd stream 0662 system system
class main
disabled
on property:persist.sys.qlogd=1
start qlogd
on property:persist.sys.qlogd=0
stop qlogd
on property:persist.radio.otaconfig=0
setprop persist.radio.start_ota_daemon 0
on property:persist.radio.otaconfig=1
setprop persist.radio.start_ota_daemon 1
service vm_bms /system/bin/vm_bms
user root
group root
disabled
service msm_irqbalance /system/bin/msm_irqbalance -f /system/vendor/etc/msm_irqbalance.conf
class late_start
user root
@ -1021,30 +880,6 @@ on property:sys.wfdservice=enable
on property:sys.wfdservice=disable
stop wfdservice
#service RIDL /system/vendor/bin/RIDLClient.exe
#class late_start
#oneshot
#user system
#group system inet log sdcard_r sdcard_rw qcom_diag
# removed for security team - misc bluetooth radio gps wifi diag media_rw
# limited to 12 groups. Unused: audio usb net_bt_admin net_bt_stac net_raw net_admin
# service for USERDEBUG
service LKCore-dbg /system/vendor/bin/LKCore
class late_start
oneshot
disabled
user root
group root system log qcom_diag
# service for USER
service LKCore-rel /system/vendor/bin/LKCore
class late_start
oneshot
disabled
user system
group system log qcom_diag
# Coresight early boot service
service cs-early-boot /system/bin/sh /persist/coresight/qdss.agent.sh early-boot /system/etc/init.qcom.debug.sh
class core
@ -1071,16 +906,7 @@ service qseeproxydaemon /system/vendor/bin/qseeproxydaemon
user system
group system
# Seemp health service
service seemp_healthd /system/vendor/bin/seemp_healthd
class late_start
user system
group system
on charger
setprop persist.sys.usb.config charging
#add poweroffhandler
# Add poweroffhandler
service poweroffhandler /system/bin/poweroffhandler
class core
user media
@ -1096,7 +922,6 @@ service fingerprintd /system/bin/fingerprintd
system system
disabled
service gx_fpd /system/bin/gx_fpd
class core
user root
@ -1109,9 +934,159 @@ on property:persist.sys.fp.vendor=switchf
start fingerprintd
on property:persist.sys.fp.onstart=1
start fingerprintd
start fingerprintd
#on property:persist.sys.fp.vendor=switchg
# stop fpcd
# setprop persist.sys.fp.vendor searchg
# start fpdaemon
# Start camera server as daemon
service qcamerasvr /system/bin/mm-qcamera-daemon
class late_start
user camera
group camera system inet input graphics
writepid /dev/cpuset/system-background/tasks
# Allow usb charging to be disabled peristently
on property:persist.usb.chgdisabled=1
write /sys/class/power_supply/battery/charging_enabled 0
on property:persist.usb.chgdisabled=0
write /sys/class/power_supply/battery/charging_enabled 1
service qseecomd /system/bin/qseecomd
class core
user root
group root
service perfd /system/vendor/bin/perfd
class main
user root
disabled
writepid /dev/cpuset/system-background/tasks
service thermal-engine /system/vendor/bin/thermal-engine
class main
user root
socket thermal-send-client stream 0666 system system
socket thermal-recv-client stream 0660 system system
socket thermal-recv-passive-client stream 0666 system system
group root
service time_daemon /system/bin/time_daemon
class late_start
user root
group root
service audiod /system/bin/audiod
class late_start
user system
group system
service wcnss-service /system/bin/wcnss_service
class main
user system
group system wifi radio
restart
service imsstarter /system/bin/sh /system/etc/init.qti.ims.sh
class main
oneshot
on property:vold.decrypt=trigger_restart_framework
start imsstarter
service imsqmidaemon /system/bin/imsqmidaemon
class main
user system
socket ims_qmid stream 0660 system radio
group radio net_raw log diag
disabled
on property:service.qti.ims.enabled=1
start imsqmidaemon
service imsdatadaemon /system/bin/imsdatadaemon
class main
user system
socket ims_datad stream 0660 system radio
group system wifi radio inet net_raw log diag net_admin
disabled
on property:sys.ims.QMI_DAEMON_STATUS=1
start imsdatadaemon
service ims_rtp_daemon /system/bin/ims_rtp_daemon
class main
user system
socket ims_rtpd stream 0660 system radio
group radio net_raw diag diag inet log
disabled
service imscmservice /system/bin/imscmservice
class main
user system
group radio net_raw diag diag log
disabled
on property:sys.ims.DATA_DAEMON_STATUS=1
start ims_rtp_daemon
start imscmservice
service ppd /system/vendor/bin/mm-pp-dpps
class late_start
disabled
user system
socket pps stream 0660 system system
group system graphics
on property:init.svc.surfaceflinger=stopped
stop ppd
on property:init.svc.surfaceflinger=running
start ppd
on property:init.svc.surfaceflinger=restarting
stop ppd
on property:init.svc.zygote=stopped
stop ppd
on property:init.svc.zygote=running
start ppd
on property:init.svc.zygote=restarting
stop ppd
on charger
wait /dev/block/bootdevice/by-name/system
mount ext4 /dev/block/bootdevice/by-name/system /system ro barrier=1
load_all_props
setprop persist.sys.usb.config mass_storage
setprop persist.sys.usb.config mass_storage
start hvdcp_opti
service hbtp /system/vendor/bin/hbtp_daemon
class main
user system
group system
disabled
service adsprpcd /system/bin/adsprpcd
class main
user media
group media
service per_mgr /system/bin/pm-service
class core
user system
group system net_raw
service hvdcp_opti /system/bin/hvdcp_opti
class main
user root
group root
service mdtpd /system/vendor/bin/mdtpd
class late_start
user root
group system radio drmrpc
service mtservice /system/bin/mtd
class late_start

View file

@ -1,280 +0,0 @@
# Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
import init.carrier.rc
on early-init
mkdir /firmware 0771 system system
mkdir /system 0777 root root
symlink /data/tombstones /tombstones
mkdir /dsp 0771 media media
on fs
mount_all fstab.qcom
mkdir /persist/data 0700 system system
restorecon_recursive /persist
on post-fs
wait /dev/block/bootdevice/by-name/oem
mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev barrier=1
on post-fs-data
mkdir /data/tombstones 0771 system system
mkdir /tombstones/modem 0771 system system
mkdir /tombstones/lpass 0771 system system
mkdir /tombstones/wcnss 0771 system system
mkdir /tombstones/dsps 0771 system system
mkdir /persist/data/sfs 0700 system system
mkdir /persist/data/tz 0700 system system
mkdir /data/misc/hbtp 0750 system system
mkdir /data/misc/dts 0770 media audio
#start camera server as daemon
service qcamerasvr /system/bin/mm-qcamera-daemon
class late_start
user camera
group camera system inet input graphics
writepid /dev/cpuset/system-background/tasks
on init
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
service qfp-daemon /system/bin/qfp-daemon
class late_start
user system
group system drmrpc
# Allow usb charging to be disabled peristently
on property:persist.usb.chgdisabled=1
write /sys/class/power_supply/battery/charging_enabled 0
on property:persist.usb.chgdisabled=0
write /sys/class/power_supply/battery/charging_enabled 1
service qrngd /system/bin/qrngd -f
class main
user root
group root
service qrngp /system/bin/qrngp -f
class main
user root
group root
oneshot
disabled
on property:sys.boot_completed=1
start qrngp
service qseecomd /system/bin/qseecomd
class core
user root
group root
#service aostlmd /system/bin/aostlmd
# class late_start
# user system
# group system net_raw
service perfd /system/vendor/bin/perfd
class main
user root
disabled
writepid /dev/cpuset/system-background/tasks
service thermal-engine /system/vendor/bin/thermal-engine
class main
user root
socket thermal-send-client stream 0666 system system
socket thermal-recv-client stream 0660 system system
socket thermal-recv-passive-client stream 0666 system system
group root
service time_daemon /system/bin/time_daemon
class late_start
user root
group root
service audiod /system/bin/audiod
class late_start
user system
group system
on boot
restorecon /dev/block/mmcblk0p13
restorecon /dev/block/mmcblk0p14
restorecon /dev/block/mmcblk0p16
restorecon /dev/block/mmcblk0p2
restorecon /dev/block/mmcblk0p3
restorecon /dev/block/mmcblk0p27
restorecon /dev/block/mmcblk0p33
restorecon /dev/block/mmcblk0p34
start rmt_storage
insmod /system/lib/modules/adsprpc.ko
# access permission for secure touch
chmod 0660 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
chmod 0440 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
chmod 0660 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
chmod 0440 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
service wcnss-service /system/bin/wcnss_service
class main
user system
group system wifi radio
restart
service imsstarter /system/bin/sh /system/etc/init.qti.ims.sh
class main
oneshot
on property:vold.decrypt=trigger_restart_framework
start imsstarter
service imsqmidaemon /system/bin/imsqmidaemon
class main
user system
socket ims_qmid stream 0660 system radio
group radio net_raw log diag
disabled
on property:service.qti.ims.enabled=1
start imsqmidaemon
service imsdatadaemon /system/bin/imsdatadaemon
class main
user system
socket ims_datad stream 0660 system radio
group system wifi radio inet net_raw log diag net_admin
disabled
on property:sys.ims.QMI_DAEMON_STATUS=1
start imsdatadaemon
service ims_rtp_daemon /system/bin/ims_rtp_daemon
class main
user system
socket ims_rtpd stream 0660 system radio
group radio net_raw diag diag inet log
disabled
service imscmservice /system/bin/imscmservice
class main
user system
group radio net_raw diag diag log
disabled
on property:sys.ims.DATA_DAEMON_STATUS=1
start ims_rtp_daemon
start imscmservice
service ppd /system/vendor/bin/mm-pp-dpps
class late_start
disabled
user system
socket pps stream 0660 system system
group system graphics
on property:init.svc.surfaceflinger=stopped
stop ppd
on property:init.svc.surfaceflinger=running
start ppd
on property:init.svc.surfaceflinger=restarting
stop ppd
on property:init.svc.zygote=stopped
stop ppd
on property:init.svc.zygote=running
start ppd
on property:init.svc.zygote=restarting
stop ppd
on charger
wait /dev/block/bootdevice/by-name/system
mount ext4 /dev/block/bootdevice/by-name/system /system ro barrier=1
load_all_props
setprop persist.sys.usb.config mass_storage
setprop persist.sys.usb.config mass_storage
start hvdcp_opti
service hbtp /system/vendor/bin/hbtp_daemon
class main
user system
group system
disabled
service dts_configurator /system/bin/dts_configurator
class late_start
user system
group media audio
oneshot
service dtseagleservice /system/bin/dts_eagle_service
class late_start
user system
group audio media
disabled
service adsprpcd /system/bin/adsprpcd
class main
user media
group media
on property:init.svc.dts_configurator=stopped
start dtseagleservice
service per_mgr /system/bin/pm-service
class core
user system
group system net_raw
service hvdcp_opti /system/bin/hvdcp_opti
class main
user root
group root
service mdtpd /system/vendor/bin/mdtpd
class late_start
user root
group system radio drmrpc
on boot
write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/fw_name PR1702898-s3528t_00260005_00380008.img
write /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/update_fw 1
service mtservice /system/bin/mtd
class late_start