sanders: update rootdir

* Move more services to vendor
* Update ueventd.qcom
This commit is contained in:
Vachounet
2017-12-10 09:22:01 +01:00
committed by therootlord
parent 0cac014c54
commit 9e90359ce6
5 changed files with 150 additions and 78 deletions

View File

@@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
import init.mmi.rc
import /vendor/etc/init/hw/init.mmi.rc
on early-init
mount debugfs debugfs /sys/kernel/debug
@@ -34,6 +34,8 @@ on early-init
mkdir /system 0777 root root
symlink /data/tombstones /tombstones
mkdir /dsp 0771 media media
chown root system /dev/kmsg
chmod 0620 /dev/kmsg
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
@@ -60,7 +62,7 @@ on init
write /sys/module/qpnp_rtc/parameters/poweron_alarm 1
# Set permissions for persist partition
mkdir /persist 0771 system system
mkdir /persist 0771 root system
# Create cgroup mount point for memory
mkdir /sys/fs/cgroup/memory/bg 0750 root system
@@ -74,6 +76,7 @@ on early-boot
setrlimit 8 67108864 67108864
# Allow subsystem (modem etc) debugging
write /sys/kernel/boot_adsp/boot 1
write /sys/kernel/boot_cdsp/boot 1
# Motorola uses external sensorhub, do not boot the slpi
# write /sys/kernel/boot_slpi/boot 1
@@ -94,6 +97,11 @@ on boot
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/msm_core/parameters/polling_interval
chown system system /sys/module/msm_core/parameters/disabled
chown system system /sys/kernel/debug/msm_core/enable
chown system system /sys/kernel/debug/msm_core/ptable
chown system system /sys/kernel/boot_slpi/ssr
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
@@ -147,6 +155,7 @@ on boot
mkdir /persist/misc 0770 system system
mkdir /persist/alarm 0770 system system
mkdir /persist/time 0770 system system
mkdir /persist/secnvm 0770 system system
#Create NETMGR daemon socket area
mkdir /dev/socket/netmgr 0750 radio radio
@@ -180,10 +189,10 @@ on boot
setprop net.tcp.2g_init_rwnd 10
# 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
# 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 16777216
write /proc/sys/net/core/wmem_max 16777216
# To prevent out of order acknowledgements from making
# connection tracking to treat them as not belonging to
@@ -273,6 +282,12 @@ on boot
# Wifi firmware reload path
chown wifi wifi /sys/module/wlan/parameters/fwpath
# Create directory used for display
mkdir /persist/display 0770 system graphics
# Create vpp directory
mkdir /persist/vpp 0770 media media
# msm specific files that need to be created on /data
on post-fs-data
mkdir /tombstones/modem 0771 system system
@@ -290,9 +305,29 @@ on post-fs-data
mkdir /data/misc/stargate/calib_test 0770 system system
mkdir /data/misc/stargate/database 0770 system system
mkdir /data/vendor/misc 01771 system system
# Create directory used by display clients
mkdir /data/vendor/display 0770 system graphics
# Change lm related dirs
mkdir /data/vendor/lm 0700 root root
# Create directory used by media clients
mkdir /data/vendor/media 0770 mediacodec media
# Create directory used for camera
mkdir /data/vendor/camera 0770 camera camera
# Create directory for TZ Apps
mkdir /data/misc/qsee 0770 system system
# Create directory for apps access via QTEEConnector
mkdir /data/vendor/qtee 0770 system system
# Create directory for voiceprint
mkdir /data/misc/qvop 0771 system system
#Create folder for mm-qcamera-daemon
mkdir /data/misc/camera 0770 camera camera
@@ -301,7 +336,9 @@ on post-fs-data
mkdir /data/misc/ipa 0700 net_admin net_admin
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
mkdir /data/vendor/ramdump 0771 root system
mkdir /data/vendor/bluetooth 0770 bluetooth bluetooth
mkdir /data/vendor/ramdump/bluetooth 0770 bluetooth bluetooth
# Create the directories used by the Wireless subsystem
mkdir /data/vendor/wifi 0770 wifi wifi
@@ -323,6 +360,10 @@ on post-fs-data
mkdir /data/misc/netmgr 0770 radio radio
chmod 0770 /data/misc/netmgr
#create ipacm log dir
mkdir /data/vendor/ipa 0770 radio radio
chmod 0770 /data/vendor/ipa
# Create the directories used by CnE subsystem
mkdir /data/connectivity 0771 system system
chown system system /data/connectivity
@@ -335,21 +376,18 @@ on post-fs-data
chown system system /data/dpm/nsrm
# Create directory used by audio subsystem
mkdir /data/misc/audio 0770 audio audio
mkdir /data/vendor/misc/audio 0770 audio audio
# Create directory for audio delta files
mkdir /data/misc/audio/acdbdata 0770 media audio
mkdir /data/misc/audio/acdbdata/delta 0770 media audio
mkdir /data/vendor/misc/audio/acdbdata 0770 media audio
mkdir /data/vendor/misc/audio/acdbdata/delta 0770 media audio
# Create directory used by the DASH client
mkdir /data/misc/dash 0770 media audio
# Create directory used by display clients
mkdir /data/misc/display 0770 system graphics
# Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
# We chown/chmod /persist again so because mount is run as root + defaults
chown system system /persist
chown root system /persist
chmod 0771 /persist
chown system system /persist/WCNSS_qcom_wlan_nv.bin
chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
@@ -386,14 +424,17 @@ on post-fs-data
#Create directory for hostapd
mkdir /data/hostapd 0770 system wifi
# Create /data/time folder for time-services
mkdir /data/time/ 0700 system system
# Create /data/vendor/time folder for time-services
mkdir /data/vendor/time/ 0700 system system
mkdir /data/vendor/audio/ 0770 media audio
# Create a folder for audio delta files
mkdir /data/audio/acdbdata 0770 media audio
mkdir /data/audio/acdbdata/delta 0770 media audio
mkdir /data/vendor/audio/acdbdata 0770 media audio
mkdir /data/vendor/audio/acdbdata/delta 0770 media audio
#Create a folder for SRS to be able to create a usercfg file
mkdir /data/data/media 0770 media media
@@ -449,7 +490,7 @@ on property:persist.usb.chgdisabled=1
on property:persist.usb.chgdisabled=0
write /sys/class/power_supply/battery/charging_enabled 1
service qseecomd /system/bin/qseecomd
service qseecomd /system/vendor/bin/qseecomd
class core
user root
group root
@@ -464,7 +505,7 @@ service thermal-engine /system/vendor/bin/thermal-engine
group root
writepid /dev/cpuset/system-background/tasks
service time_daemon /system/bin/time_daemon
service time_daemon /system/vendor/bin/time_daemon
class late_start
user root
group root
@@ -482,7 +523,7 @@ on property:persist.env.fastdorm.enabled=true
setprop persist.radio.data_no_toggle 1
#start camera server as daemon
service qcamerasvr /system/bin/mm-qcamera-daemon
service qcamerasvr /system/vendor/bin/mm-qcamera-daemon
class late_start
user camera
group camera system inet input graphics
@@ -520,7 +561,7 @@ service irsc_util /system/vendor/bin/irsc_util "/system/vendor/etc/sec_config"
user root
oneshot
service ims_rtp_daemon /system/bin/ims_rtp_daemon
service ims_rtp_daemon /system/vendor/bin/ims_rtp_daemon
class main
user system
socket ims_rtpd stream 0660 system radio
@@ -530,7 +571,7 @@ service ims_rtp_daemon /system/bin/ims_rtp_daemon
on property:sys.ims.DATA_DAEMON_STATUS=1
start ims_rtp_daemon
service imscmservice /system/bin/imscmservice
service imscmservice /system/vendor/bin/imscmservice
class main
user system
group radio diag log
@@ -540,7 +581,7 @@ service imscmservice /system/bin/imscmservice
on property:sys.ims.DATA_DAEMON_STATUS=1
start imscmservice
service imsdatadaemon /system/bin/imsdatadaemon
service imsdatadaemon /system/vendor/bin/imsdatadaemon
class main
user system
socket ims_datad stream 0660 system radio
@@ -551,14 +592,14 @@ service imsdatadaemon /system/bin/imsdatadaemon
on property:sys.ims.QMI_DAEMON_STATUS=1
start imsdatadaemon
service imsqmidaemon /system/bin/imsqmidaemon
service imsqmidaemon /system/vendor/bin/imsqmidaemon
class main
user system
socket ims_qmid stream 0660 system radio
group radio log diag
writepid /dev/cpuset/system-background/tasks
service rmt_storage /system/bin/rmt_storage
service rmt_storage /system/vendor/bin/rmt_storage
class core
user root
writepid /dev/cpuset/system-background/tasks
@@ -588,24 +629,24 @@ service hci_filter_root /system/bin/wcnss_filter
disabled
#net_admin capability needed to write rfkill sysfs entry
service fmhal_service /system/bin/fmhal_service
service fmhal_service /system/vendor/bin/fmhal_service
class late_start
user bluetooth
group bluetooth net_bt_admin net_admin
disabled
service tftp_server /system/bin/tftp_server
service tftp_server /system/vendor/bin/tftp_server
class core
user root
writepid /dev/cpuset/system-background/tasks
service per_mgr /system/bin/pm-service
service per_mgr /system/vendor/bin/pm-service
class core
user system
group system net_raw
writepid /dev/cpuset/system-background/tasks
service per_proxy /system/bin/pm-proxy
service per_proxy /system/vendor/bin/pm-proxy
class core
user system
group system
@@ -627,13 +668,13 @@ service config_bt_addr /system/vendor/bin/btnvtool -O
group bluetooth radio
oneshot
service config_bluetooth /system/bin/sh /system/etc/init.qcom.bt.sh "onboot"
service config_bluetooth /system/bin/sh /system/vendor/etc/init.qcom.bt.sh "onboot"
class core
user bluetooth
group bluetooth system
oneshot
service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
service hciattach /system/bin/sh /system/vendor/etc/init.qcom.bt.sh
class late_start
user bluetooth
group bluetooth net_bt_admin
@@ -653,26 +694,12 @@ service btsnoop /system/bin/btsnoop
disabled
oneshot
service ftmd /system/bin/ftmdaemon
class late_start
user root
group bluetooth net_bt_admin misc bluetooth diag net_bt
disabled
oneshot
service port-bridge /system/bin/port-bridge
class main
user radio system
group radio system inet
disabled
oneshot
service netmgrd /system/bin/netmgrd
service netmgrd /system/vendor/bin/netmgrd
class main
group radio system wakelock
writepid /dev/cpuset/system-background/tasks
service ipacm-diag /system/bin/ipacm-diag
service ipacm-diag /system/vendor/bin/ipacm-diag
class main
user system
socket ipacm_log_file dgram 660 system net_admin
@@ -812,7 +839,7 @@ service loc_launcher /system/vendor/bin/loc_launcher
group gps inet oem_2950 wifi
writepid /dev/cpuset/system-background/tasks
service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh
service fm_dl /system/bin/sh /system/vendor/bin/init.qcom.fm.sh
class late_start
user system
group system
@@ -823,7 +850,7 @@ on property:crypto.driver.load=1
insmod /system/lib/modules/qce.ko
insmod /system/lib/modules/qcedev.ko
service qcom-sh /system/bin/sh /init.qcom.sh
service qcom-sh /system/bin/sh /system/vendor/bin/init.qcom.sh
class late_start
user root
oneshot
@@ -843,7 +870,7 @@ service ril-daemon2 /vendor/bin/hw/rild -c 2
group radio cache inet misc audio log readproc wakelock
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
service ssr_setup /system/bin/ssr_setup
service ssr_setup /system/vendor/bin/ssr_setup
oneshot
disabled