SHARE
TWEET

Xperia acro HD (IS12S) init.semc.rc (6.1.D.0.170)

huhka_com Jul 31st, 2012 435 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## Disabled by CBUT - it doesn't work with Fuji
  2. ##on init
  3. ##    # start master reset
  4. ##    exec /sbin/mr
  5. ##    # Check if flash was aborted
  6. ##    exec /sbin/checkabortedflash
  7.  
  8. on early-fs
  9.     # Do some post work for dump before used
  10.     # by the system.
  11.     # exec /sbin/grabramdump
  12.  
  13. on post-fs
  14.     mkdir /data/tombstones 0755 system system
  15.     mkdir /data/crashsms 0711 system system
  16.     mkdir /data/crashsms/crashes 0755 system system
  17.     mkdir /data/mediaserver 0740 media media
  18.  
  19.     # Change to socket location on libkeyctrl/suntory for /data encryption
  20.     mkdir /dev/socket/suntory 0755 system system
  21.  
  22. on early-boot
  23.     # Start the offline charging (This blocks booting further in some cases)
  24.     exec /system/bin/chargemon
  25.  
  26.    
  27.    
  28.  
  29.     # Make sure the crashsms/crashes are writable by crashmonitor
  30.    
  31.    
  32.  
  33. service updatemiscta /system/bin/updatemiscta
  34.     class main
  35.     user root
  36.     oneshot
  37.  
  38. service iddd /system/bin/iddd
  39.     class main
  40.     user idd
  41.     group idd log
  42.  
  43. # Set the startup flag to boot complete, run on property change
  44. service setssflagbc /system/bin/startupflag bootcomplete
  45.     user root
  46.     oneshot
  47.     disabled
  48.  
  49. # AT+CTSA and AT+CKPD support
  50. service semc-atfwd-d /system/bin/semc-atfwd-d
  51.     user root
  52.     oneshot
  53.     disabled
  54.     class main
  55.  
  56. service fota-snoop /system/bin/fota-snoop
  57.     group cache
  58.     oneshot
  59.     disabled
  60.  
  61. on property:dev.bootcomplete=1
  62.     start setssflagbc
  63.     start semc-atfwd-d
  64.     start fota-snoop
  65.     # Ramdumper post processing
  66.     exec /sbin/grabramdump
  67.  
  68. # Start suntrold
  69. service suntrold /system/bin/suntrold
  70.     class main
  71.     user system
  72.     group system
  73.     oneshot
  74.  
  75. on property:persist.sys.kernel.log=logcat
  76.     start klogrouterd
  77.  
  78. on property:persist.sys.kernel.log=default
  79.     stop klogrouterd
  80.  
  81. service klogrouterd /system/bin/klogrouter logcat
  82.     oneshot
  83.     disabled
  84.  
  85.  
  86.  
  87. # Fast Dormancy
  88. service fast-dormancy /system/bin/fast-dormancy
  89.     class main
  90.  
  91. on property:ro.semc.enable.fast_dormancy=false
  92. stop fast-dormancy
  93.  
  94. on boot
  95. # Optimized browser caching and connection handling
  96.     setprop net.http.idle_cache.size  40
  97.     setprop net.http.threads  10
  98.     setprop net.webkit.cache.size  12582912
  99.     setprop net.nw.cache.prioadvstep  86400000
  100.     setprop net.nw.cache.weightadvstep  3600000
  101.     setprop net.nw.cache.orderby  weight
  102.     setprop net.http.idle_cache.shutdown  true
  103.     setprop net.webkit.cache.mindeadsize  4194304
  104.     setprop net.webkit.cache.maxdeadsize  4194304
  105.  
  106. service secchan /system/bin/secchand
  107.     class main
  108.     user system
  109.     group system
  110.  
  111. on init
  112.     write /sys/class/android_usb/android0/iSerial $ro.serialno
  113.     write /sys/class/android_usb/android0/f_rndis/manufacturer $ro.product.manufacturer
  114.     write /sys/class/android_usb/android0/f_rndis/vendorID 0fce
  115.     write /sys/class/android_usb/android0/f_rndis/wceis 1
  116.  
  117.     # setup the global environment
  118.     export EXTERNAL_STORAGE /mnt/sdcard
  119.     export EXTERNAL_STORAGE_USB /mnt/usbdisk
  120.  
  121.     # create mountpoint
  122.     mkdir /mnt/usbdisk 0000 system system
  123.  
  124.     # Create symlink
  125.     symlink /mnt/sdcard /sdcard
  126.     symlink /mnt/usbdisk /usbdisk
  127.  
  128. on post-fs
  129.    # Run pre_hw_config.sh before entering Charge only mode.
  130.    exec /system/bin/sh /system/etc/pre_hw_config.sh
  131.  
  132. on post-fs-data
  133.     # Clear dalvik cache
  134.     exec /init.clrdex.sh
  135.  
  136.     chown system system /sys/devices/platform/msm_hsusb/gadget/lun1/file
  137.     chmod 0660 /sys/devices/platform/msm_hsusb/gadget/lun1/file
  138.     write /sys/class/android_usb/f_mass_storage/inquiry_string "SONY    Mass Storage    0100"
  139.     write /sys/class/android_usb/f_cdrom/cdrom_inquiry_string "SONY    CD-ROM          0100"
  140.     write /sys/class/android_usb/f_mass_storage/serial_number $ro.serialno
  141.     write /sys/class/android_usb/f_mass_storage/eui64_id 000AD90000000000
  142.     write /sys/devices/platform/msm_hsusb/gadget/lun0/nofua 1
  143.     write /sys/devices/platform/msm_hsusb/gadget/lun1/nofua 1
  144.     setprop vold.post_fs_data_done 1
  145.  
  146. on early-boot
  147.     # set RLIMIT_MEMLOCK to 64MB
  148.     setrlimit 8 67108864 67108864
  149.  
  150.    # Touch firmware update
  151.    exec /system/bin/sh /system/etc/clearpad_fwloader.sh
  152.  
  153.    # Remove write permissions to video related nodes
  154.    chmod 0660 /sys/devices/virtual/graphics/fb1/video_mode
  155.    chmod 0440 /sys/devices/virtual/graphics/fb1/video_mode_str
  156.    chmod 0440 /sys/devices/virtual/graphics/fb1/connected
  157.    chmod 0440 /sys/devices/virtual/graphics/fb1/edid_modes
  158.    chmod 0440 /sys/devices/virtual/graphics/fb1/hdcp
  159.    chmod 0660 /sys/devices/virtual/graphics/fb1/hpd
  160.    chmod 0440 /sys/devices/virtual/graphics/fb1/3d_present
  161.    chmod 0440 /sys/devices/virtual/graphics/fb1/hdcp_present
  162.    chmod 0660 /sys/devices/virtual/graphics/fb1/format_3d
  163.    chmod 0660 /sys/devices/virtual/graphics/fb1/edid_3d_modes
  164.    chmod 0440 /sys/devices/virtual/graphics/fb1/underscan
  165.    chmod 0440 /sys/devices/virtual/graphics/fb1/dvi
  166.    chmod 0440 /sys/devices/virtual/graphics/fb1/pa
  167.    chmod 0660 /sys/devices/virtual/graphics/fb1/cec
  168.    chmod 0660 /sys/devices/virtual/graphics/fb1/cec_logical_addr
  169.    chmod 0660 /sys/devices/virtual/graphics/fb1/cec_wr_frame
  170.    chmod 0660 /sys/devices/virtual/graphics/fb1/product_description
  171.    chmod 0660 /sys/devices/virtual/graphics/fb1/vendor_name
  172.  
  173.    # Change owner and group for system server and surface flinger
  174.    chown system graphics /sys/devices/virtual/graphics/fb1/video_mode
  175.    chown system graphics /sys/devices/virtual/graphics/fb1/video_mode_str
  176.    chown system graphics /sys/devices/virtual/graphics/fb1/connected
  177.    chown system graphics /sys/devices/virtual/graphics/fb1/edid_modes
  178.    chown system graphics /sys/devices/virtual/graphics/fb1/hdcp
  179.    chown system graphics /sys/devices/virtual/graphics/fb1/hpd
  180.    chown system graphics /sys/devices/virtual/graphics/fb1/3d_present
  181.    chown system graphics /sys/devices/virtual/graphics/fb1/hdcp_present
  182.    chown system graphics /sys/devices/virtual/graphics/fb1/format_3d
  183.    chown system graphics /sys/devices/virtual/graphics/fb1/edid_3d_modes
  184.    chown system graphics /sys/devices/virtual/graphics/fb1/underscan
  185.    chown system graphics /sys/devices/virtual/graphics/fb1/dvi
  186.    chown system graphics /sys/devices/virtual/graphics/fb1/pa
  187.    chown system graphics /sys/devices/virtual/graphics/fb1/cec
  188.    chown system graphics /sys/devices/virtual/graphics/fb1/cec_logical_addr
  189.    chown system graphics /sys/devices/virtual/graphics/fb1/cec_wr_frame
  190.    chown system graphics /sys/devices/virtual/graphics/fb1/product_description
  191.    chown system graphics /sys/devices/virtual/graphics/fb1/vendor_name
  192.  
  193.     # Configurate TCP/IP kernel settings
  194.     exec /system/bin/sh /system/etc/init.netconfig.sh
  195.  
  196. on boot
  197.    
  198.  
  199.    
  200.    
  201.  
  202.     exec /system/bin/usbeng
  203.  
  204.     # Disable C_A_D
  205.     exec system/bin/ctrlaltdel soft
  206.  
  207.     # USB Host support
  208.     mkdir /dev/bus 0711 system system
  209.     mkdir /dev/bus/usb 0711 system system
  210.  
  211.     write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
  212.     write /sys/class/android_usb/android0/iProduct $ro.product.model
  213.  
  214.    
  215.  
  216.     setprop ro.wifi.wps_enable true
  217.  
  218.     write /proc/sys/kernel/sysrq 0
  219.     write /proc/sys/kernel/watchdog_thresh 5
  220.  
  221.     exec /system/bin/cal_data_manager
  222.  
  223. service illumination /system/bin/illumination_service
  224.     class main
  225.     user root
  226.     group system
  227.  
  228. service time_daemon /system/bin/time_daemon
  229.     user root
  230.     group root
  231.     oneshot
  232.     disabled
  233.  
  234. on property:persist.timed.enable=true
  235.     mkdir /data/time/ 0700 system system
  236.     start time_daemon
  237.  
  238. on property:sys.usb.config=mass_storage
  239.     exec /init.usbmode.sh
  240.     stop adbd
  241.     setprop sys.usb.state $sys.usb.config
  242.  
  243. on property:sys.usb.config=mass_storage,adb
  244.     exec /init.usbmode.sh
  245.     start adbd
  246.     setprop sys.usb.state $sys.usb.config
  247.  
  248. on property:sys.usb.config=mtp
  249.     exec /init.usbmode.sh
  250.     stop adbd
  251.     setprop sys.usb.state $sys.usb.config
  252.  
  253. on property:sys.usb.config=mtp,adb
  254.     exec /init.usbmode.sh
  255.     start adbd
  256.     setprop sys.usb.state $sys.usb.config
  257.  
  258. on property:sys.usb.config=mtp,cdrom
  259.     exec /init.usbmode.sh
  260.     stop adbd
  261.     setprop sys.usb.state $sys.usb.config
  262.  
  263. on property:sys.usb.config=mtp,cdrom,adb
  264.     exec /init.usbmode.sh
  265.     stop adbd
  266.     setprop sys.usb.state $sys.usb.config
  267.  
  268. on property:sys.usb.config=rndis
  269.     exec /init.usbmode.sh
  270.     stop adbd
  271.     setprop sys.usb.state $sys.usb.config
  272.  
  273. on property:sys.usb.config=rndis,adb
  274.     exec /init.usbmode.sh
  275.     start adbd
  276.     setprop sys.usb.state $sys.usb.config
  277.  
  278. on fs
  279. # mount mmc partitions
  280.     # mount /system, set up links to the modem, and remount r/o
  281.     wait /dev/block/mmcblk0p12
  282.     mount ext4 /dev/block/mmcblk0p12 /system rw barrier=1
  283.     mkdir /system/etc/firmware/misc 0771 system system
  284.     mount ext4 /dev/block/mmcblk0p12 /system remount ro barrier=1
  285.  
  286.     # mount other partitions
  287.     wait /dev/block/mmcblk0p14
  288.     exec /system/bin/e2fsck -p /dev/block/mmcblk0p14
  289.     setprop ro.crypto.state unsupported
  290.     mount ext4 /dev/block/mmcblk0p14 /data nosuid nodev noatime barrier=1 noauto_da_alloc
  291.  
  292.     mount ext4 /dev/block/mmcblk0p13 /cache nosuid nodev noatime barrier=1
  293.  
  294.     # FOTA must be started after partitions are mounted
  295.     # and property service is initialized
  296.     exec /sbin/fota-ua c
  297.  
  298.     setprop ro.emmc 1
  299.  
  300.     # SEMC, TA Daemon
  301.     class_start trimarea
  302.     exec /system/bin/wait4tad
  303.     exec /sbin/mr
  304.     exec /sbin/checkabortedflash
  305.  
  306. on post-fs
  307.     chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
  308.     chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
  309.     chmod 0664 /sys/devices/platform/msm_sdcc.4/polling
  310.  
  311.     mkdir /data/radio 0770 radio radio
  312.  
  313.     mkdir /data/idd 0755 idd idd
  314.     mount ext4 /dev/block/mmcblk0p10 /data/idd nosuid nodev noatime barrier=0
  315.     chown idd idd /data/idd
  316.     chmod 0755 /data/idd
  317.  
  318.     # Camera
  319.     mkdir /data/camera 0771 root camera
  320.  
  321.     #Create QMUX deamon socket area
  322.     mkdir /dev/socket/qmux_radio 0770 radio radio
  323.     chmod 2770 /dev/socket/qmux_radio
  324.     mkdir /dev/socket/qmux_audio 0770 media audio
  325.     chmod 2770 /dev/socket/qmux_audio
  326.     mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
  327.     chmod 2770 /dev/socket/qmux_bluetooth
  328.  
  329.  
  330. on early-boot
  331.     # Touch firmware update
  332.     exec /system/bin/sh /system/etc/clearpad_fwloader.sh
  333.  
  334.     # Permissions for AKM897x sensor
  335.     chown system system /data/misc/akm_set.txt
  336.     chown system system /sys/class/compass/akm8972/interval
  337.     chown system system /sys/class/compass/akm8972/single
  338.     chown system system /sys/class/compass/akm8972/registers
  339.     chown system system /sys/class/compass/akm8975/interval
  340.     chown system system /sys/class/compass/akm8975/single
  341.     chown system system /sys/class/compass/akm8975/registers
  342.  
  343. on boot
  344.     chown system system /sys/module/sco/parameters/disable_esco
  345.  
  346.     chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  347.  
  348.     mkdir /data/misc/wifi 0770 wifi wifi
  349.     mkdir /data/misc/wifi/sockets 0771 wifi wifi
  350.     chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  351.     mkdir /data/misc/dhcp 0770 dhcp system
  352.  
  353.     #Set SUID bit for diag_mdlog
  354.     chmod 4755 /system/bin/diag_mdlog
  355.  
  356.     # LM35xx/cameralight
  357.     chown system system /sys/devices/i2c-3/3-0053/torch_enable
  358.     chown system system /sys/devices/i2c-3/3-0053/torch_current
  359.     chown system system /sys/devices/i2c-3/3-0053/privacy_enable
  360.     chown system system /sys/devices/i2c-3/3-0053/privacy_current
  361.     chown system system /sys/devices/i2c-3/3-0053/flash_enable
  362.     chown system system /sys/devices/i2c-3/3-0053/flash_duration
  363.     chown system system /sys/devices/i2c-3/3-0053/flash_synchronization
  364.     chown system system /sys/devices/i2c-3/3-0053/flash_current
  365.     chown system system /sys/devices/i2c-3/3-0053/status
  366.  
  367.     # Owner for the proximity sensor
  368.     chown system system /sys/devices/i2c-3/3-0054/threshold
  369.     chown system system /sys/devices/i2c-3/3-0054/nburst
  370.  
  371.     # Default tcp buffersizes for hsdpa
  372.     setprop net.tcp.buffersize.hsdpa 4094,87380,1220608,4096,16384,1220608
  373.     setprop net.tcp.buffersize.hspa 4094,87380,1220608,4096,16384,1220608
  374.  
  375.     # Permissions for Liblights.
  376.     chown system system /sys/class/leds/green/brightness
  377.     chown system system /sys/class/leds/green/trigger
  378.     chown system system /sys/class/leds/red/brightness
  379.     chown system system /sys/class/leds/red/trigger
  380.     chown system system /sys/class/leds/blue/brightness
  381.     chown system system /sys/class/leds/blue/trigger
  382.     chown system system /sys/class/leds/button-backlight/brightness
  383.     chown system system /sys/class/leds/button-backlight/trigger
  384.     chown system system /sys/class/leds/lcd-backlight/brightness
  385.     chown system system /sys/class/leds/lcd-backlight/als/curve
  386.     chown system system /sys/class/leds/keyboard-backlight/brightness
  387.     chown system system /sys/devices/i2c-3/3-0040/adc_als_value
  388.  
  389.     # bluetooth power up/down interface
  390.     chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  391.     chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  392.     chmod 0660                /sys/class/rfkill/rfkill0/state
  393.  
  394.     # bluetooth address programming
  395.     setprop ro.bt.bdaddr_path data/etc/bluetooth_bdaddr
  396.  
  397.     # power-management
  398.     write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
  399.     write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ondemand
  400.     write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
  401.     write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
  402.     write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
  403.     write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4
  404.     write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 10
  405.     write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
  406.     write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
  407.  
  408.     write /sys/module/rpm_resources/enable_low_power/L2_cache 1
  409.     write /sys/module/rpm_resources/enable_low_power/pxo 1
  410.     write /sys/module/rpm_resources/enable_low_power/vdd_dig 2
  411.     write /sys/module/rpm_resources/enable_low_power/vdd_mem 2
  412.     write /sys/module/rpm_resources/enable_low_power/rpm_cpu 1
  413.  
  414.     write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled 1
  415.     write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled 1
  416.     write /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled 1
  417.     write /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled 1
  418.     write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled 1
  419.     write /sys/module/pm_8x60/modes/cpu1/power_collapse/idle_enabled 1
  420.     write /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled 1
  421.     write /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled 1
  422.  
  423.  
  424.     chown root.system /sys/devices/system/cpu/mfreq
  425.     chmod 220 /sys/devices/system/cpu/mfreq
  426.     chown root.system /sys/devices/system/cpu/cpu1/online
  427.     chmod 664 /sys/devices/system/cpu/cpu1/online
  428.  
  429.     # Create the directories and files expected by the lcatp service
  430.     # only found in eng builds.
  431.     # Preferably the ONLY_IN_VARIANT macro should be used but
  432.     # seems like the build system does not parse this file properly.
  433.     mkdir /data/misc/tsce 0770 system system
  434.     write /data/misc/tsce/userfile.txt 0
  435.     write /data/misc/tsce/userfile2.txt 0
  436.     write /data/misc/tsce/logfile.txt 0
  437.     chown system system /data/misc/tsce/userfile.txt
  438.     chown system system /data/misc/tsce/userfile2.txt
  439.     chown system system /data/misc/tsce/logfile.txt
  440.     chmod 0660 /data/misc/tsce/userfile.txt
  441.     chmod 0660 /data/misc/tsce/userfile2.txt
  442.     chmod 0660 /data/misc/tsce/logfile.txt
  443.    
  444.    
  445.  
  446.     insmod /system/lib/modules/bcm4330.ko nvram_path=/system/etc/wifi/calibration iface_name=wlan0
  447.  
  448. service btld /system/bin/btld -lpm 1
  449.     user root
  450.     group bluetooth net_bt_admin
  451.     disabled
  452.     oneshot
  453.  
  454. service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
  455.     --use_baudrate_for_download --tosleep 20000 --scopcm 0,4,0,0,0,0,0,0,3,0 \
  456.     --no2bytes --baudrate 3000000 --patchram /system/etc/firmware/BCM4330.hcd \
  457.     /dev/ttyHS0
  458.     user bluetooth
  459.     group bluetooth net_bt_admin
  460.     disabled
  461.     class main
  462.  
  463. service cnd /system/bin/cnd
  464.     class main
  465.     socket cnd stream 660 root radio
  466.  
  467. service rmt_storage /system/bin/rmt_storage
  468.     user root
  469.     disabled
  470.  
  471. service updatemiscta /system/bin/updatemiscta
  472.     user root
  473.     disabled
  474.     oneshot
  475.  
  476. # SEMC, TA rmt service
  477. service ta_rmt_service /system/bin/ta_rmt_service
  478.     user root
  479.     disabled
  480.  
  481. on property:ro.emmc=1
  482.     start updatemiscta
  483.     start rmt_storage
  484.     start ta_rmt_service
  485.  
  486. # Copy calibration data from NV to kernel drivers
  487. service nvimport /system/bin/nvimport
  488.     class main
  489.     user root
  490.     oneshot
  491.  
  492. service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
  493.     socket wpa_wlan0 dgram 660 wifi wifi
  494.     disabled
  495.     oneshot
  496.  
  497. service dhcpcd_wlan0 /system/bin/dhcpcd -B -t 30
  498.     disabled
  499.     oneshot
  500.  
  501. service iprenew_wlan0 /system/bin/dhcpcd -n
  502.     disabled
  503.     oneshot
  504.  
  505. service dhcpcd_p2p /system/bin/dhcpcd -BKLG
  506.     disabled
  507.     oneshot
  508.  
  509. service iprenew_p2p /system/bin/dhcpcd -n
  510.     disabled
  511.     oneshot
  512.  
  513. service dhcpcd_bnep0 /system/bin/dhcpcd -B -t 30
  514.     disabled
  515.     oneshot
  516.  
  517. service iprenew_bnep0 /system/bin/dhcpcd -n
  518.     disabled
  519.     oneshot
  520.  
  521. service qmuxd /system/bin/qmuxd
  522.     class main
  523.  
  524. service netmgrd /system/bin/netmgrd
  525.     class main
  526.  
  527. # SEMC, TA Daemon
  528. service tad /system/bin/tad /dev/block/mmcblk0p1 0,16,256
  529.     user root
  530.     group root
  531.     socket tad stream 0660 system system
  532.     class trimarea
  533.  
  534. service hw_config /system/bin/sh /system/etc/hw_config.sh
  535.     class main
  536.     user root
  537.     oneshot
  538.  
  539. # Local Connectivity service only present in engineer builds
  540. # Preferably the ONLY_IN_VARIANT macro should be used but
  541. # seems like the build system does not parse this file properly.
  542. service lcatp /system/bin/lcatp
  543.     disabled
  544.     oneshot
  545.  
  546. on property:ro.use_data_netmgrd=false
  547.     # netmgr not supported on specific target
  548.     stop netmgrd
  549.  
  550. service mpdecision /system/bin/mpdecision --no_sleep --avg_comp
  551.     user root
  552.     disabled
  553.  
  554. service thermald /system/bin/thermald -c /system/etc/thermald-semc.conf
  555.     socket thermald stream 0666 root root
  556.     user root
  557.     disabled
  558.  
  559. on property:init.svc.bootanim=stopped
  560.     start mpdecision
  561.     start thermald
  562.  
  563. service media /system/bin/mediaserver
  564.     class main
  565.     user media
  566.     group system audio camera graphics inet net_bt net_bt_admin net_raw radio
  567.     ioprio rt 4
  568.  
  569. service nvcustomizer /system/bin/nvcustomizer
  570.     user root
  571.     oneshot
  572.     disabled
  573.  
  574. on property:ro.nvcust=1
  575.     start nvcustomizer
  576.  
  577. on property:vold.decrypt=trigger_post_fs_data
  578.     mkdir /data/idd 0755 idd idd
  579.     mount ext4 /dev/block/mmcblk0p10 /data/idd nosuid nodev noatime barrier=0
  580.     chown idd idd /data/idd
  581. service onesegtuner /system/bin/onesegtunerserver
  582.     class main
  583.     user  system
  584.     group system
  585.  
  586. service hdmid /system/bin/hdmid
  587.     class main
  588.     user system
  589.     group system inet graphics
  590.  
  591. service irda /system/bin/irdaserver
  592.     class main
  593.     user  system
  594.     group system
  595.  
  596. service ric /system/bin/ric
  597.     class main
  598.     user root
  599.     group root
  600.  
  601. on init
  602.     # setup the global environment
  603.     export SECONDARY_STORAGE /mnt/usbdisk:/mnt/ext_card
  604.  
  605.     # create mountpoint
  606.     mkdir /mnt/sdcard 0000 system system
  607.     mkdir /mnt/ext_card 0000 system system
  608.  
  609.     # Create symlink
  610.     symlink /mnt/ext_card /ext_card
  611.  
  612.     write /proc/sys/kernel/keys/root_maxkeys 500
  613.     write /proc/sys/kernel/keys/root_maxbytes 400000
  614.  
  615. on post-fs
  616.     chown root sdcard_rw /sys/devices/platform/msm_hsusb/gadget/lun0/inquiry
  617.     chown root sdcard_rw /sys/devices/platform/msm_hsusb/gadget/lun0/export
  618.     chown root sdcard_rw /sys/devices/platform/msm_hsusb/gadget/lun0/unexport
  619.     chown root sdcard_rw /sys/devices/platform/msm_hsusb/gadget/lun0/opcode-e4/buffer
  620.     chown root sdcard_rw /sys/devices/platform/msm_hsusb/gadget/lun0/opcode-e4/size
  621.     chown root sdcard_rw /sys/devices/platform/msm_hsusb/gadget/lun0/opcode-e4/update
  622.  
  623. on post-fs-data
  624.     # 3LM settings
  625.     setprop ro.3lm.production 1
  626.  
  627.     # 3LM encryption
  628.     setprop ro.3lm.legacy_encryption 1
  629.     mkdir /data/secure 0755 system system
  630.     mkdir /data/secure/data 0755 system system
  631.     mount tmpfs tmpfs /data/secure/data nosuid mode=0755,gid=1000
  632.  
  633. on boot
  634.     chown system system /dev/i2c-9
  635.     chown system system /dev/tsif1
  636.     chown system system /sys/devices/platform/oneseg_tunerpm.0/power_ctrl
  637.     chown system system /sys/class/irda/irda
  638.     chmod 644 /sys/class/irda/irda
  639.     chmod 666 /dev/ttyHSL3
  640.     symlink /dev/ttyHS1 /dev/felica
  641.     chown felica felica /dev/ttyHS1
  642.     chmod 0600 /dev/ttyHS1
  643.     chown felica felica /dev/felica_pon
  644.     chmod 0200 /dev/felica_pon
  645.     chown system system /dev/felica_cen
  646.     chmod 0644 /dev/felica_cen
  647.     chown felica felica /dev/felica_rfs
  648.     chmod 0400 /dev/felica_rfs
  649.     chown felica felica /dev/felica_rws
  650.     chmod 0400 /dev/felica_rws
  651.     chown system system /sys/devices/platform/semc_felica.0/ta_rwusb
  652.     chmod 0200 /sys/devices/platform/semc_felica.0/ta_rwusb
  653.     chown system system /sys/devices/platform/semc_felica.0/st_usbcon
  654.     chmod 0200 /sys/devices/platform/semc_felica.0/st_usbcon
  655.     chown system system /sys/devices/platform/semc_felica.0/st_airplane
  656.     chmod 0200 /sys/devices/platform/semc_felica.0/st_airplane
  657.     exec /init_devadmin.sh
  658.  
  659.     # Enable KDDI extended service to control special hardware
  660.     setprop ro.3LM.extended 1
  661.     setprop ro.camera.sound.forced 1
  662.  
  663. # Define TCP buffer sizes for various networks
  664. #   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  665.     setprop net.tcp.buffersize.evdo  1400,261800,261800,1400,261800,261800
  666.     setprop net.tcp.buffersize.1xrtt 1400,261800,261800,1400,261800,261800
  667.     setprop net.tcp.buffersize.wifi  1400,261800,261800,1400,261800,261800
  668.  
  669.     # Disable Wifi EAP SIM
  670.     setprop ro.wifi.eap_sim_enabled false
  671.  
  672. # KDDI UIM
  673. service uimd /system/bin/uimd
  674.     class main
  675.     socket uimd stream 666 radio radio
  676.     user  radio
  677.     group radio
  678.  
  679. service kddiradiusd /system/bin/kddiradiusd
  680.     class main
  681.     socket aepls001 stream 666 root root
  682.     user  radio
  683.     group radio
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top