From f9a11506da68328d47b4ff7bc9f7393465eeb04d Mon Sep 17 00:00:00 2001 From: Vachounet Date: Mon, 10 Apr 2017 16:51:48 +0200 Subject: [PATCH] potter: update ramdisk --- rootdir/etc/init.mmi.rc | 80 ++++----- rootdir/etc/init.qcom.rc | 367 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 401 insertions(+), 46 deletions(-) diff --git a/rootdir/etc/init.mmi.rc b/rootdir/etc/init.mmi.rc index 1edb4cd..3810123 100644 --- a/rootdir/etc/init.mmi.rc +++ b/rootdir/etc/init.mmi.rc @@ -55,7 +55,9 @@ on post-fs write /proc/sys/vm/page-cluster 0 on post-fs-data - + # AK09912 calibration file directory + mkdir /data/misc/akmd 0770 system compass + # Setup folders for security mkdir /persist/security 02770 mot_tpapi mot_tpapi mkdir /data/local/dbvc 0750 mot_tcmd shell @@ -103,6 +105,9 @@ on post-fs-data # Create directory for cutback mkdir /data/misc/cutback 0770 radio wifi + # Create directory for fm_radio + mkdir /data/misc/fm_radio 0770 system system + #setup folder for WLAN WAPI mkdir /data/wapi_certificate 0750 system wifi chown system wifi /data/wapi_certificate @@ -159,11 +164,13 @@ on boot chown system system /sys/class/backlight/lcd-backlight:0/max_brightness chmod 0664 /sys/class/backlight/lcd-backlight:0/max_brightness chmod 0664 /sys/class/leds/lcd-backlight/brightness - chown system system /sys/class/leds/white/brightness - chmod 0664 /sys/class/leds/white/brightness + chown system system /sys/class/leds/charging/brightness + chmod 0664 /sys/class/leds/charging/brightness # Change ownership for Dynamic-CABC feature chown system system /sys/class/graphics/fb0/cabc_mode + # Change ownership for for HBM feature + chown system system /sys/class/graphics/fb0/hbm # Change ownership for for ACL feature chown system system /sys/class/graphics/fb0/acl_mode @@ -179,57 +186,35 @@ on boot chown system system /sys/kernel/range/near chmod 0660 /sys/kernel/range/near - # Change the ownership of display TE files for tcmds +# Change ownership and permission for rear_sensor + chown system system /sys/class/i2c-dev/i2c-2/device/2-0049/enable_sar + chmod 0660 /sys/class/i2c-dev/i2c-2/device/2-0049/enable_sar + chown system system /sys/class/i2c-dev/i2c-2/device/2-0049/set_delay_ms + chmod 0660 /sys/class/i2c-dev/i2c-2/device/2-0049/set_delay_ms + chown system system /sys/class/i2c-dev/i2c-6/device/6-0049/enable_sar + chmod 0660 /sys/class/i2c-dev/i2c-6/device/6-0049/enable_sar + chown system system /sys/class/i2c-dev/i2c-6/device/6-0049/set_delay_ms + chmod 0660 /sys/class/i2c-dev/i2c-6/device/6-0049/set_delay_ms + +# Change the ownership of display TE files for tcmds chown root mot_tcmd /sys/class/graphics/fb0/te_enable chown root mot_tcmd /sys/class/graphics/fb0/frame_counter - # Change ownership of aov related sysfs entries + +# FPC device parameter permissions + chown system mot_tcmd /sys/bus/spi/devices/spi12.0/nav + chown system mot_tcmd /sys/bus/spi/devices/spi12.0/clk_enable + chown system mot_tcmd /sys/bus/spi/devices/spi12.0/dev_enable + chown system mot_tcmd /sys/bus/spi/devices/spi12.0/irq + chown system mot_tcmd /sys/bus/spi/devices/spi12.0/irq_cnt + chmod 0440 /sys/bus/spi/devices/spi12.0/irq_cnt + +# Change ownership of aov related sysfs entries wait /sys/kernel/aov/event chown audio audio /sys/kernel/aov/trigger chown audio audio /sys/kernel/aov/register chown audio audio /sys/kernel/aov/event - # Change permission for type C params - chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/CC_state - chown root mot_tcmd /sys/devices/soc/78b6000.i2c/i2c-2/2-0022/enable_vconn - # Change ownership and permission for AMPS factory testing - chown root mot_tcmd /sys/class/i2c-adapter/i2c-2/2-002d/enable - chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/enable - chown root mot_tcmd /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd - chmod 0660 /sys/class/i2c-adapter/i2c-2/2-002d/hsic_vdd - - # Change permission for fingerprint sensor - chown system mot_tcmd /sys/bus/spi/devices/spi8.0/nav - chown system mot_tcmd /sys/bus/spi/devices/spi8.0/clk_enable - chown system mot_tcmd /sys/bus/spi/devices/spi8.0/dev_enable - chown system mot_tcmd /sys/bus/spi/devices/spi8.0/irq - chown system mot_tcmd /sys/bus/spi/devices/spi8.0/irq_cnt - chmod 0440 /sys/bus/spi/devices/spi8.0/irq_cnt - - # STML4 driver parameter permissions - chown root mot_tcmd /sys/module/motosh/parameters/irq_disable - chmod 0660 /sys/module/motosh/parameters/irq_disable - - #STML4 device permissions - chown system compass /dev/motosh - chmod 0660 /dev/motosh - chown compass compass /dev/motosh_as - chmod 0660 /dev/motosh_as - chown compass compass /dev/motosh_ms - chmod 0660 /dev/motosh_ms - chown compass compass /sys/devices/virtual/motosh/motosh_as/timestamp_time_ns - chmod 0440 /sys/devices/virtual/motosh/motosh_as/timestamp_time_ns - chown compass compass /sys/devices/virtual/motosh/motosh_as/rv_6axis_update_rate - chmod 0660 /sys/devices/virtual/motosh/motosh_as/rv_6axis_update_rate - chown compass compass /sys/devices/virtual/motosh/motosh_as/rv_9axis_update_rate - chmod 0660 /sys/devices/virtual/motosh/motosh_as/rv_9axis_update_rate - chown compass compass /sys/devices/virtual/motosh/motosh_as/game_rv_update_rate - chmod 0660 /sys/devices/virtual/motosh/motosh_as/game_rv_update_rate - chown compass compass /sys/devices/virtual/motosh/motosh_as/gravity_update_rate - chmod 0660 /sys/devices/virtual/motosh/motosh_as/gravity_update_rate - chown compass compass /sys/devices/virtual/motosh/motosh_as/linear_accel_update_rate - chmod 0660 /sys/devices/virtual/motosh/motosh_as/linear_accel_update_rate - # Quiet binder logs write /sys/module/binder/parameters/debug_mask 0x5 @@ -315,3 +300,6 @@ on property:sys.wifi.tethering=true on property:sys.wifi.tethering=false write /sys/class/net/rmnet_data0/queues/rx-0/rps_cpus ${sys.rmnet_vnd.rps_mask} + +on property:ro.bootmode=normal + write /sys/module/usb3813_hub/parameters/boost_val 3 diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index c649f61..2730cc4 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -87,6 +87,8 @@ on boot 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 /proc/bluetooth/sleep/lpm + chown bluetooth bluetooth /proc/bluetooth/sleep/btwrite 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 @@ -138,12 +140,19 @@ on boot mkdir /persist/drm 0770 system system mkdir /persist/bluetooth 0770 bluetooth bluetooth mkdir /persist/misc 0770 system system + mkdir /persist/alarm 0770 system system + mkdir /persist/time 0770 system system #Create NETMGR daemon socket area mkdir /dev/socket/netmgr 0750 radio radio setprop wifi.interface wlan0 +# Define TCP buffer sizes for various networks +# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, + setprop net.tcp.buffersize.wifi 524288,2097152,4194304,262144,524288,1048576 + + setprop ro.telephony.call_ring.multiple false #enable camera read sensors data @@ -154,6 +163,19 @@ on boot #For bridgemgr daemon to inform the USB driver of the correct transport chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio/transport +# Define TCP buffer sizes for various networks +# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, + setprop net.tcp.buffersize.default 4096,87380,524288,4096,16384,110208 + setprop net.tcp.buffersize.lte 2097152,4194304,8388608,262144,524288,1048576 + setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208 + setprop net.tcp.buffersize.hspa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hsupa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hsdpa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040 + setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 + setprop net.tcp.buffersize.evdo 4094,87380,524288,4096,16384,262144 + setprop net.tcp.2g_init_rwnd 10 # Assign TCP buffer thresholds to be ceiling value of technology maximums @@ -406,6 +428,11 @@ service perfd /system/vendor/bin/perfd socket perfd seqpacket 0666 root system writepid /dev/cpuset/system-background/tasks +service qcomsysd /system/bin/qcom-system-daemon + class main + user root + group root qcom_diag + service qseecomd /system/bin/qseecomd class core user root @@ -445,6 +472,21 @@ service cnd /system/bin/cnd class main socket cnd stream 660 root inet +service dpmd /system/bin/dpmd + class late_start + socket dpmd stream 660 root system + group system readproc + +service qseeproxydaemon /system/vendor/bin/qseeproxydaemon + class late_start + user system + group system + +service esepmdaemon /system/vendor/bin/esepmdaemon + class core + user system + group nfc + service wcnss-service /system/bin/wcnss_service class main user system @@ -456,6 +498,13 @@ service adsprpcd /system/bin/adsprpcd user media group media +# Start AKM executable +service ecompassd /system/bin/akmd09912 + class main + user compass + group compass misc input + disabled + service irsc_util /system/bin/irsc_util "/etc/sec_config" class core user root @@ -500,6 +549,25 @@ service rmt_storage /system/bin/rmt_storage class core user root +on property:wc_transport.start_fmhci=true + start fmhal_service + +on property:wc_transport.start_fmhci=false + stop fmhal_service + +service start_hci_filter /system/bin/wcnss_filter + class late_start + user root + group bluetooth qcom_diag system wakelock diag log + disabled + +#net_admin capability needed to write rfkill sysfs entry +service fmhal_service /system/bin/fmhal_service + class late_start + user bluetooth + group bluetooth net_bt_admin net_admin + disabled + service tftp_server /system/bin/tftp_server class core user root @@ -521,12 +589,96 @@ on property:init.svc.per_mgr=running on property:sys.shutdown.requested=* stop per_proxy +on property:ro.hw.ecompass=true + enable ecompassd + service config_bt_addr /system/bin/btnvtool -O class core user bluetooth group bluetooth radio oneshot +service config_bluetooth /system/bin/sh /system/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 + class late_start + user bluetooth + group bluetooth net_bt_admin + disabled + oneshot + +on property:bluetooth.hciattach=true + start hciattach + +on property:bluetooth.hciattach=false + setprop bluetooth.status off + +#service hciattach_ath3k /system/bin/sh /system/etc/init.ath3k.bt.sh +# class late_start +# user bluetooth +# group system bluetooth net_bt_admin misc +# disabled +# oneshot + +# Service not used +#service bt-dun /system/bin/dun-server /dev/smd7 /dev/rfcomm0 +# class late_start +# user bluetooth +# group bluetooth net_bt_admin inet +# 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/ftmdaemon + class late_start + user root + group bluetooth net_bt_admin misc net_bt_stack qcom_diag net_bt + 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 + disabled + 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 +# user root +# group radio audio bluetooth gps nfc qcom_diag +# disabled + service netmgrd /system/bin/netmgrd class main @@ -588,6 +740,221 @@ service wpa_supplicant /system/bin/wpa_supplicant \ disabled oneshot +service wigig_supplicant /system/bin/wpa_supplicant \ + -iwigig0 -Dnl80211 -c/data/misc/wifi/wigig_supplicant.conf \ + -m/data/misc/wifi/wigig_p2p_supplicant.conf \ + -O/data/misc/wifi/wigig_sockets -dd \ + -e/data/misc/wifi/wigig_entropy.bin -g@android:wpa_wigig0 + # 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 + class main + socket wpa_wigig0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd_wlan0 /system/bin/dhcpcd + class late_start + disabled + oneshot + +service dhcpcd_bond0 /system/bin/dhcpcd -ABKLG + class late_start + disabled + oneshot + +service dhcpcd_p2p /system/bin/dhcpcd -G + 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 + +on property:wifi.ftmd.load=true + insmod /system/lib/modules/pronto/pronto_wlan.ko con_mode=5 + +service wlan_logging /system/bin/cnss_diag -q -f + class main + user system + group system wifi inet net_admin sdcard_rw media_rw diag + disabled + oneshot + +service cnss-daemon /system/bin/cnss-daemon -n -l + class late_start + user system + group system inet net_admin wifi + +on property:sys.shutdown.requested=* + stop cnss-daemon + +service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG + class late_start + disabled + oneshot + +service iprenew_bt-pan /system/bin/dhcpcd -n + class late_start + disabled + oneshot + +service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG + disabled + oneshot + +service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG + disabled + oneshot + +service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG + disabled + oneshot + +service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG + disabled + oneshot + +service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG + disabled + oneshot + +service loc_launcher /system/bin/loc_launcher + #loc_launcher will start as root and set its uid to gps + class late_start + group gps inet qcom_diag wifi + +service fm_dl /system/bin/sh /system/etc/init.qcom.fm.sh + class late_start + user system + group system + disabled + oneshot + +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 + class late_start + user root + oneshot + +service sensor-sh /system/bin/sh /init.qcom.sensors.sh + class core + user root + oneshot + +service qcom-post-boot /system/bin/sh /system/etc/init.qcom.post_boot.sh + class late_start + user root + disabled + oneshot + +service wifi-sdio-on /system/bin/sh /system/etc/init.qcom.sdio.sh + class late_start + group wifi inet + disabled + oneshot + +service wifi-crda /system/bin/sh /system/etc/init.crda.sh + class late_start + user root + disabled + oneshot + +service atfwd /system/bin/ATFWD-daemon + class late_start + user system + group system radio + +service hostapd /system/bin/hostapd -dd /data/misc/wifi/hostapd.conf + class late_start + user root + group root + 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 + socket rild-debug2 stream 660 radio system + user root + disabled + 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 + service hostapd /system/bin/hostapd -dd /data/misc/wifi/hostapd.conf class late_start user root