SHARE
TWEET

XPERIA Z (SO-02E) init.sony-platform.rc (10.1.D.0.317)

huhka_com Feb 10th, 2013 138 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import init.sony-device.rc
  2.  
  3. on boot
  4.     # USB gadget initial setup
  5.     write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
  6.     write /sys/class/android_usb/android0/f_rndis/manufacturer ${ro.product.manufacturer}
  7.     write /sys/class/android_usb/android0/iProduct ${ro.product.model}
  8.  
  9.     #Configure watchdog threshold value
  10.     write /proc/sys/kernel/watchdog_thresh 5
  11.  
  12.     # Disable C_A_D
  13.     exec system/bin/ctrlaltdel soft
  14.  
  15.    
  16.  
  17.    
  18.  
  19.     # Enable ETM tracing on debug variants
  20.    
  21.    
  22.    
  23.    
  24.  
  25.     # LM356x/cameralight
  26.     chown system system /sys/bus/i2c/devices/0-0053/torch_enable
  27.     chown system system /sys/bus/i2c/devices/0-0053/torch_current
  28.     chown system system /sys/bus/i2c/devices/0-0053/privacy_enable
  29.     chown system system /sys/bus/i2c/devices/0-0053/privacy_current
  30.     chown system system /sys/bus/i2c/devices/0-0053/flash_enable
  31.     chown system system /sys/bus/i2c/devices/0-0053/flash_duration
  32.     chown system system /sys/bus/i2c/devices/0-0053/flash_synchronization
  33.     chown system system /sys/bus/i2c/devices/0-0053/flash_current
  34.     chown system system /sys/bus/i2c/devices/0-0053/status
  35.  
  36.     #allow system group to read/modify rdtags
  37.     chown root system /proc/rdtag
  38.     chmod 0664 /proc/rdtag
  39.     chown root system /proc/rdtags
  40.     chmod 0754 /proc/rdtags
  41.  
  42.     # Enable Wi-Fi EAP SIM
  43.     setprop ro.wifi.eap_sim_enabled true
  44.  
  45.     # Do not power down SIM in flight mode (required for Wi-Fi EAP-SIM)
  46.     setprop persist.radio.apm_sim_not_pwdn 1
  47.  
  48.     # To use non-Google assistance server
  49.     setprop ro.gps.agps_provider customized
  50.  
  51.     exec /system/bin/cal_data_manager init
  52.  
  53. service hw_config /system/bin/sh /system/etc/hw_config.sh
  54.     class main
  55.     user root
  56.     oneshot
  57.  
  58. # Configurate TCP/IP kernel settings
  59. service netconfig /system/bin/sh /system/etc/init.netconfig.sh
  60.     class main
  61.     user root
  62.     oneshot
  63.  
  64. on init
  65.     # secondary external storage
  66.     export SECONDARY_STORAGE /storage/sdcard1
  67.     mkdir /storage/sdcard1 0000 system system
  68.     symlink /storage/sdcard1 /sdcard1
  69.     symlink /storage/sdcard1 /ext_card
  70.  
  71.     # External USB mass storage support
  72.     export EXTERNAL_STORAGE_USB /storage/usbdisk
  73.     mkdir /storage/usbdisk 0000 system system
  74.     symlink /storage/usbdisk /usbdisk
  75.  
  76.     # create USB host bus directory here so that libusbhost
  77.     # can start monitoring.
  78.     mkdir /dev/bus 0755 root root
  79.     mkdir /dev/bus/usb 0755 root root
  80.  
  81.     # USB related initialization
  82.     write /sys/class/android_usb/android0/iSerial ${ro.serialno}
  83.     write /sys/class/android_usb/android0/f_rndis/vendorID 0fce
  84.     write /sys/class/android_usb/android0/f_rndis/wceis 1
  85.  
  86.     # Activate subsystem restart phase 3 behavior
  87.     write /sys/module/subsystem_restart/parameters/restart_level 3
  88.     write /sys/module/wcnss_ssr_8960/parameters/enable_riva_ssr 1
  89.     write /sys/module/subsystem_restart/parameters/max_restarts 8
  90.     write /sys/module/subsystem_restart/parameters/max_history_time 3600
  91.     # Enable ramdumps from subsystems
  92.    
  93.    
  94.  
  95. on property:sys.usb.config=mass_storage
  96.    exec /init.usbmode.sh
  97.    stop adbd
  98.    setprop sys.usb.state ${sys.usb.config}
  99.  
  100. on property:sys.usb.config=mass_storage,adb
  101.    exec /init.usbmode.sh
  102.    start adbd
  103.    setprop sys.usb.state ${sys.usb.config}
  104.  
  105. on property:sys.usb.config=mtp
  106.    exec /init.usbmode.sh
  107.    stop adbd
  108.    setprop sys.usb.state ${sys.usb.config}
  109.  
  110. on property:sys.usb.config=mtp,adb
  111.    exec /init.usbmode.sh
  112.    start adbd
  113.    setprop sys.usb.state ${sys.usb.config}
  114.  
  115. on property:sys.usb.config=mtp,cdrom
  116.    exec /init.usbmode.sh
  117.    stop adbd
  118.    setprop sys.usb.state ${sys.usb.config}
  119.  
  120. on property:sys.usb.config=mtp,cdrom,adb
  121.    exec /init.usbmode.sh
  122.    stop adbd
  123.    setprop sys.usb.state ${sys.usb.config}
  124.  
  125. on property:sys.usb.config=rndis
  126.    exec /init.usbmode.sh
  127.    stop adbd
  128.    setprop sys.usb.state ${sys.usb.config}
  129.  
  130. on property:sys.usb.config=rndis,adb
  131.    exec /init.usbmode.sh
  132.    start adbd
  133.    setprop sys.usb.state ${sys.usb.config}
  134.  
  135. on property:sys.usb.config=ncm
  136.    exec /init.usbmode.sh
  137.    stop adbd
  138.    setprop sys.usb.state ${sys.usb.config}
  139.  
  140. on property:sys.usb.config=ncm,adb
  141.    exec /init.usbmode.sh
  142.    start adbd
  143.    setprop sys.usb.state ${sys.usb.config}
  144.  
  145. on post-fs-data
  146.     # Camera
  147.     mkdir /data/camera 0771 root camera
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155. service illumination /system/bin/illumination_service
  156.     socket illumination stream 0666 root system
  157.     class main
  158.     user root
  159.  
  160.  
  161.  
  162. # Regulatory domain handling
  163. service iw_command /system/bin/iw
  164.    disabled
  165.    oneshot
  166.  
  167. on post-fs
  168.  
  169.     chown system system /sys/devices/platform/msm_hsusb/gadget/lun1/file
  170.     chmod 0660 /sys/devices/platform/msm_hsusb/gadget/lun1/file
  171.     write /sys/class/android_usb/f_mass_storage/inquiry_string "SONY    Mass Storage    0100"
  172.     write /sys/class/android_usb/f_cdrom/cdrom_inquiry_string "SONY    CD-ROM          0100"
  173.     write /sys/class/android_usb/f_mass_storage/serial_number ${ro.serialno}
  174.     write /sys/class/android_usb/f_mass_storage/eui64_id 000AD90000000000
  175.     write /sys/devices/platform/msm_hsusb/gadget/lun0/nofua 1
  176.     write /sys/devices/platform/msm_hsusb/gadget/lun1/nofua 1
  177.  
  178. # Owner for the proximity sensor
  179.     chown system system /sys/devices/i2c-2/2-0054/threshold
  180.     chown system system /sys/devices/i2c-2/2-0054/nburst
  181. # Owner for the light sensor
  182.     chown system system /sys/devices/i2c-0/0-0036/als_enable
  183.     chown system system /sys/devices/i2c-0/0-0036/als_result
  184. # use system_monitor
  185. on init
  186.     symlink /dev/socket /tmp
  187.  
  188. service system_monitor /system/bin/system_monitor
  189.     socket sysmon stream 0660 root system
  190.     class core
  191.     user root
  192.  
  193. # Start usbeng
  194. service usbeng /system/bin/usbeng
  195.     class late_start
  196.     oneshot
  197.  
  198.  
  199.  
  200.  
  201.  
  202. on property:service.calib.start=service_setting
  203.     exec /system/bin/cal_data_manager service_setting
  204.  
  205. on property:service.acccalib.start=service_setting
  206.     exec /system/bin/acc_cal_data_manager service_setting
  207.  
  208. # DxHDCP key provisioning
  209. on property:dev.bootcomplete=1
  210.    start dxhdcpd
  211.  
  212. service dxhdcpd /system/bin/dxhdcpd
  213.    user system
  214.    group system
  215.    oneshot
  216.    disabled
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