angel12

Untitled

Aug 22nd, 2011
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.91 KB | None | 0 0
  1. on early-init
  2. start ueventd
  3.  
  4. on init
  5.  
  6. sysclktz 0
  7.  
  8. loglevel 3
  9.  
  10. # setup the global environment
  11. export PATH /sbin:/system/sbin:/system/bin:/system/xbin
  12. export LD_LIBRARY_PATH /system/lib:/system/lib/egl
  13. export ANDROID_BOOTLOGO 1
  14. export ANDROID_CACHE /cache
  15. export ANDROID_ROOT /system
  16. export ANDROID_ASSETS /system/app
  17. export ANDROID_DATA /data
  18. export EXTERNAL_STORAGE /mnt/sdcard
  19. export ASEC_MOUNTPOINT /mnt/asec
  20. export SD_EXT_DIRECTORY /sd-ext
  21. export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
  22. export LOOP_MOUNTPOINT /mnt/obb
  23. export TMPDIR /data/local/tmp
  24. export TERMINFO /system/etc/terminfo
  25.  
  26. # Backward compatibility
  27. symlink /system/etc /etc
  28. symlink /sys/kernel/debug /d
  29.  
  30. # to enable wifi
  31. setprop wifi.interface "eth0"
  32. # end of wifi
  33.  
  34. #samsung dpram modules
  35. mknod 0666 /dev/dpram0 c 255 1
  36. mknod 0666 /dev/dpram1 c 255 2
  37. mknod 0666 /dev/dpramerr c 255 0
  38. mknod 0666 /dev/ttyCDMA0 c 240 1
  39.  
  40. # ppp modules
  41. mknod 0666 /dev/ppp c 108 0
  42.  
  43. # Insert all modules here
  44. mkdir /lib/modules
  45. insmod /lib/modules/fsr.ko
  46. insmod /lib/modules/fsr_stl.ko
  47. insmod /lib/modules/rfs_glue.ko
  48. insmod /lib/modules/rfs_fat.ko
  49. insmod /lib/modules/j4fs.ko
  50. insmod /lib/modules/storage.ko
  51. insmod /lib/modules/Si4709_driver.ko
  52. insmod /lib/modules/vibrator.ko
  53. insmod /lib/modules/bthid.ko
  54. insmod /lib/modules/param.ko
  55. insmod /lib/modules/ltespi.ko
  56. insmod /lib/modules/onedram.ko
  57. insmod /lib/modules/svnet.ko
  58. insmod /lib/modules/modemctl.ko
  59. insmod /lib/modules/dpram.ko
  60. insmod /lib/modules/nvstorage.ko
  61. insmod /lib/modules/ext4.ko
  62. insmod /lib/modules/jbd2.ko
  63.  
  64. # create mountpoints
  65. mkdir /mnt 0775 root system
  66. mkdir /mnt/sdcard 0000 system system
  67.  
  68. # Create cgroup mount point for cpu accounting
  69. mkdir /acct
  70. mount cgroup none /acct cpuacct
  71. mkdir /acct/uid
  72.  
  73. # Backwards Compat - XXX: Going away in G*
  74. symlink /mnt/sdcard /sdcard
  75.  
  76. # Filesystem image public mount points.
  77. mkdir /mnt/obb 0700 root system
  78. mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
  79.  
  80. # create mountpoints
  81. mkdir /system
  82. mkdir /data 0771 system system
  83. mkdir /cache 0770 system cache
  84. mkdir /config 0500 root root
  85.  
  86. # Directory for putting things only root should see.
  87. mkdir /mnt/secure 0700 root root
  88.  
  89. # Directory for staging bindmounts
  90. mkdir /mnt/secure/staging 0700 root root
  91.  
  92. # Directory-target for where the secure container
  93. # imagefile directory will be bind-mounted
  94. mkdir /mnt/secure/asec 0700 root root
  95.  
  96. # Secure container public mount points.
  97. mkdir /mnt/asec 0700 root system
  98. mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
  99. mkdir /sd-ext 0771 system system
  100.  
  101. mount rootfs rootfs / ro remount
  102.  
  103. write /proc/sys/kernel/panic_on_oops 1
  104. write /proc/sys/kernel/hung_task_timeout_secs 0
  105. write /proc/cpu/alignment 4
  106. write /proc/sys/kernel/sched_latency_ns 10000000
  107. write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
  108. write /proc/sys/kernel/sched_compat_yield 1
  109. write /sys/devices/system/cpu/cpu0/cpufreq/conservative/sampling_rate 125000
  110.  
  111. # Create cgroup mount points for process groups
  112. mkdir /dev/cpuctl
  113. mount cgroup none /dev/cpuctl cpu
  114. chown system system /dev/cpuctl
  115. chown system system /dev/cpuctl/tasks
  116. chmod 0777 /dev/cpuctl/tasks
  117. write /dev/cpuctl/cpu.shares 1024
  118. mkdir /dev/cpuctl/fg_boost
  119. chown system system /dev/cpuctl/fg_boost/tasks
  120. chmod 0777 /dev/cpuctl/fg_boost/tasks
  121. write /dev/cpuctl/fg_boost/cpu.shares 1024
  122. mkdir /dev/cpuctl/bg_non_interactive
  123. chown system system /dev/cpuctl/bg_non_interactive/tasks
  124. chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
  125. write /dev/cpuctl/bg_non_interactive/cpu.shares 52
  126.  
  127. # Permissions for sound
  128. chmod 0666 /dev/snd/controlC0
  129. chmod 0666 /dev/snd/controlC1
  130. chmod 0666 /dev/snd/pcmC0D0c
  131. chmod 0666 /dev/snd/pcmC0D0p
  132. chmod 0666 /dev/snd/pcmC1D0c
  133. chmod 0666 /dev/snd/pcmC1D0d
  134. chmod 0666 /dev/snd/timer
  135.  
  136. # Mount /system rw first to give the filesystem a chance to save a checkpoint
  137. mount rfs /dev/block/stl10 /system ro check=no
  138. mount ext4 /dev/block/stl10 /system wait noatime nosuid nodev
  139.  
  140. # We chown/chmod /data again so because mount is run as root + defaults
  141. mount rfs /dev/block/mmcblk0p1 /data nosuid nodev check=no
  142. mount ext4 /dev/block/mmcblk0p1 /data wait noatime nosuid nodev
  143. chown system system /data
  144. chmod 0771 /data
  145.  
  146. # Create dump dir and collect dumps.
  147. # Do this before we mount cache so eventually we can use cache for
  148. # storing dumps on platforms which do not have a dedicated dump partition.
  149. mkdir /data/dontpanic 0750 root log
  150. chown root log /data/dontpanic
  151. chmod 0750 /data/dontpanic
  152.  
  153. # Collect apanic data, free resources and re-arm trigger
  154. copy /proc/apanic_console /data/dontpanic/apanic_console
  155. chown root log /data/dontpanic/apanic_console
  156. chmod 0640 /data/dontpanic/apanic_console
  157. copy /proc/apanic_threads /data/dontpanic/apanic_threads
  158. chown root log /data/dontpanic/apanic_threads
  159. chmod 0640 /data/dontpanic/apanic_threads
  160.  
  161. write /proc/apanic_console 1
  162.  
  163. # Same reason as /data above
  164. mount rfs /dev/block/stl11 /dbdata nosuid nodev check=no
  165. mount ext4 /dev/block/stl11 /dbdata wait noatime nosuid nodev
  166. chown radio radio /efs
  167. chmod 770 /efs/bluetooth
  168. chmod 770 /efs/imei
  169. mount rfs /dev/block/mmcblk0p3 /cache nosuid nodev check=no
  170. mount ext4 /dev/block/mmcblk0p3 /cache wait noatime nosuid nodev
  171. chown system cache /cache
  172. chmod 0771 /cache
  173.  
  174. mkdir /efs 0775 radio radio
  175. mount rfs /dev/block/stl3 /efs nosuid nodev check=no
  176. mkdir /mnt 0755 root root
  177. mkdir /mnt/.lfs 0755 root root
  178. mount j4fs /dev/block/stl7 /mnt/.lfs
  179.  
  180. # This may have been created by the recovery system with odd permissions
  181. chown system cache /cache/recovery
  182. chmod 0770 /cache/recovery
  183.  
  184. #change permissions on vmallocinfo so we can grab it from bugreports
  185. chown root log /proc/vmallocinfo
  186. chmod 0440 /proc/vmallocinfo
  187.  
  188. #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
  189. chown root system /proc/kmsg
  190. chmod 0440 /proc/kmsg
  191. chown root system /proc/sysrq-trigger
  192. chmod 0220 /proc/sysrq-trigger
  193.  
  194. # create data/gps for GPS demon
  195. mkdir /data/gps 771 system system
  196. chown system /data/gps
  197. chmod 771 /data/gps
  198.  
  199. # GPS development for broadcom.
  200. chmod 600 /system/etc/secgps.conf
  201.  
  202. # create basic filesystem structure
  203. mkdir /data/misc 01771 system misc
  204. mkdir /data/misc/hcid 0770 bluetooth bluetooth
  205. mkdir /data/misc/bluetooth 0777 bluetooth bluetooth
  206. mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
  207. mkdir /data/misc/keystore 0700 keystore keystore
  208. mkdir /data/misc/vpn 0770 system system
  209. mkdir /data/misc/systemkeys 0700 system system
  210. mkdir /data/misc/vpn/profiles 0770 system system
  211. mkdir /data/misc/radio 0771 radio radio
  212. # give system access to wpa_supplicant.conf for backup and restore
  213.  
  214. # WiFi
  215. # wpa_supplicant.conf ends up here
  216. mkdir /data/misc/wifi 0777 wifi wifi
  217. chown wifi wifi /data/misc/wifi
  218. chmod 0777 /data/misc/wifi
  219.  
  220. # dhcp needs to be here
  221. mkdir /data/misc/dhcp 0777 dhcp dhcp
  222. chown dhcp dhcp /data/misc/dhcp
  223. chmod 0777 /data/misc/dhcp
  224.  
  225. # sockets end up here hardcoded in wpa_ctrl.c
  226. mkdir /data/misc/wifi/sockets 0777 wifi wifi
  227. chown wifi wifi /data/misc/wifi/sockets
  228. chmod 07777 /data/misc/wifi/sockets
  229.  
  230. # wpa_supplicant dir is hardcoded in wifi.c in legacy_hardware
  231. mkdir /data/system 0775 system system
  232. mkdir /data/system/wpa_supplicant 0777 wifi wifi
  233. chown wifi wifi /data/system/wpa_supplicant
  234. chmod 0777 /data/system/wpa_supplicant
  235.  
  236. # protect the original conf?
  237. chmod 0664 /system/etc/wifi/wpa_supplicant.conf
  238. # End WiFi
  239.  
  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.  
  247. # Camera permissions fix by skeeterslint
  248. chmod 666 /dev/video0
  249. chmod 666 /dev/video1
  250. chmod 666 /dev/video14
  251. chmod 666 /dev/video2
  252. chmod 666 /dev/video21
  253. chmod 666 /dev/video22
  254.  
  255. # Create the Log System
  256. mkdir /data/log 0777 root root
  257. chmod 0777 /data/log
  258. chmod 0777 /data/anr
  259. chmod 0666 /dev/log/radio
  260. chmod 0666 /dev/log/main
  261. chmod 0666 /dev/log/events
  262. chmod 0666 /dev/log/system
  263.  
  264. # create dump camera
  265. mkdir /data/dump 0777 root root
  266. chmod 0777 /data/dump
  267.  
  268. # create fota delta dir
  269. mkdir /data/fota 0777 root root
  270. chmod 0777 /data/fota
  271.  
  272. # create dalvik-cache and double-check the perms
  273. mkdir /data/dalvik-cache 0771 system system
  274. symlink /data/dalvik-cache /cache/dalvik-cache
  275. chown system system /data/dalvik-cache
  276. chown system system /cache/dalvik-cache
  277. chmod 0771 /data/dalvik-cache
  278. chmod 0771 /cache/dalvik-cache
  279.  
  280. # create the lost+found directories, so as to enforce our permissions
  281. mkdir /data/lost+found 0770 root root
  282. mkdir /cache/lost+found 0770 root root
  283.  
  284. # double check the perms, in case lost+found already exists, and set owner
  285. chown root root /data/lost+found
  286. chmod 0770 /data/lost+found
  287. chown root root /cache/lost+found
  288. chmod 0770 /cache/lost+found
  289.  
  290. # allow net_raw to have access to /dev/socket directory
  291. chown root net_raw /dev/socket
  292. chmod 0775 /dev/socket
  293.  
  294. # permissions for MTP device node
  295. chmod 0777 /dev/usb_mtp_gadget
  296.  
  297. # video play for m.youtube.com
  298. mkdir /data/data/.youtube 0777
  299.  
  300. #all operation with rootfs should be finished here, root partition will mounted read-only . d.moskvitin
  301. mount rootfs rootfs / ro remount
  302.  
  303. on boot
  304. # Kernel moves UART control to MODEM during boot. Put it back to PDA so we can continue capturing log output.
  305. write /sys/class/sec/switch/uart_sel PDA
  306. write /sys/class/sec/switch/usb_sel PDA
  307.  
  308. # basic network init
  309. ifup lo
  310. hostname localhost
  311. domainname localdomain
  312.  
  313. # set RLIMIT_NICE to allow priorities from 19 to -20
  314. setrlimit 13 40 40
  315.  
  316. # Set timeout value for rmnet stats.
  317. write /sys/devices/virtual/net/rmnet0/timeout_suspend 5000000
  318.  
  319. # Define the oom_adj values for the classes of processes that can be
  320. # killed by the kernel. These are used in ActivityManagerService.
  321. setprop ro.FOREGROUND_APP_ADJ 0
  322. setprop ro.VISIBLE_APP_ADJ 1
  323. setprop ro.PERCEPTIBLE_APP_ADJ 2
  324. setprop ro.HEAVY_WEIGHT_APP_ADJ 3
  325. setprop ro.SECONDARY_SERVER_ADJ 4
  326. setprop ro.BACKUP_APP_ADJ 5
  327. setprop ro.HOME_APP_ADJ 6
  328. setprop ro.HIDDEN_APP_MIN_ADJ 7
  329. setprop ro.EMPTY_APP_ADJ 15
  330.  
  331. # Define the memory thresholds at which the above process classes will
  332. # be killed. These numbers are in pages (4k).
  333. setprop ro.FOREGROUND_APP_MEM 2048
  334. setprop ro.VISIBLE_APP_MEM 3072
  335. setprop ro.PERCEPTIBLE_APP_MEM 4096
  336. setprop ro.HEAVY_WEIGHT_APP_MEM 4096
  337. setprop ro.SECONDARY_SERVER_MEM 6144
  338. setprop ro.BACKUP_APP_MEM 6144
  339. setprop ro.HOME_APP_MEM 6144
  340. setprop ro.HIDDEN_APP_MEM 7168
  341. setprop ro.EMPTY_APP_MEM 8192
  342.  
  343. # Write value must be consistent with the above properties.
  344. # Note that the driver only supports 6 slots, so we have HOME_APP at the
  345. # same memory level as services.
  346. write /sys/module/lowmemorykiller/parameters/adj 0,1,2,4,7,15
  347. write /proc/sys/vm/overcommit_memory 1
  348. write /proc/sys/vm/min_free_order_shift 4
  349. write /sys/module/lowmemorykiller/parameters/minfree 2048,3072,4096,6144,7168,8192
  350.  
  351. # Set init its forked children's oom_adj.
  352. write /proc/1/oom_adj -16
  353.  
  354. # Tweak background writeout
  355. write /proc/sys/vm/dirty_expire_centisecs 800
  356. write /proc/sys/vm/dirty_background_ratio 2
  357.  
  358. # tweak sdcard readahead cache
  359. write /sys/block/mmcblk0/bdi/read_ahead_kb 4096
  360.  
  361. # permissions
  362. chmod 666 /system/usr/keychars/s3c-keypad.kcm.bin
  363.  
  364. # Permissions for System Server and daemons.
  365. chown radio system /sys/android_power/state
  366. chown radio system /sys/android_power/request_state
  367. chown radio system /sys/android_power/acquire_full_wake_lock
  368. chown radio system /sys/android_power/acquire_partial_wake_lock
  369. chown radio system /sys/android_power/release_wake_lock
  370. chown radio system /sys/power/state
  371. chown radio system /sys/power/wake_lock
  372. chown radio system /sys/power/wake_unlock
  373. chown radio system /sys/power/dvfslock_ctrl
  374. chmod 0660 /sys/power/state
  375. chmod 0660 /sys/power/wake_lock
  376. chmod 0660 /sys/power/wake_unlock
  377. chmod 0660 /sys/power/dvfslock_ctrl
  378. chown system system /sys/class/timed_output/vibrator/enable
  379. chmod 0777 /sys/class/timed_output/vibrator/enable
  380. chown system system /sys/class/leds/keyboard-backlight/brightness
  381. chown system system /sys/class/leds/lcd-backlight/brightness
  382. chown system system /sys/class/leds/button-backlight/brightness
  383. chown system system /sys/class/leds/jogball-backlight/brightness
  384. chown system system /sys/class/leds/red/brightness
  385. chown system system /sys/class/leds/blue/brightness
  386. chown system system /sys/class/leds/red/trigger
  387. chown system system /sys/class/leds/blue/trigger
  388. chown system system /sys/class/leds/red/delay_on
  389. chown system system /sys/class/leds/red/delay_off
  390. chown system system /sys/class/leds/blue/delay_on
  391. chown system system /sys/class/leds/blue/delay_off
  392. chown system system /sys/module/sco/parameters/disable_esco
  393. chown system system /sys/kernel/ipv4/tcp_wmem_min
  394. chown system system /sys/kernel/ipv4/tcp_wmem_def
  395. chown system system /sys/kernel/ipv4/tcp_wmem_max
  396. chown system system /sys/kernel/ipv4/tcp_rmem_min
  397. chown system system /sys/kernel/ipv4/tcp_rmem_def
  398. chown system system /sys/kernel/ipv4/tcp_rmem_max
  399. chown root radio /proc/cmdline
  400. chown system system /sys/devices/platform/s3c-keypad/key_pressed
  401. chmod 0777 /sys/devices/platform/s3c-keypad/key_pressed
  402.  
  403. # for Sensor HAL
  404. chown compass system /dev/yamaha_compass
  405. chmod 0777 /dev/yamaha_compass
  406. chown system system /dev/hac_miscdev
  407. chmod 0777 /dev/hac_miscdev
  408. chown system system /dev/accelerometer
  409. chmod 0777 /dev/accelerometer
  410. chown compass system /dev/accel
  411. chown 0777 /dev/accel
  412. chown compass system /dev/compass
  413. chmod 0777 /dev/compass
  414. chown system system /dev/akm8973_daemon
  415. chmod 0777 /dev/akm8973_daemon
  416. chown system system /dev/akm8973_aot
  417. chmod 0777 /dev/akm8973_aot
  418. chown system system /dev/proximity
  419. chmod 0777 /dev/proximity
  420. chown system system /dev/light
  421. chmod 0777 /dev/light
  422.  
  423. # magnetic sensor yamaha
  424. chown compass system /dev/i2c-12
  425. chmod 0777 /dev/i2c-12
  426. chown compass system /dev/i2c-5
  427. chmod 0777 /dev/i2c-5
  428.  
  429. # for wimax
  430. chown system system /dev/swmxctl
  431. chown system system /dev/uwibro
  432.  
  433. # Define TCP buffer sizes for various networks
  434. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  435. setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
  436. setprop net.tcp.buffersize.wifi 4095,65535,196608,4096,16384,110208
  437. setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
  438. setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
  439. setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
  440. setprop net.tcp.buffersize.wimax 4092,87380,1520768,4092,16384,1520768
  441.  
  442. # +++++++++++++++++++++++++++++++++++++++++++
  443.  
  444. # Define modem related settings
  445. setprop ro.radio.use-ppp yes
  446. # for Bluetooth
  447. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  448. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  449. chown system system /sys/module/sco/parameters/disable_esco
  450. chmod 0660 /sys/module/bluetooth_power/parameters/power
  451. chmod 0660 /proc/bluetooth/sleep/proto
  452.  
  453. chown bluetooth bluetooth /dev/uinput
  454. chmod 0666 /dev/uinput
  455.  
  456. chmod 0666 /dev/input/event3
  457. chmod 0666 /dev/input/mouse0
  458. chmod 0666 /dev/input/event2
  459. chmod 0666 /dev/input/event1
  460. chmod 0666 /dev/input/mice
  461. chmod 0666 /dev/input/event0
  462.  
  463. chown bluetooth bluetooth /dev/s3c2410_serial0
  464. chmod 0660 /dev/s3c2410_serial0
  465. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  466. chmod 0777 /sys/class/rfkill/rfkill0/state
  467. chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
  468. chmod 0777 /sys/class/rfkill/rfkill1/state
  469.  
  470. chmod 6777 /system/bin/brcm_dutMode
  471. # +++++++++++++++++++++++++++++++++++++++++++
  472.  
  473. # Run sysinit
  474. exec /system/bin/sysinit
  475.  
  476. class_start default
  477.  
  478. ## Daemon processes to be run by init.
  479.  
  480. service console /system/bin/sh
  481. user shell
  482. group shell system log
  483. console
  484.  
  485. # adbd is controlled by the persist.service.adb.enable system property
  486. service adbd /sbin/adbd
  487. group shell log
  488. disabled
  489.  
  490. # adbd on at boot in emulator
  491. on property:ro.kernel.qemu=1
  492. start adbd
  493.  
  494. on property:persist.service.adb.enable=1
  495. start adbd
  496.  
  497. on property:persist.service.adb.enable=0
  498. stop adbd
  499.  
  500. on property:persist.service.slate_mode=1
  501. write /sys/class/power_supply/battery/batt_slate_mode 1
  502.  
  503. on property:persist.service.slate_mode=0
  504. write /sys/class/power_supply/battery/batt_slate_mode 0
  505.  
  506. # 3D init
  507. service pvrsrvinit /system/bin/pvrsrvinit
  508. user root
  509. group root
  510. oneshot
  511.  
  512. service servicemanager /system/bin/servicemanager
  513. user system
  514. critical
  515. onrestart restart zygote
  516. onrestart restart media
  517.  
  518. # magnetic sensor yamaha
  519. onrestart restart sensor-daemon
  520.  
  521. service vold /system/bin/vold
  522. socket vold stream 0660 root mount
  523. ioprio be 2
  524.  
  525. service netd /system/bin/netd
  526. socket netd stream 0660 root system
  527.  
  528. service debuggerd /system/bin/debuggerd
  529.  
  530. #Added for DUAL RIL Support
  531. service ril-daemon /system/bin/rild -l /system/lib/libsec-ril40.so -s rildgsm
  532. socket rildgsm stream 660 root radio
  533. socket rild-debug stream 660 radio system
  534. user root
  535. group radio cache inet misc audio log
  536.  
  537. service ril-daemon2 /system/bin/rild -l /system/lib/libsec-ril40-cdma.so -s rildcdma
  538. socket rildcdma stream 660 root radio
  539. socket rild-debug stream 660 radio system
  540. user root
  541. group radio cache inet misc audio log
  542.  
  543. service pppd_cdma /system/bin/pppd /dev/ttyCDMA0 115200 user VerizonWireless nodetach usepeerdns defaultroute
  544. user root
  545. group radio cache inet misc system
  546. disabled
  547. oneshot
  548.  
  549. service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
  550. socket zygote stream 666
  551. onrestart write /sys/android_power/request_state wake
  552. onrestart write /sys/power/state on
  553.  
  554. service media /system/bin/mediaserver
  555. user media
  556. group system audio camera graphics inet net_bt net_bt_admin log
  557.  
  558. # to prevent lockup issue during poweron/off test
  559. #service killmediaserver /system/bin/killmediaserver
  560. # user media
  561. # group system
  562. # oneshot
  563.  
  564. service bootanim /system/bin/bootanimation
  565. user graphics
  566. group graphics
  567. disabled
  568. oneshot
  569.  
  570. # to enable wifi
  571. service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
  572. disabled
  573. oneshot
  574.  
  575. service dhcpcd /system/bin/dhcpcd eth0
  576. disabled
  577. oneshot
  578.  
  579. service ifcfg_eth0 /system/bin/ifconfig eth0 up
  580. disabled
  581. oneshot
  582.  
  583. service dbus /system/bin/dbus-daemon --system --nofork
  584. socket dbus stream 660 bluetooth bluetooth
  585. socket bluetooth stream 660 bluetooth bluetooth
  586. socket dbus_bluetooth stream 660 bluetooth bluetooth
  587. user bluetooth
  588. group bluetooth net_bt_admin
  589.  
  590. service hciattach /system/bin/brcm_patchram_plus -d --enable_hci --baudrate 3000000 --patchram /system/bin/BCM4329B1_002.002.023.0417.0430.hcd /dev/s3c2410_serial0
  591. user bluetooth
  592. group bluetooth net_bt_admin
  593. disabled
  594.  
  595. # Start BLUETOOTHD -----------------------------------------
  596. service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -n /etc/bluez/main.conf
  597. socket bluetooth stream 660 bluetooth bluetooth
  598. socket dbus_bluetooth stream 660 bluetooth bluetooth
  599. group bluetooth net_bt_admin misc
  600. disabled
  601. # +++++++++++++++++++++++++++++++++++++++++++
  602.  
  603. service hfag /system/bin/sdptool add --channel=10 HFAG
  604. user bluetooth
  605. group bluetooth net_bt_admin
  606. disabled
  607. oneshot
  608.  
  609. service hsag /system/bin/sdptool add --channel=11 HSAG
  610. user bluetooth
  611. group bluetooth net_bt_admin
  612. disabled
  613. oneshot
  614.  
  615. service opush /system/bin/sdptool add --channel=12 OPUSH
  616. user bluetooth
  617. group bluetooth net_bt_admin
  618. disabled
  619. oneshot
  620.  
  621. service pbap /system/bin/sdptool add --channel=19 PBAP
  622. user bluetooth
  623. group bluetooth net_bt_admin
  624. disabled
  625. oneshot
  626.  
  627. service installd /system/bin/installd
  628. socket installd stream 600 system system
  629.  
  630. # magnetic sensor yamaha
  631. service sensor-daemon /system/bin/sensorserver_yamaha
  632. user root
  633. group system log
  634.  
  635. service racoon /system/bin/racoon
  636. socket racoon stream 600 system system
  637. group net_admin keystore
  638. disabled
  639. oneshot
  640.  
  641. service mtpd /system/bin/mtpd
  642. socket mtpd stream 600 system system
  643. user vpn
  644. group vpn net_admin net_raw
  645. disabled
  646. oneshot
  647.  
  648. service keystore /system/bin/keystore /data/misc/keystore
  649. user keystore
  650. group keystore
  651. socket keystore stream 666
  652.  
  653. # to enable wifi
  654. on property:init.svc.wpa_supplicant=stopped
  655. stop dhcpcd
  656.  
  657. on property:init.svc.dhcpcd=stopped
  658. dhcpcd -k eth0
  659. # end of wifi
  660.  
  661. # for TvOut
  662. service tvout /system/bin/tvoutserver
  663. user system
  664. group system
  665.  
  666. service dumpstate /system/bin/dumpstate -s
  667. socket dumpstate stream 0660 shell log
  668. disabled
  669. oneshot
  670.  
  671. on property:net.cdma.data_ready=true
  672. start pppd_cdma
  673.  
  674. on property:net.cdma.data_ready=false
  675. stop pppd_cdma
  676.  
  677. on property:net.dns1=
  678. setprop net.dns1 8.8.8.8
  679.  
  680. on property:net.dns2=
  681. setprop net.dns2 8.8.4.4
Add Comment
Please, Sign In to add comment