Advertisement
goroh_kun

IS11Sの/init.semc.rc

Jul 30th, 2011
1,034
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.76 KB | None | 0 0
  1. on early-init
  2. # start fota
  3. exec /sbin/fotainit
  4.  
  5. on init
  6. # start master reset
  7. exec /sbin/mr
  8. # Check if flash was aborted
  9. exec /sbin/checkabortedflash
  10.  
  11. on post-fs
  12. mkdir /data/idd 0755 idd idd
  13. mount yaffs2 mtd@appslog /data/idd nosuid nodev
  14. chown idd idd /data/idd
  15. chmod 0755 /data/idd
  16. mkdir /data/tombstones 0755 system system
  17. mkdir /data/semc-checkin 0700 system system
  18. mkdir /data/crashsms 0711 system system
  19. mkdir /data/crashsms/crashes 0755 system system
  20.  
  21. on early-boot
  22. # Start the offline charging (This blocks booting further in some cases)
  23. exec /system/bin/chargemon
  24.  
  25.  
  26.  
  27.  
  28. # Make sure the crashdump level file is writable by Debug Menu > Crash Level
  29.  
  30.  
  31.  
  32. service updatemiscta /system/bin/updatemiscta
  33. user root
  34. oneshot
  35.  
  36. service iddd /system/bin/iddd
  37. user idd
  38. group idd log
  39.  
  40. # Set the startup flag to boot complete, run on property change
  41. service setssflagbc /system/bin/startupflag bootcomplete
  42. user root
  43. oneshot
  44. disabled
  45.  
  46. # AT+CTSA and AT+CKPD support
  47. service atfwd-daemon /system/bin/atfwd-daemon
  48. user root
  49. disabled
  50.  
  51. on property:dev.bootcomplete=1
  52. start setssflagbc
  53. start atfwd-daemon
  54.  
  55. # DRM key activation
  56. service suntrolkac /system/bin/suntrolkac
  57. user root
  58. oneshot
  59.  
  60. on property:kernel.log=logcat
  61. stop klogrouterd
  62. start klogrouterd
  63.  
  64. on property:kernel.log=uart
  65. stop klogrouterd
  66. exec /system/bin/klogrouter uart
  67.  
  68. on property:kernel.log=default
  69. stop klogrouterd
  70. exec /system/bin/klogrouter default
  71.  
  72. service klogrouterd /system/bin/klogrouter logcat
  73. oneshot
  74.  
  75.  
  76. # Net mgr
  77. service netmgrd /system/bin/netmgrd -E
  78.  
  79. on property:ro.use_data_netmgrd=false
  80. # netmgr not supported on specific target
  81. stop netmgrd
  82.  
  83.  
  84. on early-fs
  85. # Get potential ram dump from cache partition before it's needed
  86. # by the system.
  87. exec /sbin/grabramdump
  88.  
  89. on boot
  90.  
  91.  
  92. # QMUD / QMI keeps its sockets in here
  93. mkdir /data/radio 0770 radio radio
  94.  
  95. # Create the directories used by the Wireless subsystem
  96. # give system access to wpa_supplicant.conf for backup and restore
  97. chown wifi wifi /data/misc/wifi
  98. mkdir /data/misc/wifi/sockets 0771 wifi wifi
  99. mkdir /data/misc/wifi/wpa_supplicant 0771 wifi wifi
  100. mkdir /data/misc/wifi/hostapd 0775 wifi wifi
  101. chmod 0770 /data/misc/wifi
  102. chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  103. exec /init.hostapd.sh
  104. chmod 0770 /data/misc/wifi/hostapd
  105. mkdir /data/misc/dhcp 0770 dhcp dhcp
  106. chown dhcp system /data/misc/dhcp
  107.  
  108. # bluetooth power up/down interface
  109. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  110. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  111. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  112. chmod 0660 /sys/class/rfkill/rfkill0/state
  113. chown bluetooth bluetooth /dev/ttyHS0
  114. chmod 0660 /dev/ttyHS0
  115. chown system system /sys/module/sco/parameters/disable_esco
  116.  
  117. # bluetooth MAC address programming
  118. chown bluetooth bluetooth /proc/bt_mac_addr
  119. setprop ro.bt.bdaddr_path /proc/bt_mac_addr
  120.  
  121. # Permissions for Liblights.
  122. chown system system /sys/class/leds/green/brightness
  123. chown system system /sys/class/leds/green/trigger
  124. chown system system /sys/class/leds/red/brightness
  125. chown system system /sys/class/leds/red/trigger
  126. chown system system /sys/class/leds/blue/brightness
  127. chown system system /sys/class/leds/blue/trigger
  128. chown system system /sys/class/leds/button-backlight/brightness
  129. chown system system /sys/class/leds/lcd-backlight/brightness
  130. chown system system /sys/class/leds/lcd-backlight/als/curve
  131. chown system system /sys/class/leds/keyboard-backlight/brightness
  132. chown media media /sys/class/leds/tally-light/brightness
  133.  
  134. # Change rights for the AKM8975 devices
  135. chmod 0644 /dev/akm8975_dev
  136. chown compass system /dev/akm8975_dev
  137.  
  138. # enable the GPS
  139. setprop ro.ril.def.agps.mode 2
  140.  
  141. # performance tweaks for flash
  142. write /sys/block/mtdblock1/bdi/read_ahead_kb 4
  143. write /sys/block/mtdblock2/bdi/read_ahead_kb 4
  144. write /sys/block/mtdblock3/bdi/read_ahead_kb 4
  145.  
  146. # Wakelock debug
  147. write /sys/module/wakelock/parameters/debug_mask 7
  148.  
  149. # Better power-management
  150. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
  151. write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 90
  152. write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 75000
  153. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760
  154.  
  155. # Fix permissions for KGSL
  156. chmod 0666 /dev/kgsl-2d0
  157. chmod 0666 /dev/kgsl-3d0
  158.  
  159. # Fix permissions for Audio
  160. chmod 0666 /dev/snd/timer
  161. chmod 0666 /dev/snd/controlC0
  162. chmod 0666 /dev/snd/pcmC0D0c
  163. chmod 0666 /dev/snd/pcmC0D0p
  164. chmod 0666 /dev/msm_aac_in
  165. chmod 0666 /dev/msm_amrnb_in
  166. chmod 0666 /dev/msm_fm
  167.  
  168. chmod 0666 /dev/mtp
  169.  
  170. # LM35xx/cameralight
  171. chown system system /sys/devices/i2c-0/0-0053/torch_enable
  172. chown system system /sys/devices/i2c-0/0-0053/torch_current
  173. chown system system /sys/devices/i2c-0/0-0053/privacy_enable
  174. chown system system /sys/devices/i2c-0/0-0053/privacy_current
  175. chown system system /sys/devices/i2c-0/0-0053/flash_enable
  176. chown system system /sys/devices/i2c-0/0-0053/flash_duration
  177. chown system system /sys/devices/i2c-0/0-0053/flash_synchronization
  178. chown system system /sys/devices/i2c-0/0-0053/flash_current
  179. chown system system /sys/devices/i2c-0/0-0053/status
  180.  
  181. # Owner for the proximity sensor
  182. chown system system /sys/devices/i2c-0/0-0054/threshold
  183.  
  184. # Fix permissions for bma150 (accelerometer). Can be at different adresses.
  185. chown system system /sys/devices/i2c-0/0-0038/rate
  186. chown system system /sys/devices/i2c-4/4-0038/rate
  187.  
  188. class_start default
  189.  
  190. # insert SDIO-driver used by TI Wilink driver.
  191. # This is _not_ the default SDIO driver included in the kernel.
  192. insmod /system/lib/modules/sdio.ko
  193.  
  194. # Create the directories and files expected by the lcatp service
  195. # only found in eng builds
  196.  
  197.  
  198.  
  199.  
  200. on property:init.svc.bluetoothd=running
  201. write /sys/devices/virtual/bluetooth/hci0/link_supervision_timeout 6400
  202.  
  203. service nvcustomizer /system/bin/nvcustomizer
  204. user root
  205. oneshot
  206.  
  207. # Copy calibration data from NV to kernel drivers
  208. service nvimport /system/bin/nvimport
  209. user root
  210. oneshot
  211.  
  212. service wlan_loader /system/bin/tiwlan_loader -i /etc/tiwlan.ini -f /etc/tiwlan_firmware.bin -e /data/etc/wifi/fw
  213. disabled
  214. oneshot
  215.  
  216. service ifcfg_ti /system/bin/ifconfig wlan0 up
  217. disabled
  218. oneshot
  219.  
  220. service wpa_supplicant /system/bin/wpa_supplicant -Dwlan0 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
  221. socket wpa_wlan0 dgram 660 wifi wifi
  222. disabled
  223. oneshot
  224.  
  225. service dhcpcd /system/bin/dhcpcd -B -d wlan0 -t 30
  226. disabled
  227. oneshot
  228.  
  229. service hciattach /system/bin/hciattach -n /dev/ttyHS0 texas 3000000
  230. user bluetooth
  231. group qcom_oncrpc bluetooth net_bt_admin
  232. disabled
  233. oneshot
  234.  
  235. service wlan_ap_loader /system/bin/tiap_loader -i /system/etc/wifi/softap/tiwlan_ap.ini -f /system/etc/wifi/softap/softap_firmware.bin -e /data/etc/wifi/fw
  236. disabled
  237. oneshot
  238.  
  239. service hostapd /system/bin/hostapd /data/misc/wifi/hostapd/hostapd.conf
  240. disabled
  241. oneshot
  242.  
  243. service ifcfg_tiap /system/bin/ifconfig wl0.1 192.168.43.1 netmask 255.255.255.0
  244. disabled
  245. oneshot
  246.  
  247. # bugreport is triggered by the KEY_VOLUMEUP and BTN_MOUSE keycodes
  248. service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
  249. disabled
  250. oneshot
  251. keycodes 115 272
  252.  
  253. service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0 &
  254. disabled
  255. oneshot
  256.  
  257.  
  258.  
  259. service qmuxd /system/bin/qmuxd
  260.  
  261. service akmd8975 /system/bin/akmd8975
  262.  
  263. service mltlusbd /system/bin/mltlusbd
  264.  
  265. service hw_config /system/bin/sh /system/etc/hw_config.sh
  266. user root
  267. oneshot
  268.  
  269. on property:persist.service.adb.enable=1
  270. exec /init.usbmode.sh
  271.  
  272. on property:persist.service.adb.enable=0
  273. exec /init.usbmode.sh
  274.  
  275. on property:persist.usb.eng=1
  276. exec /init.usbmode.sh
  277.  
  278. on property:persist.usb.eng=0
  279. exec /init.usbmode.sh
  280.  
  281. on property:usb.rndis.enable=1
  282. exec /init.usbmode.sh
  283.  
  284. on property:usb.rndis.enable=0
  285. exec /init.usbmode.sh
  286.  
  287. on property:persist.usb.storagemode=msc
  288. exec /init.usbmode.sh
  289.  
  290. on property:persist.usb.storagemode=mtp
  291. exec /init.usbmode.sh
  292.  
  293. on property:usb.pcc.enable=1
  294. exec /init.usbmode.sh
  295.  
  296. on property:usb.pcc.enable=0
  297. exec /init.usbmode.sh
  298. service onesegtuner /system/bin/onesegtunerserver
  299. user system
  300. group system
  301.  
  302. service hdmid /system/bin/hdmid
  303. user system
  304. group inet
  305.  
  306. service touchd /system/bin/touchd
  307. user root
  308.  
  309. service lidswitchd /system/bin/lidswitchd
  310.  
  311. on early-boot
  312. # Start touch firmware loader
  313. exec /system/bin/cy8ctma300_fwloader -dev /sys/devices/platform/spi_qsd.0/spi0.0 -no_condition
  314.  
  315. on boot
  316. chown system system /sys/kernel/hdmi_sii_kset/hdmi_sii_kobj/hdmi_sii_state_obj
  317. chmod 0600 /sys/kernel/hdmi_sii_kset/hdmi_sii_kobj/hdmi_sii_state_obj
  318.  
  319. chown system system /dev/i2c-0
  320. chown system system /dev/uio0
  321. # Define TCP buffer sizes for various networks
  322. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  323. setprop net.tcp.buffersize.evdo 1423,261832,261832,1423,261832,261832
  324. setprop net.tcp.buffersize.gpass 536,12864,19296,536,12864,19296
  325.  
  326. insmod /system/lib/modules/semc_felica.ko
  327. chown felica felica /dev/felica
  328. chmod 0600 /dev/felica
  329. chown felica felica /dev/felica_pon
  330. chmod 0200 /dev/felica_pon
  331. chown system system /dev/felica_cen
  332. chmod 0644 /dev/felica_cen
  333. chown felica felica /dev/felica_rfs
  334. chmod 0400 /dev/felica_rfs
  335. chown felica felica /dev/felica_rws
  336. chmod 0400 /dev/felica_rws
  337. chown system system /sys/module/semc_felica/parameters/ta_rwusb
  338. chmod 0200 /sys/module/semc_felica/parameters/ta_rwusb
  339. chown system system /sys/module/semc_felica/parameters/st_usbcon
  340. chmod 0200 /sys/module/semc_felica/parameters/st_usbcon
  341. chown system system /sys/module/semc_felica/parameters/st_airplane
  342. chmod 0200 /sys/module/semc_felica/parameters/st_airplane
  343. exec /system/bin/felicalockboot
  344. exec /sbin/falcheck
  345.  
  346. exec /system/bin/usbeng
  347.  
  348.  
  349. chown system system /dev/tsif0
  350. chown system system /sys/devices/platform/oneseg_tunerpm.0/power_ctrl
  351. start onesegtuner
  352.  
  353. insmod /system/lib/modules/semc_msm_irda.ko
  354. chmod 0666 /dev/irda_uart
  355.  
  356. service uimd /system/bin/uimd
  357. socket uimd stream 660 radio radio
  358. user radio
  359. group radio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement