# Copyright (c) 2011, Code Aurora Forum. 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 Code Aurora Forum, Inc. 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. # # #start camera server as daemon service qcamerasvr /system/bin/mm-qcamera-daemon class late_start user system group system camera inet graphics #start GNSS/Sensor interface daemon #service gsiff_daemon /system/bin/gsiff_daemon # class late_start # user system # group qcom_oncrpc # on emmc mount the partition containing firmware on emmc-fs mkdir /system devwait emmc@system mount ext4 emmc@system /system ro noatime barrier=1 mkdir /data 0771 system system devwait emmc@userdata mount_all /fstab.imnj mkdir /cache 0770 system cache devwait emmc@cache mount ext4 emmc@cache /cache nosuid nodev noatime barrier=1 mkdir /devlog 0700 root root devwait emmc@devlog mount ext4 emmc@devlog /devlog nosuid nodev noatime barrier=1 mkdir /nfc_record 0700 system system devwait emmc@nfc_record mount ext4 emmc@nfc_record /nfc_record nosuid nodev noatime barrier=1 mkdir /ramdump 0700 root root devwait emmc@reserve mount vfat emmc@reserve /ramdump rw umount /ramdump mkdir /data/tombstones 0771 system system symlink /data/tombstones /tombstones mkdir /tombstones/mdm 0771 system system mkdir /tombstones/modem 0771 system system mkdir /tombstones/lpass 0771 system system mkdir /tombstones/dsps 0771 system system # For firmwares mkdir /firmware 0771 system system mkdir /vendor 0771 system system mkdir /vendor/firmware 0771 system system # 8064 has only mdm, use radio partition for it. mkdir /firmware/mdm 0771 system system devwait emmc@radio mount vfat emmc@radio /firmware/mdm ro shortname=lower exec /system/bin/sh /init.qcom.firmware_links.sh /firmware/mdm/image /vendor/firmware "*.mbn *.img" mkdir /data/qcks 0700 root system mount tmpfs tmpfs /data/qcks size=20m,mode=0750,gid=1000 mkdir /data/efs 0700 root system mount tmpfs tmpfs /data/efs size=20m,mode=0750,gid=1000 # 8064 need to created this folder for CSD-QMI usage mkdir /data/audio 0775 media audio chmod 2775 /data/audio mkdir /firmware/q6 0771 system system devwait emmc@adsp mount vfat emmc@adsp /firmware/q6 ro shortname=lower exec /system/bin/sh /init.qcom.firmware_links.sh /firmware/q6 /vendor/firmware "q6.*" # link widevine drm library path symlink /system/vendor/lib /vendor/lib mkdir /storage 0050 system sdcard_r mkdir /storage/sdcard0 0000 system system export EXTERNAL_STORAGE /storage/sdcard0 mkdir /storage/ext_sd 0000 system system mkdir /storage/usb 0000 system system export EXTERNAL_STORAGE2 /storage/ext_sd export EXTERNAL_STORAGE3 /storage/ext_sd export EXTERNAL_STORAGE4 /storage/usb export EXTERNAL_STORAGE5 /storage/usb on init # for Invense MPU3050 chmod 0664 /dev/mpu chmod 0664 /dev/mpuirq chmod 0664 /dev/timerirq chown system system /dev/mpu chown system system /dev/mpuirq chown system system /dev/timerirq # for ST R3GD20 chown system system /sys/class/htc_gyro/gyro/enable_device chown system system /sys/class/htc_gyro/gyro/pollrate_ms chown system system /sys/class/htc_gyro/gyro/range chown system system /sys/class/htc_gyro/gyro/enable_polling chown system system /sys/class/htc_gyro/gyro/fifo_samples chown system system /sys/class/htc_gyro/gyro/fifo_mode chown system system /sys/class/htc_gyro/gyro/reg_value chown system system /sys/class/htc_gyro/gyro/reg_addr chmod 0664 /sys/class/htc_gyro/gyro/enable_device chmod 0664 /sys/class/htc_gyro/gyro/pollrate_ms chmod 0664 /sys/class/htc_gyro/gyro/range chmod 0664 /sys/class/htc_gyro/gyro/enable_polling chmod 0664 /sys/class/htc_gyro/gyro/fifo_samples chmod 0664 /sys/class/htc_gyro/gyro/fifo_mode chmod 0664 /sys/class/htc_gyro/gyro/reg_value chmod 0664 /sys/class/htc_gyro/gyro/reg_addr # for AKM8963 chown system system /dev/akm8963_dev chown system system /sys/class/compass/akm8963/enable_acc chown system system /sys/class/compass/akm8963/enable_mag chown system system /sys/class/compass/akm8963/enable_ori chown system system /sys/class/compass/akm8963/delay_acc chown system system /sys/class/compass/akm8963/delay_mag chown system system /sys/class/compass/akm8963/delay_ori chown system system /sys/class/compass/akm8963/accel chmod 0660 /dev/akm8963_dev chmod 0660 /sys/class/compass/akm8963/enable_acc chmod 0660 /sys/class/compass/akm8963/enable_mag chmod 0660 /sys/class/compass/akm8963/enable_ori chmod 0660 /sys/class/compass/akm8963/delay_acc chmod 0660 /sys/class/compass/akm8963/delay_mag chmod 0660 /sys/class/compass/akm8963/delay_ori chmod 0660 /sys/class/compass/akm8963/accel # for BMA250 BOSCH chown system system /sys/class/htc_g_sensor/g_sensor/bandwidth chown system system /sys/class/htc_g_sensor/g_sensor/chip_layout chown system system /sys/class/htc_g_sensor/g_sensor/delay chown system system /sys/class/htc_g_sensor/g_sensor/eeprom_writing chown system system /sys/class/htc_g_sensor/g_sensor/enable chown system system /sys/class/htc_g_sensor/g_sensor/enable_int chown system system /sys/class/htc_g_sensor/g_sensor/fast_calibration_x chown system system /sys/class/htc_g_sensor/g_sensor/fast_calibration_y chown system system /sys/class/htc_g_sensor/g_sensor/fast_calibration_z chown system system /sys/class/htc_g_sensor/g_sensor/flat_hold_time chown system system /sys/class/htc_g_sensor/g_sensor/flat_theta chown system system /sys/class/htc_g_sensor/g_sensor/get_raw_data chown system system /sys/class/htc_g_sensor/g_sensor/high_g_duration chown system system /sys/class/htc_g_sensor/g_sensor/high_g_threshold chown system system /sys/class/htc_g_sensor/g_sensor/int_mode chown system system /sys/class/htc_g_sensor/g_sensor/low_g_duration chown system system /sys/class/htc_g_sensor/g_sensor/low_g_threshold chown system system /sys/class/htc_g_sensor/g_sensor/mode chown system system /sys/class/htc_g_sensor/g_sensor/orient_blocking chown system system /sys/class/htc_g_sensor/g_sensor/orient_hyst chown system system /sys/class/htc_g_sensor/g_sensor/orient_mode chown system system /sys/class/htc_g_sensor/g_sensor/orient_theta chown system system /sys/class/htc_g_sensor/g_sensor/range chown system system /sys/class/htc_g_sensor/g_sensor/reg chown system system /sys/class/htc_g_sensor/g_sensor/selftest chown system system /sys/class/htc_g_sensor/g_sensor/set_k_value chown system system /sys/class/htc_g_sensor/g_sensor/slope_duration chown system system /sys/class/htc_g_sensor/g_sensor/slope_threshold chown system system /sys/class/htc_g_sensor/g_sensor/tap_duration chown system system /sys/class/htc_g_sensor/g_sensor/tap_quiet chown system system /sys/class/htc_g_sensor/g_sensor/tap_samp chown system system /sys/class/htc_g_sensor/g_sensor/tap_shock chown system system /sys/class/htc_g_sensor/g_sensor/tap_threshold chmod 0660 /sys/class/htc_g_sensor/g_sensor/bandwidth chmod 0660 /sys/class/htc_g_sensor/g_sensor/chip_layout chmod 0660 /sys/class/htc_g_sensor/g_sensor/delay chmod 0660 /sys/class/htc_g_sensor/g_sensor/eeprom_writing chmod 0660 /sys/class/htc_g_sensor/g_sensor/enable chmod 0660 /sys/class/htc_g_sensor/g_sensor/enable_int chmod 0660 /sys/class/htc_g_sensor/g_sensor/fast_calibration_x chmod 0660 /sys/class/htc_g_sensor/g_sensor/fast_calibration_y chmod 0660 /sys/class/htc_g_sensor/g_sensor/fast_calibration_z chmod 0660 /sys/class/htc_g_sensor/g_sensor/flat_hold_time chmod 0660 /sys/class/htc_g_sensor/g_sensor/flat_theta chmod 0660 /sys/class/htc_g_sensor/g_sensor/get_raw_data chmod 0660 /sys/class/htc_g_sensor/g_sensor/high_g_duration chmod 0660 /sys/class/htc_g_sensor/g_sensor/high_g_threshold chmod 0660 /sys/class/htc_g_sensor/g_sensor/int_mode chmod 0660 /sys/class/htc_g_sensor/g_sensor/low_g_duration chmod 0660 /sys/class/htc_g_sensor/g_sensor/low_g_threshold chmod 0660 /sys/class/htc_g_sensor/g_sensor/mode chmod 0660 /sys/class/htc_g_sensor/g_sensor/orient_blocking chmod 0660 /sys/class/htc_g_sensor/g_sensor/orient_hyst chmod 0660 /sys/class/htc_g_sensor/g_sensor/orient_mode chmod 0660 /sys/class/htc_g_sensor/g_sensor/orient_theta chmod 0660 /sys/class/htc_g_sensor/g_sensor/range chmod 0660 /sys/class/htc_g_sensor/g_sensor/reg chmod 0660 /sys/class/htc_g_sensor/g_sensor/selftest chmod 0660 /sys/class/htc_g_sensor/g_sensor/set_k_value chmod 0660 /sys/class/htc_g_sensor/g_sensor/slope_duration chmod 0660 /sys/class/htc_g_sensor/g_sensor/slope_threshold chmod 0660 /sys/class/htc_g_sensor/g_sensor/tap_duration chmod 0660 /sys/class/htc_g_sensor/g_sensor/tap_quiet chmod 0660 /sys/class/htc_g_sensor/g_sensor/tap_samp chmod 0660 /sys/class/htc_g_sensor/g_sensor/tap_shock chmod 0660 /sys/class/htc_g_sensor/g_sensor/tap_threshold symlink /storage/ext_sd /sdcard2 # htc_ebdlog chown root root /devlog chmod 0700 /devlog # create mountpoints rm /sdcard symlink /storage/sdcard0 /sdcard symlink /storage/sdcard0 /mnt/sdcard # NETWORK: NAT setting # To prevent out of WINDOW ACK from making # connection tracking to treat them as INVALID packet write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 # for pnp thermal condition write sys/power/pnpmgr/thermal/thermal_c0 1512000 write sys/power/pnpmgr/thermal/thermal_c1 1512000 write sys/power/pnpmgr/thermal/thermal_c2 1512000 write sys/power/pnpmgr/thermal/thermal_c3 1512000 write sys/power/pnpmgr/thermal/thermal_final 1512000 write sys/power/pnpmgr/thermal/thermal_g0 400000000 on post-fs-data mkdir /data/radio 0770 radio radio chmod 2770 /data/radio #+SSD_RIL: from Qualcomm socket path chmod 2770 /dev/socket/qmux_radio mkdir /dev/socket/qmux_audio 0770 audio audio chmod 2770 /dev/socket/qmux_audio mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth chmod 2770 /dev/socket/qmux_bluetooth #-SSD_RIL: from Qualcomm socket path # HTC add: 3LM setting on ICS setprop ro.3lm.production 1 setprop ro.3LM.extended 1 setprop ro.3LM.oem_manifest 1 # HTC add: 3LM encryption on ICS setprop ro.3lm.legacy_encryption 1 mkdir /data/secure 0755 system system mkdir /data/secure/data 0755 system system mount tmpfs tmpfs /data/secure/data mode=0755,gid=1000 # HTC add: double check the perms of /data/data for already existed case chown system system /data/data chmod 0771 /data/data # If there is no fs-post-data action in the init..rc file, you # must uncomment this line, otherwise encrypted filesystems # won't work. # Set indication (checked by vold) that we have finished this action setprop vold.post_fs_data_done 1 on boot chmod 0770 /nfc_record chown system system /nfc_record # prevent device suspend before boot complete write /sys/power/wake_lock boot_lock # we will remap this as /mnt/sdcard with the sdcard fuse tool mkdir /data/media 0775 media_rw media_rw chown media_rw media_rw /data/media setprop ro.crypto.fuse_sdcard true # For KDDI project to enable customize wallpaper color. Read by OOBE setprop ro.cust.enableManufactureCode 1 # give system access to wpa_supplicant.conf for backup and restore mkdir /data/misc/wifi/sockets 0771 wifi wifi mkdir /data/misc/dhcp 0755 wifi wifi chown dhcp dhcp /data/misc/dhcp chmod 0770 /data/misc/wifi write /sys/module/perflock/parameters/legacy_mode 0 write /sys/devices/i2c-3/3-0024/cyttsp_update_fw 1 start qcamerasvr #BT + chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /proc/bluetooth/sleep/proto chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock #BT - # for Felica add + mkdir /data/system 0775 system system exec system/bin/felica_startup # for Felica add - # for snfc add + mkdir /system/etc/snfc 0555 system system # for snfc add - #simlock + chown radio radio /dev/simlock chmod 0660 /dev/simlock #simlock - # HTC SSD Peripheral UI - BEGIN chown system system /sys/class/leds/red/brightness chown system system /sys/class/leds/red/blink chown system system /sys/class/leds/red/off_timer chown system system /sys/class/leds/green/brightness chown system system /sys/class/leds/green/blink chown system system /sys/class/leds/green/off_timer chown system system /sys/class/leds/blue/brightness chown system system /sys/class/leds/blue/blink chown system system /sys/class/leds/blue/off_timer chown system system /sys/class/leds/amber/brightness chown system system /sys/class/leds/amber/blink chown system system /sys/class/leds/amber/off_timer chown system system /sys/class/leds/button-backlight-portrait/brightness chown system system /sys/class/leds/button-backlight-landscape/brightness chown system system /sys/class/leds/amber-portrait/brightness chown system system /sys/class/leds/green-portrait/brightness chown system system /sys/class/leds/blue-portrait/brightness chown system system /sys/class/leds/amber-landscape/brightness chown system system /sys/class/leds/green-landscape/brightness chown system system /sys/class/leds/blue-landscape/brightness chown system system /sys/class/leds/sharekey/brightness chown system system /sys/class/leds/sharekey/breath_times chown system system /sys/class/leds/sharekey/breath_max_brightness chown system system /sys/class/leds/charming-led/brightness chown system system /sys/class/leds/charming-led/blink chown system system /sys/class/leds/charming-led/off_timer chown system system /sys/class/leds/flashlight/brightness chown system system /sys/class/leds/caps/brightness chown system system /sys/class/leds/func/brightness chown media media /sys/class/leds/green-camera/brightness chown system system /sys/devices/virtual/htc_accessory/fm/flag chown system system /sys/devices/virtual/htc_accessory/tty/flag chown system system /sys/class/leds/indicator/ModeRGB chown system system /sys/class/leds/indicator/off_timer # HTC SSD Peripheral UI - END # HTC SSD USB # [ADD START] 2012/01/17 KDDI : Android ICS chown root sdcard_rw /sys/class/android_usb/f_mass_storage/lun0/export chown root sdcard_rw /sys/class/android_usb/f_mass_storage/lun0/inquiry chown root sdcard_rw /sys/class/android_usb/f_mass_storage/lun0/unexport chown root sdcard_rw /sys/class/android_usb/f_mass_storage/lun0/opcode-e4/buffer chown root sdcard_rw /sys/class/android_usb/f_mass_storage/lun0/opcode-e4/size chown root sdcard_rw /sys/class/android_usb/f_mass_storage/lun0/opcode-e4/update # [ADD START] 2012/01/17 KDDI : Android ICS # permissions for NFC chmod 0666 /dev/pn544 chown nfc nfc /dev/pn544 setprop debug.nfc.fw_download "false" setprop debug.nfc.fw_boot_download "false" # disable L27 S3 static pull down disable write /sys/kernel/debug/pm8921-dbg/addr 0x0E3 write /sys/kernel/debug/pm8921-dbg/data 0xA0 write /sys/kernel/debug/pm8921-dbg/addr 0x1F5 write /sys/kernel/debug/pm8921-dbg/data 0xE1 # Load bcmdhd.ko while booting chmod 0444 /system/lib/modules/bcmdhd.ko insmod /system/lib/modules/bcmdhd.ko write /proc/sys/net/ipv6/conf/p2p0/disable_ipv6 1 # create symlink for fb1 as HDMI symlink /dev/graphics/fb1 /dev/graphics/hdmi # Remove write permissions to video related nodes chmod 0664 /sys/devices/virtual/graphics/fb1/hpd chmod 0664 /sys/devices/virtual/graphics/fb1/video_mode chmod 0664 /sys/devices/virtual/graphics/fb1/format_3d # Change owner and group for media server and surface flinger chown system system /sys/devices/virtual/graphics/fb1/format_3d #++SSD_GPS mkdir /dev/socket/qmux_gps 0770 gps gps chmod 2770 /dev/socket/qmux_gps #Create directories for QuIPS mkdir /data/misc/quipc 0770 gps system #Create directories for Location services mkdir /data/misc/location 0770 gps gps mkdir /data/misc/location/mq 0770 gps gps #--SSD_GPS #++SSD_AUDIO chown system audio /dev/tfa9887 chmod 0664 /dev/tfa9887 #--SSD_AUDIO # set RLIMIT_NICE to allow priorities from 19 to -20 setrlimit 8 268435456 268435456 # HTC SSD Camera chown media system /sys/camera_htccallback/htccallback chown media system /sys/camera_attrs/videochat # HTC SSD USB chown system system /sys/class/android_usb/f_modem/on chown system system /sys/class/android_usb/f_diag/on chown system system /sys/class/android_usb/f_rmnet/on #set diag permissions chown radio radio /dev/diag chown radio radio /dev/diag_mdm chown radio radio /dev/htcdiag chown radio radio /dev/diag_arm9 chown radio radio /dev/btdiag chmod 0660 /dev/diag chmod 0660 /dev/diag_mdm chmod 0660 /dev/htcdiag chmod 0660 /dev/diag_arm9 chmod 0660 /dev/btdiag chown root system /proc/driver/hdf chmod 0664 /proc/driver/hdf #set touch permissions chown system system /sys/android_touch/unlock # HTC SSD Camera chown media system /sys/camera_htccallback/htccallback chown media system /sys/camera_attrs/videochat # HTC SSD Battery - BEGIN # for RIL to notify battery driver talking and network_search state chown radio radio /sys/class/power_supply/battery/phone_call chmod 0220 /sys/class/power_supply/battery/phone_call chown radio radio /sys/class/power_supply/battery/network_search chmod 0220 /sys/class/power_supply/battery/network_search chown system system /sys/class/power_supply/battery/navigation chmod 0220 /sys/class/power_supply/battery/navigation # HTC SSD Battery - END # Define TCP buffer sizes for various networks # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576 setprop net.tcp.buffersize.lte 8188,174760,1048800,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.edge 4093,26280,35040,4096,16384,35040 setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 setprop net.tcp.buffersize.evdo_a 8184,64860,129720,23460,93840,1220608 setprop net.tcp.buffersize.evdo_b 8188,174160,524400,64860,129720,1220608 setprop net.tcp.buffersize.ehrpd 8184,64860,129720,23460,93840,1220608 setprop net.tcp.buffersize.ehrpd_a 8184,64860,129720,23460,93840,1220608 setprop net.tcp.buffersize.ehrpd_b 8188,174160,524400,64860,129720,1220608 # 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 1220608 write /proc/sys/net/core/wmem_max 1220608 # 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 service thermald_boot /system/bin/thermald -c /system/etc/thermald_boot.conf class core user root group root service thermald /system/bin/thermald class core user root group root disabled service mpdecision /system/bin/mpdecision --no_sleep --avg_comp class core user root service pnpmgr /system/bin/pnpmgr class core user root service adaptive /system/bin/adaptive -c 0 -s 150 -b 210 class core user root disabled service kickstart /system/bin/qcks -1 modem_st1 -2 modem_st2 -3 radio_config -4 cdma_record -i /vendor/firmware/ class core user root oneshot service memlock /system/bin/memlock class main cgroup bg user root disabled service usf_tester /system/bin/usf_tester user system group system inet disabled service usf_epos /system/bin/usf_epos user system group system inet disabled service usf_gesture /system/bin/usf_gesture user system group system inet disabled service usf_p2p /system/bin/usf_p2p user system group system inet disabled service usf_hovering /system/bin/usf_hovering user system group system inet disabled service usf-post-boot /system/bin/sh /system/etc/usf_post_boot.sh class late_start user root disabled oneshot #service qcom-wifi /system/bin/sh /system/etc/init.qcom.wifi.sh # oneshot # create virtual SD card at /mnt/sdcard, based on the /data/media directory # daemon will drop to user/group system/media_rw after initializing # underlying files in /data/media will be created with user and group media_rw (1023) service sdcard /system/bin/sdcard /data/media 1023 1023 class late_start # wifi ++ service p2p_supplicant /system/bin/wpa_supplicant \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 # 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_wlan0 dgram 660 wifi wifi disabled oneshot service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -puse_p2p_group_interface=1 # 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 socket wpa_wlan0 dgram 660 wifi wifi disabled oneshot service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL disabled oneshot service dhcpcd_p2p /system/bin/dhcpcd -aABKL disabled oneshot service iprenew_wlan0 /system/bin/dhcpcd -n disabled oneshot service iprenew_p2p /system/bin/dhcpcd -n disabled oneshot # wifi-- on property:init.svc.bootanim=stopped start usf-post-boot start post-boot # Overwrite ActivityManager's low memory killer settings write /sys/module/lowmemorykiller/parameters/adj 0,2,4,7,9,12 stop thermald_boot start thermald stop pnpmgr start pnpmgr write /sys/power/wake_unlock boot_lock service post-boot /system/bin/sh /system/etc/init.post_boot.sh user root disabled oneshot #++SSD_BT service btld /system/bin/btld -lpm 1 -hb 3000000 user root group bluetooth net_bt_admin disabled onrestart restart bluetoothd service dhcpcd_brcm-pan /system/bin/dhcpcd -ABKL disabled oneshot #--SSD_BT #DMagent service dmagent /system/bin/dmagent -N -P19 -VSY class late_start socket dmagent stream 660 root radio user root oneshot #++SSD_RIL # QMUX must be in multiple groups to support external process connections service qmuxd /system/bin/qmuxd class core user radio group radio audio gps service netmgrd /system/bin/netmgrd class core #--SSD_RIL #++SSD_GPS service quipc_igsn /system/bin/quipc_igsn class late_start user gps group inet gps disabled service quipc_main /system/bin/quipc_main class late_start user gps group gps net_admin wifi inet disabled #--SSD_GPS #HDMI service hdmid /system/bin/hdmid class late_start socket displayd stream 0660 root system graphics disabled on property:ro.hdmi.enable=true start hdmid service tpd /sbin/tpd class core cgroup bg user root # for USB internet sharing service udhcpd /system/bin/udhcpd disabled oneshot service netsharing_on /system/bin/netsharing net on disabled oneshot service netsharing_off /system/bin/netsharing net off disabled oneshot service netsharing_pass /system/bin/netsharing net_pass on disabled oneshot # bugreport is triggered by the KEY_VOL-UP and KEY_VOL-DOWN keycodes service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport disabled cgroup bg oneshot keycodes 114 115 service hdf /sbin/hdf class core oneshot on property:dev.bootcomplete=1 start bootcomplete service bootcomplete /system/bin/bootcomplete user root group root disabled oneshot service htc_ebdlogd /system/bin/htc_ebdlogd -s -k -P 7 user root cgroup bg disabled oneshot ioprio idle 0 service htc_ebdlogd_rel /system/bin/htc_ebdlogd -s -k user root cgroup bg disabled oneshot ioprio idle 0 # OMA DRM change start service fusermount /system/bin/fusermount -u /data/htcfs disabled oneshot service htcfs /system/bin/htcfs /data/htcfs -f -o allow_other class main onrestart restart fusermount # OMA DRM change end # Widevine DRM start service qseecomd /system/bin/qseecomd class late_start user system group system service hcheck /system/bin/hcheck class late_start user system group system oneshot # Widevine DRM end on property:ro.build.tags=test-keys start htc_ebdlogd on property:ro.build.tags=release-keys start htc_ebdlogd_rel # HTC Automotive - BEGIN service cand /system/bin/cand class main user root # HTC Automotive - END service felica_daemon /system/bin/felica_daemon class late_start oneshot service felica_agent /system/bin/felica_agent class late_start oneshot #One-seg services service jelly /system/bin/jellyservice class late_start user root group drm system audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw service mtvmf /system/bin/mtvmfservice class late_start user system group system audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw # compass/accelerometer daemon service akmd /system/bin/akmd class main user system group system misc input service mtvmfrec /system/bin/mtvmfrecservice class late_start user system group system audio camera graphics inet net_bt net_bt_admin net_raw sdcard_rw