diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 06f4518..0954170 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -68,6 +68,15 @@ on early-boot write /sys/kernel/boot_slpi/boot 1 exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qcom.early_boot.sh + # 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/sns.reg chown system system /mnt/vendor/persist/sensors/sensors_list.txt @@ -131,8 +140,8 @@ on boot chmod 0444 /sys/devices/platform/msm_hsusb/gadget/usb_state -# Define TCP buffer sizes for various networks -# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, +# 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 8388608 @@ -167,18 +176,6 @@ on boot chown system system /sys/class/backlight/panel0-backlight/brightness chown system system /sys/class/backlight/panel0-backlight/max_brightness - # LCD - chown system system /sys/class/lcd/panel/hmt_on - chmod 0660 /sys/class/lcd/panel/hmt_on - chown system system /sys/class/lcd/panel/hmt_bright - chmod 0660 /sys/class/lcd/panel/hmt_bright - chown system system /sys/class/lcd/panel/power_reduce - chmod 0660 /sys/class/lcd/panel/power_reduce - - # mDNIe - chown system system /sys/class/mdnie/mdnie/mode - chown system system /sys/class/mdnie/mdnie/mode_max - # Allow access to sensors device attributes chown system system /sys/class/sensors/MPU6050-accel/enable chown system system /sys/class/sensors/MPU6050-accel/poll_delay @@ -195,6 +192,7 @@ on boot # Create directory used for display # for backward compatibility + mkdir /persist/display 0770 system graphics mkdir /mnt/vendor/persist/display 0770 system graphics # Create vpp directory @@ -204,9 +202,6 @@ on boot # Create hvdcp_opti directory mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system - # Permissions for Power HAL - chown system system /sys/class/sec/tsp/cmd - # Fingerprint sensor chmod 0660 /dev/esfp0 chown system system /dev/esfp0 @@ -434,8 +429,6 @@ on property:sys.boot_completed=1 #WDSP FW boot sysfs node used by STHAL chown media audio /sys/kernel/wdsp0/boot chown media audio /sys/kernel/wcd_cpe0/fw_name - #Reinit lmkd to reconfigure lmkd properties - setprop lmkd.reinit 1 on property:persist.vendor.radio.atfwd.start=false stop vendor.atfwd @@ -468,6 +461,12 @@ service dpmQmiMgr /system/vendor/bin/dpmQmiMgr user system group system +service vendor.qrtr-ns /vendor/bin/qrtr-ns -f + class core + user vendor_qrtr + group vendor_qrtr + capabilities NET_BIND_SERVICE + service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config" class core user root @@ -483,6 +482,13 @@ service vendor.tftp_server /vendor/bin/tftp_server class core user root +service vendor.start_hci_filter /system/vendor/bin/wcnss_filter + class late_start + user bluetooth + group bluetooth diag system wakelock + seclabel u:r:bluetooth:s0 + disabled + service vendor.port-bridge /system/vendor/bin/port-bridge class main user radio @@ -554,6 +560,29 @@ on property:ro.vendor.use_data_netmgrd=false # netmgr not supported on specific target stop vendor.netmgrd +# Adjust socket buffer to enlarge TCP receive window for high bandwidth +# but only if ro.data.large_tcp_window_size property is set. +on property:ro.data.large_tcp_window_size=true + write /proc/sys/net/ipv4/tcp_adv_win_scale 2 + +on property:sys.sysctl.tcp_adv_win_scale=* + write /proc/sys/net/ipv4/tcp_adv_win_scale ${sys.sysctl.tcp_adv_win_scale} + +service wpa_supplicant /vendor/bin/hw/wpa_supplicant \ + -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 -dd \ + -g@android:vendor_wpa_wlan0 +# we will start as root and wpa_supplicant will switch to user wifi +# after setting up the capabilities required for WEXT +# user wifi +# group wifi inet keystore + interface android.hardware.wifi.supplicant@1.0::ISupplicant default + interface android.hardware.wifi.supplicant@1.1::ISupplicant default + interface android.hardware.wifi.supplicant@1.2::ISupplicant default + class main + socket vendor_wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + service vendor.wigig_supplicant /vendor/bin/hw/wpa_supplicant \ -iwigig0 -Dnl80211 -c/data/vendor/wifi/wigig_supplicant.conf \ -m/data/vendor/wifi/wigig_p2p_supplicant.conf \ @@ -578,6 +607,7 @@ service vendor.move_wifi_data /system/bin/move_wifi_data.sh oneshot service wigignpt /vendor/bin/wigignpt + interface vendor.qti.hardware.wigig.netperftuner@1.0::INetPerfTuner default class hal socket wigignpt stream 660 system wifi user system @@ -585,6 +615,46 @@ service wigignpt /vendor/bin/wigignpt capabilities NET_ADMIN disabled +service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG + class late_start + disabled + oneshot + +service dhcpcd_bond0 /system/bin/dhcpcd -ABKLG + class late_start + disabled + oneshot + +service dhcpcd_p2p /system/bin/dhcpcd -ABKLG + class late_start + disabled + oneshot + +service dhcpcd_wigig0 /system/bin/dhcpcd -ABKLG + class late_start + disabled + oneshot + +service iprenew_wlan0 /system/bin/dhcpcd -n + class late_start + disabled + oneshot + +service iprenew_bond0 /system/bin/dhcpcd -n + class late_start + disabled + oneshot + +service iprenew_p2p /system/bin/dhcpcd -n + class late_start + disabled + oneshot + +service iprenew_wigig0 /system/bin/dhcpcd -n + class late_start + disabled + oneshot + service ptt_socket_app /system/vendor/bin/ptt_socket_app -d class main user wifi @@ -717,6 +787,14 @@ service hostapd_fst /vendor/bin/hw/hostapd -dd -g /data/vendor/wifi/hostapd/glob disabled oneshot +service vendor.wigig_hostapd /vendor/bin/hw/hostapd -dd -j wigighostapd /data/vendor/wifi/hostapd/wigig_hostapd.conf + class late_start + capabilities NET_ADMIN NET_RAW + user wifi + group wifi inet keystore + oneshot + disabled + service ims_regmanager /system/vendor/bin/exe-ims-regmanagerprocessnative class late_start group net_bt_admin inet radio wifi @@ -725,6 +803,10 @@ service ims_regmanager /system/vendor/bin/exe-ims-regmanagerprocessnative 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 @@ -878,6 +960,12 @@ service chre /vendor/bin/chre socket chre seqpacket 0660 root system shutdown critical +service bugreport /system/bin/dumpstate -d -p -B -z -o /data/user_de/0/com.android.shell/files/bugreports/bugreport + class main + disabled + oneshot + keycodes 114 115 116 + #Set GPU Opengles version on property:vendor.opengles.version=* setprop ro.opengles.version ${vendor.opengles.version} @@ -901,4 +989,10 @@ service vendor.audio-hal-2-0 /vendor/bin/hw/android.hardware.audio@2.0-service capabilities BLOCK_SUSPEND ioprio rt 4 writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks - onrestart restart audioserver + # audioflinger restarts itself when it loses connection with the hal + # and its .rc file has an "onrestart restart audio-hal" rule, thus + # an additional auto-restart from the init process isn't needed. + oneshot + interface android.hardware.audio@5.0::IDevicesFactory default + interface android.hardware.audio@4.0::IDevicesFactory default + interface android.hardware.audio@2.0::IDevicesFactory default