motafoca

init.rc

Jul 4th, 2011
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.69 KB | None | 0 0
  1.  
  2. on emmc
  3.  
  4. mkdir /system
  5. mkdir /data 0771 system system
  6. mkdir /persist 0771 system system
  7. devwait /dev/block/mmcblk0p12
  8. mount ext3 /dev/block/mmcblk0p12 /system ro relatime
  9. devwait /dev/block/mmcblk0p13
  10. exec /system/bin/e2fsck -p /dev/block/mmcblk0p13
  11. mount ext3 /dev/block/mmcblk0p13 /data nosuid nodev relatime
  12. #devwait /dev/block/mmcblk0p14
  13. #mount ext3 /dev/block/mmcblk0p14 /persist nosuid nodev
  14.  
  15. on nand
  16.  
  17. mkdir /system
  18. mkdir /data 0771 system system
  19. mkdir /persist 0771 system system
  20.  
  21. write /sys/block/stl12/queue/read_ahead_kb 4
  22. write /sys/block/stl13/queue/read_ahead_kb 4
  23. write /sys/block/stl14/queue/read_ahead_kb 4
  24. write /sys/devices/virtual/block/stl12/queue/read_ahead_kb 4
  25. write /sys/devices/virtual/block/stl13/queue/read_ahead_kb 4
  26. write /sys/devices/virtual/block/stl14/queue/read_ahead_kb 4
  27.  
  28. on init
  29.  
  30. sysclktz 0
  31.  
  32. loglevel 3
  33.  
  34. # setup the global environment
  35. export PATH /sbin:/system/sbin:/system/bin:/system/xbin
  36. export LD_LIBRARY_PATH /system/lib
  37. export ANDROID_BOOTLOGO 1
  38. export ANDROID_ROOT /system
  39. export ANDROID_ASSETS /system/app
  40. export ANDROID_DATA /data
  41. export EXTERNAL_STORAGE /mnt/sdcard
  42. export ASEC_MOUNTPOINT /mnt/asec
  43. export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
  44. export DOWNLOAD_CACHE /data/download
  45.  
  46. # insmod fsr/rfs modules
  47. insmod /lib/modules/fsr.ko
  48. insmod /lib/modules/fsr_stl.ko
  49. insmod /lib/modules/rfs_glue.ko
  50. insmod /lib/modules/rfs_fat.ko
  51. insmod /lib/modules/sec_param.ko
  52. insmod /lib/modules/acc_cal_param.ko
  53.  
  54. # Backward compatibility
  55. symlink /system/etc /etc
  56. symlink /sys/kernel/debug /d
  57. # backward capabilites are resolved by "symlink /mnt/sdcard /sdcard"
  58. # mkdir /sdcard 0000 system system
  59.  
  60. # Create Mad2SD mountpoints
  61. mkdir /mnt/mmcblk0p2
  62. mkdir /mnt/stl12
  63. mkdir /mnt/stl13
  64. mkdir /mnt/stl14
  65.  
  66. # create mountpoints
  67. mkdir /mnt 0775 root system
  68. mkdir /mnt/sdcard 0000 system system
  69.  
  70. # Create cgroup mount point for cpu accounting
  71. mkdir /acct
  72. mount cgroup none /acct cpuacct
  73. mkdir /acct/uid
  74.  
  75. # Backwards Compat - XXX: Going away in G*
  76. symlink /mnt/sdcard /sdcard
  77.  
  78. mkdir /cache 0770 system cache
  79. mkdir /config 0500 root root
  80.  
  81. # Directory for putting things only root should see.
  82. mkdir /mnt/secure 0700 root root
  83.  
  84. # Directory for staging bindmounts
  85. mkdir /mnt/secure/staging 0700 root root
  86.  
  87. # Directory-target for where the secure container
  88. # imagefile directory will be bind-mounted
  89. mkdir /mnt/secure/asec 0700 root root
  90.  
  91. # Secure container public mount points.
  92. mkdir /mnt/asec 0700 root system
  93. mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
  94.  
  95. mount rootfs rootfs / ro remount
  96.  
  97. write /proc/sys/kernel/panic_on_oops 1
  98. write /proc/sys/kernel/hung_task_timeout_secs 0
  99. write /proc/cpu/alignment 4
  100. write /proc/sys/kernel/sched_latency_ns 10000000
  101. write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
  102. write /proc/sys/kernel/sched_compat_yield 1
  103. write /proc/sys/kernel/sched_child_runs_first 0
  104.  
  105. # Mount partitions
  106. # System
  107. mount ext4 /dev/block/stl12 /system barrier=0 noauto_da_alloc
  108.  
  109. # SD Card
  110. devwait /dev/block/mmcblk0
  111. mount ext4 /dev/block/mmcblk0p2 /mnt/mmcblk0p2 nosuid nodev barrier=0 noauto_da_alloc
  112.  
  113. # Data
  114. mount ext4 /dev/block/stl13 /mnt/stl13 nosuid nodev barrier=0 noauto_da_alloc
  115.  
  116. # Cache
  117. mount ext4 /dev/block/stl14 /mnt/stl14 nosuid nodev barrier=0 noauto_da_alloc
  118. start mad2sd
  119. wait 8
  120.  
  121.  
  122. chown system system /data
  123. chmod 0771 /data
  124.  
  125. # Mount /system rw first to give the filesystem a chance to save a checkpoint
  126.  
  127. chmod 0770 /dev/stl9
  128. chmod 0770 /dev/stl10
  129. chmod 0770 /dev/stl11
  130. chmod 0770 /dev/stl12
  131. chmod 0770 /dev/stl13
  132. chmod 0770 /dev/stl14
  133. chmod 0770 /dev/stl15
  134.  
  135. chmod 0770 /dev/bml9
  136. chmod 0770 /dev/bml10
  137. chmod 0770 /dev/bml11
  138. chmod 0770 /dev/bml12
  139. chmod 0770 /dev/bml13
  140. chmod 0770 /dev/bml14
  141. chmod 0770 /dev/bml15
  142. # Create cgroup mount points for process groups
  143. mkdir /dev/cpuctl
  144. mount cgroup none /dev/cpuctl cpu
  145. chown system system /dev/cpuctl
  146. chown system system /dev/cpuctl/tasks
  147. chmod 0777 /dev/cpuctl/tasks
  148. write /dev/cpuctl/cpu.shares 1024
  149.  
  150. mkdir /dev/cpuctl/fg_boost
  151. chown system system /dev/cpuctl/fg_boost/tasks
  152. chmod 0777 /dev/cpuctl/fg_boost/tasks
  153. write /dev/cpuctl/fg_boost/cpu.shares 1024
  154.  
  155. mkdir /dev/cpuctl/bg_non_interactive
  156. chown system system /dev/cpuctl/bg_non_interactive/tasks
  157. chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
  158. # 5.0 %
  159. write /dev/cpuctl/bg_non_interactive/cpu.shares 52
  160.  
  161. # mount mtd partitions
  162. # Mounting of system/userdata is moved to 'on emmc' and 'on nand' sections
  163. # We chown/chmod /data again so because mount is run as root + defaults
  164. chown system system /data
  165. chmod 0771 /data
  166.  
  167. # Mounting of persist is moved to 'on emmc' and 'on nand' sections
  168. # We chown/chmod /persist again so because mount is run as root + defaults
  169. chown system system /persist
  170. chmod 0771 /persist
  171.  
  172. # Create dump dir and collect dumps.
  173. # Do this before we mount cache so eventually we can use cache for
  174. # storing dumps on platforms which do not have a dedicated dump partition.
  175.  
  176. mkdir /data/dontpanic
  177. chown root log /data/dontpanic
  178. chmod 0750 /data/dontpanic
  179.  
  180. # Collect apanic data, free resources and re-arm trigger
  181. copy /proc/apanic_console /data/dontpanic/apanic_console
  182. chown root log /data/dontpanic/apanic_console
  183. chmod 0640 /data/dontpanic/apanic_console
  184.  
  185. copy /proc/apanic_threads /data/dontpanic/apanic_threads
  186. chown root log /data/dontpanic/apanic_threads
  187. chmod 0640 /data/dontpanic/apanic_threads
  188.  
  189. write /proc/apanic_console 1
  190.  
  191. # Collect ramconsole data
  192. copy /proc/last_kmsg /data/dontpanic/last_kmsg
  193. chown root log /data/dontpanic/last_kmsg
  194. chmod 0640 /data/dontpanic/last_kmsg
  195. # Same reason as /data above
  196. mount yaffs2 mtd@cache /cache nosuid nodev
  197. chown system cache /cache
  198. chmod 0770 /cache
  199.  
  200. # [ latin_ui tyoon.hwang apply horizontal deployment CL 867831
  201. # cache folder for bigger file than /cache
  202. mkdir /data/cache
  203. chown system cache /data/cache
  204. chmod 0770 /data/cache
  205. # ] latin_ui tyoon.hwang apply horizontal deployment CL 867831
  206.  
  207. # This may have been created by the recovery system with odd permissions
  208. chown system cache /cache/recovery
  209. chmod 0770 /cache/recovery
  210.  
  211. #change permissions on vmallocinfo so we can grab it from bugreports
  212. chown root log /proc/vmallocinfo
  213. chmod 0440 /proc/vmallocinfo
  214.  
  215. #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
  216. chown root system /proc/kmsg
  217. chmod 0440 /proc/kmsg
  218. chown root system /proc/sysrq-trigger
  219. chmod 0220 /proc/sysrq-trigger
  220.  
  221. # create basic filesystem structure
  222. mkdir /data/misc 01771 system misc
  223. mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
  224. mkdir /data/misc/bluetooth 0770 system system
  225. mkdir /data/misc/keystore 0700 keystore keystore
  226. mkdir /data/misc/vpn 0770 system system
  227. mkdir /data/misc/systemkeys 0700 system system
  228. mkdir /data/misc/vpn/profiles 0770 system system
  229. # give system access to wpa_supplicant.conf for backup and restore
  230. mkdir /data/misc/wifi 0770 wifi wifi
  231. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  232. mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
  233. chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  234. mkdir /data/misc/dhcp 0770 dhcp dhcp
  235. mkdir /data/misc/wifi/hostapd 0770 wifi wifi
  236. chown system system /sys/devices/platform/msm_sdcc.1/detect_change
  237. chown system system /sys/devices/platform/msm_sdcc.2/detect_change
  238. chown system system /sys/devices/platform/msm_sdcc.3/detect_change
  239. chown system system /sys/devices/platform/msm_sdcc.4/detect_change
  240. mkdir /data/local 0771 shell shell
  241. mkdir /data/local/tmp 0771 shell shell
  242. mkdir /data/data 0771 system system
  243. mkdir /data/app-private 0771 system system
  244. mkdir /data/app 0771 system system
  245. mkdir /data/property 0700 root root
  246. mkdir /data/radio 0770 radio radio
  247. mkdir /data/misc/sensors 0777 system misc
  248.  
  249. # create log system
  250. mkdir /data/log 0777 root root
  251. chmod 0777 /data/log
  252.  
  253. # anr mode chage
  254. mkdir /data/anr 0777 system system
  255. chmod 0777 /data/anr
  256.  
  257. chmod 0662 /dev/log/system
  258. chmod 0662 /dev/log/radio
  259. chmod 0662 /dev/log/events
  260. chmod 0662 /dev/log/main
  261.  
  262. # create dalvik-cache and double-check the perms
  263. mkdir /data/dalvik-cache 0771 system system
  264. chown system system /data/dalvik-cache
  265. chmod 0771 /data/dalvik-cache
  266.  
  267. # create the lost+found directories, so as to enforce our permissions
  268. mkdir /data/lost+found 0770
  269. mkdir /cache/lost+found 0770
  270.  
  271. # double check the perms, in case lost+found already exists, and set owner
  272. chown root root /data/lost+found
  273. chmod 0770 /data/lost+found
  274. chown root root /cache/lost+found
  275. chmod 0770 /cache/lost+found
  276.  
  277. # change the permissionsensor chips
  278. chown root system /dev/mmc31xx
  279. chown root system /dev/bma_accel
  280. chown root system /dev/ecompass_ctrl
  281. chown root system /dev/proximity
  282.  
  283. chmod 0660 /dev/mmc31xx
  284. chmod 0660 /dev/bma_accel
  285. chmod 0660 /dev/ecompass_ctrl
  286. chmod 0660 /dev/proximity
  287.  
  288. chmod 0660 /data/misc/sensors/ecs_nvm
  289. chmod 0660 /data/misc/sensors/accel_offset
  290.  
  291. on boot
  292. # basic network init
  293. ifup lo
  294. hostname localhost
  295. domainname localdomain
  296.  
  297. # set RLIMIT_NICE to allow priorities from 19 to -20
  298. setrlimit 13 40 40
  299.  
  300. # bootsnd
  301. setprop audioflinger.bootsnd 1
  302. # end of bootsnd
  303.  
  304. # Define the oom_adj values for the classes of processes that can be
  305. # killed by the kernel. These are used in ActivityManagerService.
  306. setprop ro.FOREGROUND_APP_ADJ 0
  307. setprop ro.VISIBLE_APP_ADJ 1
  308. setprop ro.SECONDARY_SERVER_ADJ 2
  309. setprop ro.BACKUP_APP_ADJ 2
  310. setprop ro.HOME_APP_ADJ 4
  311. setprop ro.HIDDEN_APP_MIN_ADJ 7
  312. setprop ro.CONTENT_PROVIDER_ADJ 14
  313. setprop ro.EMPTY_APP_ADJ 15
  314.  
  315. # Define the memory thresholds at which the above process classes will
  316. # be killed. These numbers are in pages (4k).
  317. setprop ro.FOREGROUND_APP_MEM 1536
  318. setprop ro.VISIBLE_APP_MEM 2048
  319. setprop ro.SECONDARY_SERVER_MEM 4096
  320. setprop ro.BACKUP_APP_MEM 4096
  321. setprop ro.HOME_APP_MEM 4096
  322. setprop ro.HIDDEN_APP_MEM 5120
  323. #setprop ro.CONTENT_PROVIDER_MEM 5632
  324. #setprop ro.EMPTY_APP_MEM 6144
  325. setprop ro.CONTENT_PROVIDER_MEM 6144
  326. setprop ro.EMPTY_APP_MEM 8960
  327. setprop ro.bt.bdaddr_path "/data/misc/bluetooth/bt_addr"
  328.  
  329. # Write value must be consistent with the above properties.
  330. # Note that the driver only supports 6 slots, so we have HOME_APP at the
  331. # same memory level as services.
  332. write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15
  333.  
  334. write /proc/sys/vm/overcommit_memory 1
  335. write /proc/sys/vm/min_free_order_shift 4
  336. write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,6144,8192,12288,15360
  337.  
  338. # Set init its forked children's oom_adj.
  339. write /proc/1/oom_adj -16
  340.  
  341. # Tweak background writeout
  342. write /proc/sys/vm/dirty_expire_centisecs 200
  343. write /proc/sys/vm/dirty_background_ratio 5
  344.  
  345. # Adjust socket buffer to enlarge TCP receive window for high bandwidth
  346. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  347.  
  348. # Permissions for System Server and daemons.
  349. chown radio system /sys/android_power/state
  350. chown radio system /sys/android_power/request_state
  351. chown radio system /sys/android_power/acquire_full_wake_lock
  352. chown radio system /sys/android_power/acquire_partial_wake_lock
  353. chown radio system /sys/android_power/release_wake_lock
  354. chown radio system /sys/power/state
  355. chown radio system /sys/power/wake_lock
  356. chown radio system /sys/power/wake_unlock
  357. chmod 0660 /sys/power/state
  358. chmod 0660 /sys/power/wake_lock
  359. chmod 0660 /sys/power/wake_unlock
  360. chown system system /sys/class/timed_output/vibrator/enable
  361. chown system system /sys/class/leds/keyboard-backlight/brightness
  362. chown system system /sys/class/leds/lcd-backlight/brightness
  363. chown system system /sys/class/leds/button-backlight/brightness
  364. chown system system /sys/class/leds/jogball-backlight/brightness
  365. chown system system /sys/class/leds/red/brightness
  366. chown system system /sys/class/leds/green/brightness
  367. chown system system /sys/class/leds/blue/brightness
  368. chown system system /sys/class/leds/red/device/grpfreq
  369. chown system system /sys/class/leds/red/device/grppwm
  370. chown system system /sys/class/leds/red/device/blink
  371. chown system system /sys/class/leds/red/brightness
  372. chown system system /sys/class/leds/green/brightness
  373. chown system system /sys/class/leds/blue/brightness
  374. chown system system /sys/class/leds/red/device/grpfreq
  375. chown system system /sys/class/leds/red/device/grppwm
  376. chown system system /sys/class/leds/red/device/blink
  377. chown system system /sys/class/timed_output/vibrator/enable
  378. chown system system /sys/module/sco/parameters/disable_esco
  379. chown system system /sys/module/g_android/parameters/product_id
  380. chown system system /sys/kernel/ipv4/tcp_wmem_min
  381. chown system system /sys/kernel/ipv4/tcp_wmem_def
  382. chown system system /sys/kernel/ipv4/tcp_wmem_max
  383. chown system system /sys/kernel/ipv4/tcp_rmem_min
  384. chown system system /sys/kernel/ipv4/tcp_rmem_def
  385. chown system system /sys/kernel/ipv4/tcp_rmem_max
  386. chown root radio /proc/cmdline
  387.  
  388. # for silent reset
  389. chown system system /proc/dump_enable
  390. chown system system /proc/silent
  391.  
  392. # for multi csc
  393. chown radio radio /proc/LinuStoreIII/efs_info
  394. chmod 0664 /proc/LinuStoreIII/efs_info
  395. # for protecting key string
  396. chown radio radio /proc/LinuStoreIII/keystr
  397. chmod 0664 /proc/LinuStoreIII/keystr
  398.  
  399. # sound text data file
  400. chmod 0777 /data/soundbooster.txt
  401. chmod 0777 /data/aeqcoe.txt
  402. chmod 0777 /data/lmfilter.txt
  403. chmod 0777 /data/eqfilter.txt
  404. chmod 0777 /data/situation.txt
  405. chmod 0777 /data/stream_headset.txt
  406. chmod 0777 /data/stream_speaker.txt
  407.  
  408. # Put download cache on /data partition due to size limitations
  409. mkdir /data/download 0771 system cache
  410.  
  411. # For VPN (workaround)
  412. mkdir /data/data/misc 0777 system system
  413. mkdir /data/data/misc/vpn 0777 system system
  414. mkdir /data/data/misc/vpn/profiles 0777 system system
  415.  
  416. # for Dump On/Off
  417. chmod 0777 /data/dump_enable
  418.  
  419. # Permissions for qmuxd
  420. chown radio radio /dev/smdcntl0
  421. chown radio radio /dev/smdcntl1
  422. chown radio radio /dev/smdcntl2
  423.  
  424. # +++++++++++++++++++++++++++++++++++++++++++
  425. # for Bluetooth
  426. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  427. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  428. chown system system /sys/module/sco/parameters/disable_esco
  429. chmod 0660 /sys/module/bluetooth_power/parameters/power
  430. chmod 0660 /proc/bluetooth/sleep/proto
  431.  
  432. chown bluetooth bluetooth /dev/uinput
  433. chmod 0660 /dev/uinput
  434. chown bluetooth bluetooth /dev/ttyHS0
  435. chmod 0660 /dev/ttyHS0
  436. chmod 0660 /dev/ttySMD0
  437.  
  438. chmod 0770 /sys/class/rfkill/rfkill0/state
  439. chmod 0770 /sys/class/rfkill/rfkill1/state
  440. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  441. chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
  442.  
  443. chown root root /system/bin/brcm_dutMode
  444. chmod 6777 /system/bin/brcm_dutMode
  445.  
  446. # jhlee 2010.12.23
  447. setprop service.brcm.bt.srv_active 0
  448. setprop service.brcm.bt.hcid_active 0
  449. setprop service.brcm.fm.activation 0
  450.  
  451.  
  452. # ihryu 2010.07.19
  453. setprop ro.rfkilldisabled 0
  454. class_start default
  455. # +++++++++++++++++++++++++++++++++++++++++++
  456.  
  457. chown system system /sys/devices/platform/msm_sdcc.1/polling
  458. chown system system /sys/devices/platform/msm_sdcc.2/polling
  459. chown system system /sys/devices/platform/msm_sdcc.3/polling
  460. chown system system /sys/devices/platform/msm_sdcc.4/polling
  461. chown system system /sys/devices/platform/android_usb/composition
  462. chown system system /sys/devices/platform/android_usb/remote_wakeup
  463. # MAX8899 headset detect
  464. chown radio system /sys/class/switch/h2w/state
  465.  
  466. # Define TCP buffer sizes for various networks
  467. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  468. setprop net.tcp.buffersize.default 4096,65535,196608,4096,16384,110208
  469. setprop net.tcp.buffersize.wifi 4095,65535,196608,4096,16384,110208
  470. setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
  471. setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
  472. setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
  473.  
  474. # for datarouter
  475. chown system system /dev/ttygs0
  476. chown system system /dev/dun
  477.  
  478. class_start default
  479.  
  480. # for Wi-Fi
  481. setprop wifi.interface wlan0
  482. insmod /system/wifi/ar6000.ko "ifname=wlan0"
  483. setprop wlan.driver.apmode "unloaded"
  484.  
  485. ## Daemon processes to be run by init.
  486. ##
  487. service console /system/bin/sh
  488. console
  489. user shell
  490. group shell system log
  491.  
  492.  
  493. # adbd is controlled by the persist.service.adb.enable system property
  494. service adbd /sbin/adbd
  495. group shell log
  496. disabled
  497.  
  498. # adbd on at boot in emulator
  499. on property:ro.kernel.qemu=1
  500. start adbd
  501.  
  502. on property:persist.service.adb.enable=1
  503. start adbd
  504. write /sys/module/g_android/parameters/product_id 9017
  505.  
  506. on property:persist.service.adb.enable=0
  507. stop adbd
  508.  
  509. service playsound /system/bin/playsound
  510. user root
  511. disabled
  512. oneshot
  513.  
  514. service playlogo /system/bin/playlogo
  515. user root
  516. oneshot
  517.  
  518. service servicemanager /system/bin/servicemanager
  519. user system
  520. critical
  521. onrestart restart zygote
  522. onrestart restart media
  523.  
  524. service vold /system/bin/vold
  525. socket vold stream 0660 root mount
  526. ioprio be 2
  527.  
  528. service netd /system/bin/netd
  529. socket netd stream 0660 root system
  530.  
  531. service debuggerd /system/bin/debuggerd
  532.  
  533. service qmuxd /system/bin/qmuxd
  534. user radio
  535. group system radio inet
  536.  
  537. service ril-daemon /system/bin/rild
  538. socket rild stream 660 root radio
  539. socket rild-debug stream 660 radio system
  540. user root
  541. group radio cache inet misc audio qcom_oncrpc diag log
  542.  
  543. #service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
  544.  
  545. service DR-daemon /system/bin/drexe
  546. user root
  547. group system radio inet net_raw
  548.  
  549. service mobex-daemon /system/bin/npsmobex
  550. user system
  551. group system inet
  552.  
  553. service cnd /system/bin/cnd
  554. socket cnd stream 660 root radio
  555. socket cne stream 660 root radio
  556.  
  557. service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
  558. socket zygote stream 666
  559. onrestart write /sys/android_power/request_state wake
  560. onrestart write /sys/power/state on
  561. onrestart restart media
  562.  
  563. service media /system/bin/mediaserver
  564. user media
  565. group system audio camera graphics inet net_bt net_bt_admin net_raw
  566. ioprio rt 4
  567.  
  568. service bootanim /system/bin/bootanimation
  569. user graphics
  570. group graphics
  571. disabled
  572. oneshot
  573.  
  574. # Start Bluetooth =========================================================================
  575. service dbus /system/bin/dbus-daemon --system --nofork
  576. socket dbus stream 660 bluetooth bluetooth
  577. user bluetooth
  578. group bluetooth net_bt_admin
  579.  
  580. service btld /system/bin/logwrapper /system/bin/btld -hb 3000000 -hp /dev/ttyHS0 -lpm 1
  581. # init.rc does not yet support applying capabilities, so run as root and
  582. # let btld drop uid to bluetooth with the right linux capabilities
  583. group bluetooth net_bt_admin
  584. disabled
  585. oneshot
  586.  
  587. service obexd /system/bin/logwrapper /system/bin/obexd
  588. #socket bluetooth stream 660 bluetooth bluetooth
  589. #socket dbus_bluetooth stream 660 bluetooth bluetooth
  590. # init.rc does not yet support applying capabilities, so run as root and
  591. # let obexd drop uid to bluetooth with the right linux capabilities
  592. user root
  593. group bluetooth net_bt_admin
  594. disabled
  595. oneshot
  596.  
  597. service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -n -d
  598. socket bluetooth stream 660 bluetooth bluetooth
  599. socket dbus_bluetooth stream 660 bluetooth bluetooth
  600. # init.rc does not yet support applying capabilities, so run as root and
  601. # let bluetoothd drop uid to bluetooth with the right linux capabilities
  602. group bluetooth net_bt_admin misc
  603. disabled
  604.  
  605. service hfag /system/bin/sdptool add --channel=10 HFAG
  606. user bluetooth
  607. group bluetooth net_bt_admin
  608. disabled
  609. oneshot
  610.  
  611. service hsag /system/bin/sdptool add --channel=11 HSAG
  612. user bluetooth
  613. group bluetooth net_bt_admin
  614. disabled
  615. oneshot
  616.  
  617. service opush /system/bin/sdptool add --channel=12 OPUSH
  618. user bluetooth
  619. group bluetooth net_bt_admin
  620. disabled
  621. oneshot
  622.  
  623. service pbap /system/bin/sdptool add --channel=19 PBAP
  624. user bluetooth
  625. group bluetooth net_bt_admin
  626. disabled
  627. oneshot
  628. # End of Bluetooth =========================================================================
  629.  
  630. #HCI_ENABLE_BT_DEV_UNDER_TEST_MODE
  631. service bt_dut_cmd /system/bin/brcm_dutMode
  632. user root
  633. group bluetooth net_bt_admin
  634. disabled
  635. oneshot
  636.  
  637. #for WiFi MFG(TestMode)
  638. service mfgloader /system/bin/mfgloader
  639. user system
  640. disabled
  641. oneshot
  642.  
  643. service wlandutservice /system/bin/wlandutservice
  644. user system
  645. group inet
  646. disabled
  647. oneshot
  648.  
  649. service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
  650. disabled
  651. oneshot
  652.  
  653. service hostapd /system/bin/hostapd /data/misc/wifi/hostapd.conf
  654. socket hostapd_wlan1 dgram 660 system wifi
  655. user system
  656. group wifi net_raw net_admin system inet
  657. oneshot
  658. disabled
  659.  
  660. service dhcpcd /system/bin/dhcpcd wlan0
  661. disabled
  662. oneshot
  663.  
  664. service wlan_mac /system/bin/wlan_mac
  665. user system
  666. group system net_raw net_admin inet
  667. oneshot
  668.  
  669. service wlan_tool /system/bin/wlan_tool
  670. disabled
  671. oneshot
  672.  
  673. service abtfilt /system/bin/abtfilt -d -z -n -v -b -s
  674. user bluetooth
  675. group system bluetooth net_bt_admin inet
  676. disabled
  677. oneshot
  678.  
  679. # end of wifi
  680.  
  681. service installd /system/bin/installd
  682. socket installd stream 600 system system
  683.  
  684. service flash_recovery /system/etc/install-recovery.sh
  685. oneshot
  686.  
  687.  
  688. service racoon /system/bin/racoon
  689. socket racoon stream 600 system system
  690. # racoon will setuid to vpn after getting necessary resources.
  691. group net_admin
  692. disabled
  693. oneshot
  694.  
  695. service mtpd /system/bin/mtpd
  696. socket mtpd stream 600 system system
  697. user vpn
  698. group vpn net_admin net_raw
  699. disabled
  700. oneshot
  701.  
  702. service keystore /system/bin/keystore /data/misc/keystore
  703. user keystore
  704. group keystore
  705. socket keystore stream 666
  706.  
  707. service dumpstate /system/bin/dumpstate -s
  708. socket dumpstate stream 0660 shell log
  709. disabled
  710. oneshot
  711.  
  712. service qcom-post-boot /system/bin/sh /init.qcom.post_boot.sh
  713. user root
  714. disabled
  715. oneshot
  716.  
  717. on property:dev.bootdone=1
  718. start qcom-post-boot
  719.  
  720. #service dhcp-service /system/bin/netcfg eth0 dhcp
  721. # oneshot
  722. #
  723. on property:dev.bootcomplete=1
  724. stop dhcp-service
  725. start dhcp-service
  726. service memsicd /system/bin/memsicd
  727. user system
  728. group system
  729. oneshot
  730.  
  731. service mad2sd /sbin/mad2sd doboot
  732. user root
  733. oneshot
  734. disabled
Add Comment
Please, Sign In to add comment