Guest User

Untitled

a guest
Jun 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.01 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
  9. devwait /dev/block/mmcblk0p13
  10. exec /system/bin/e2fsck -p /dev/block/mmcblk0p13
  11. mount ext3 /dev/block/mmcblk0p13 /data nosuid nodev
  12. mount ext3 /dev/block/mmcblk0p14 /persist nosuid nodev
  13.  
  14. on nand
  15.  
  16. mkdir /system
  17. mkdir /data 0771 system system
  18. mkdir /firstboot 0755 system system
  19. mkdir /cache 0770 system cache
  20. mkdir /persist 0711 system system
  21.  
  22. # Mount /system rw first to give the filesystem a chance to save a checkpoint
  23. mount yaffs2 mtd@system /system
  24. mount yaffs2 mtd@system /system rw remount
  25. mount yaffs2 mtd@userdata /firstboot nosuid nodev
  26. devwait /dev/block/innersd0
  27. exec /system/bin/fdiskcmd cleansd
  28. devwait /dev/block/innersd0p5
  29. devwait /dev/block/innersd0p6
  30. exec /system/bin/fdiskcmd
  31. mount yaffs2 mtd@system /system ro remount
  32. mount yaffs2 mtd@persist /persist nosuid nodev
  33.  
  34.  
  35. on init
  36.  
  37. sysclktz 0
  38.  
  39. loglevel 3
  40.  
  41. # setup the global environment
  42. export PATH /sbin:/system/sbin:/system/bin:/system/xbin
  43. export LD_LIBRARY_PATH /system/lib
  44. export ANDROID_BOOTLOGO 1
  45. export ANDROID_ROOT /system
  46. export ANDROID_ASSETS /system/app
  47. export ANDROID_DATA /data
  48. export EXTERNAL_STORAGE /mnt/sdcard
  49. export ASEC_MOUNTPOINT /mnt/asec
  50. export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
  51.  
  52. # Backward compatibility
  53. symlink /system/etc /etc
  54. symlink /sys/kernel/debug /d
  55.  
  56. # create mountpoints
  57. mkdir /mnt 0775 root system
  58. mkdir /mnt/sdcard 0000 system system
  59.  
  60. # Create cgroup mount point for cpu accounting
  61. mkdir /acct
  62. mount cgroup none /acct cpuacct
  63. mkdir /acct/uid
  64.  
  65. # Backwards Compat - XXX: Going away in G*
  66. symlink /mnt/sdcard /sdcard
  67.  
  68. mkdir /cache 0770 system cache
  69. mkdir /config 0500 root root
  70.  
  71. # Directory for putting things only root should see.
  72. mkdir /mnt/secure 0700 root root
  73.  
  74. # Directory for staging bindmounts
  75. mkdir /mnt/secure/staging 0700 root root
  76.  
  77. # Directory-target for where the secure container
  78. # imagefile directory will be bind-mounted
  79. mkdir /mnt/secure/asec 0700 root root
  80.  
  81. # Secure container public mount points.
  82. mkdir /mnt/asec 0700 root system
  83. mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
  84.  
  85. mount rootfs rootfs / ro remount
  86.  
  87. write /proc/sys/kernel/panic_on_oops 1
  88. write /proc/sys/kernel/hung_task_timeout_secs 0
  89. write /proc/cpu/alignment 4
  90. write /proc/sys/kernel/sched_latency_ns 10000000
  91. write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
  92. write /proc/sys/kernel/sched_compat_yield 1
  93. write /proc/sys/kernel/sched_child_runs_first 0
  94.  
  95. # Create cgroup mount points for process groups
  96. mkdir /dev/cpuctl
  97. mount cgroup none /dev/cpuctl cpu
  98. chown system system /dev/cpuctl
  99. chown system system /dev/cpuctl/tasks
  100. chmod 0777 /dev/cpuctl/tasks
  101. write /dev/cpuctl/cpu.shares 1024
  102.  
  103. mkdir /dev/cpuctl/fg_boost
  104. chown system system /dev/cpuctl/fg_boost/tasks
  105. chmod 0777 /dev/cpuctl/fg_boost/tasks
  106. write /dev/cpuctl/fg_boost/cpu.shares 1024
  107.  
  108. mkdir /dev/cpuctl/bg_non_interactive
  109. chown system system /dev/cpuctl/bg_non_interactive/tasks
  110. chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
  111. # 5.0 %
  112. write /dev/cpuctl/bg_non_interactive/cpu.shares 52
  113.  
  114. # mount mtd partitions
  115. # Mounting of system/userdata is moved to 'on emmc' and 'on nand' sections
  116. # We chown/chmod /data again so because mount is run as root + defaults
  117. chown system system /data
  118. chmod 0771 /data
  119.  
  120. # Mounting of persist is moved to 'on emmc' and 'on nand' sections
  121. # We chown/chmod /persist again so because mount is run as root + defaults
  122. chown system system /persist
  123. chmod 0771 /persist
  124.  
  125. # Create dump dir and collect dumps.
  126. # Do this before we mount cache so eventually we can use cache for
  127. # storing dumps on platforms which do not have a dedicated dump partition.
  128.  
  129. mkdir /data/dontpanic
  130. chown root log /data/dontpanic
  131. chmod 0750 /data/dontpanic
  132.  
  133. # Collect apanic data, free resources and re-arm trigger
  134. copy /proc/apanic_console /data/dontpanic/apanic_console
  135. chown root log /data/dontpanic/apanic_console
  136. chmod 0640 /data/dontpanic/apanic_console
  137.  
  138. copy /proc/apanic_threads /data/dontpanic/apanic_threads
  139. chown root log /data/dontpanic/apanic_threads
  140. chmod 0640 /data/dontpanic/apanic_threads
  141.  
  142. write /proc/apanic_console 1
  143.  
  144. # Same reason as /data above
  145. mount yaffs2 mtd@cache /cache nosuid nodev
  146. chown system cache /cache
  147. chmod 0770 /cache
  148.  
  149. # This may have been created by the recovery system with odd permissions
  150. chown system cache /cache/recovery
  151. chmod 0770 /cache/recovery
  152.  
  153. #change permissions on vmallocinfo so we can grab it from bugreports
  154. chown root log /proc/vmallocinfo
  155. chmod 0440 /proc/vmallocinfo
  156.  
  157. #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
  158. chown root system /proc/kmsg
  159. chmod 0440 /proc/kmsg
  160. chown root system /proc/sysrq-trigger
  161. chmod 0220 /proc/sysrq-trigger
  162.  
  163. # create basic filesystem structure
  164. mkdir /data/misc 01771 system misc
  165. mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
  166. mkdir /data/misc/bluetooth 0770 system system
  167. mkdir /data/misc/keystore 0700 keystore keystore
  168. mkdir /data/misc/vpn 0770 system system
  169. mkdir /data/misc/systemkeys 0700 system system
  170. mkdir /data/misc/vpn/profiles 0770 system system
  171. # give system access to wpa_supplicant.conf for backup and restore
  172. mkdir /data/misc/wifi 0770 wifi wifi
  173. chmod 0770 /data/misc/wifi
  174. chmod 0660 /data/misc/wifi/wpa_supplicant.conf
  175. mkdir /data/local 0771 shell shell
  176. mkdir /data/local/tmp 0771 shell shell
  177. mkdir /data/data 0771 system system
  178. mkdir /data/app-private 0771 system system
  179. mkdir /data/app 0771 system system
  180. mkdir /data/property 0700 root root
  181. mkdir /data/radio 0770 radio radio
  182. # DRM
  183. mkdir /data/misc/drm 0777 system system
  184. chmod 0777 /data/misc/drm
  185. # symlink /data/misc/drm /system/etc/security/drm
  186.  
  187.  
  188. # create dalvik-cache and double-check the perms
  189. mkdir /data/dalvik-cache 0771 system system
  190. chown system system /data/dalvik-cache
  191. chmod 0771 /data/dalvik-cache
  192.  
  193. # create the lost+found directories, so as to enforce our permissions
  194. mkdir /data/lost+found 0770
  195. mkdir /cache/lost+found 0770
  196.  
  197. # double check the perms, in case lost+found already exists, and set owner
  198. chown root root /data/lost+found
  199. chmod 0770 /data/lost+found
  200. chown root root /cache/lost+found
  201. chmod 0770 /cache/lost+found
  202.  
  203. # Change bootloader control ownership.
  204. chown system system /proc/loader
  205. chmod 0777 /proc/loader
  206.  
  207. # Shuli, logfilter, leave this at the bottom.
  208. on property:ro.build.FEATURE_LOGFILTER_MTD3=1
  209. chmod 0666 /dev/mtd/mtd3
  210.  
  211. on property:ro.build.FEATURE_LOGFILTER_MTD4=1
  212. chmod 0666 /dev/mtd/mtd4
  213.  
  214. on boot
  215. # basic network init
  216. ifup lo
  217. hostname localhost
  218. domainname localdomain
  219.  
  220. mkdir /data/misc/wifi 0770 wifi wifi
  221. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  222. mkdir /data/misc/dhcp 0770 dhcp dhcp
  223. chown dhcp dhcp /data/misc/dhcp
  224.  
  225. # set RLIMIT_NICE to allow priorities from 19 to -20
  226. setrlimit 13 40 40
  227.  
  228. # Define the oom_adj values for the classes of processes that can be
  229. # killed by the kernel. These are used in ActivityManagerService.
  230. setprop ro.FOREGROUND_APP_ADJ 0
  231. setprop ro.VISIBLE_APP_ADJ 1
  232. setprop ro.SECONDARY_SERVER_ADJ 2
  233. setprop ro.BACKUP_APP_ADJ 2
  234. setprop ro.HOME_APP_ADJ 4
  235. setprop ro.HIDDEN_APP_MIN_ADJ 7
  236. setprop ro.CONTENT_PROVIDER_ADJ 14
  237. setprop ro.EMPTY_APP_ADJ 15
  238.  
  239. # Define the memory thresholds at which the above process classes will
  240. # be killed. These numbers are in pages (4k).
  241. setprop ro.FOREGROUND_APP_MEM 1536
  242. setprop ro.VISIBLE_APP_MEM 2048
  243. setprop ro.SECONDARY_SERVER_MEM 4096
  244. setprop ro.BACKUP_APP_MEM 4096
  245. setprop ro.HOME_APP_MEM 4096
  246. setprop ro.HIDDEN_APP_MEM 5120
  247. setprop ro.CONTENT_PROVIDER_MEM 5632
  248. setprop ro.EMPTY_APP_MEM 6144
  249.  
  250. # Write value must be consistent with the above properties.
  251. # Note that the driver only supports 6 slots, so we have HOME_APP at the
  252. # same memory level as services.
  253. write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15
  254.  
  255. write /proc/sys/vm/overcommit_memory 1
  256. write /proc/sys/vm/min_free_order_shift 4
  257. write /sys/module/lowmemorykiller/parameters/minfree 1536,2048,4096,5120,5632,6144
  258.  
  259. # Set init its forked children's oom_adj.
  260. write /proc/1/oom_adj -16
  261.  
  262. # Tweak background writeout
  263. write /proc/sys/vm/dirty_expire_centisecs 200
  264. write /proc/sys/vm/dirty_background_ratio 5
  265.  
  266. # Adjust socket buffer to enlarge TCP receive window for high bandwidth
  267. write /proc/sys/net/ipv4/tcp_adv_win_scale 1
  268.  
  269. # Permissions for System Server and daemons.
  270. chown radio system /sys/android_power/state
  271. chown radio system /sys/android_power/request_state
  272. chown radio system /sys/android_power/acquire_full_wake_lock
  273. chown radio system /sys/android_power/acquire_partial_wake_lock
  274. chown radio system /sys/android_power/release_wake_lock
  275. chown radio system /sys/power/state
  276. chown radio system /sys/power/wake_lock
  277. chown radio system /sys/power/wake_unlock
  278. chmod 0660 /sys/power/state
  279. chmod 0660 /sys/power/wake_lock
  280. chmod 0660 /sys/power/wake_unlock
  281.  
  282. # Eric Liu+
  283. chown system system /sys/class/timed_output/vibrator/enable
  284. # chown system system /sys/class/leds/keyboard-backlight/brightness
  285. chown system system /sys/class/leds/lcd-backlight/brightness
  286. chown system system /sys/class/leds/button-backlight/brightness
  287. # chown system system /sys/class/leds/jogball-backlight/brightness
  288. # chown system system /sys/class/leds/red/brightness
  289. # chown system system /sys/class/leds/green/brightness
  290. # chown system system /sys/class/leds/blue/brightness
  291. # chown system system /sys/class/leds/red/device/grpfreq
  292. # chown system system /sys/class/leds/red/device/grppwm
  293. # chown system system /sys/class/leds/red/device/blink
  294. # chown system system /sys/class/leds/red/brightness
  295. # chown system system /sys/class/leds/green/brightness
  296. # chown system system /sys/class/leds/blue/brightness
  297. # chown system system /sys/class/leds/red/device/grpfreq
  298. # chown system system /sys/class/leds/red/device/grppwm
  299. # chown system system /sys/class/leds/red/device/blink
  300. # Eric Liu-
  301.  
  302. chown system system /sys/class/timed_output/vibrator/enable
  303.  
  304. # Menghan Cheng, 20100428, flash light for camera
  305. chown media camera /sys/class/leds/spotlight/brightness
  306. chown media camera /sys/class/timed_output/flash/enable
  307.  
  308. chown system system /sys/module/sco/parameters/disable_esco
  309. chown system system /sys/kernel/ipv4/tcp_wmem_min
  310. chown system system /sys/kernel/ipv4/tcp_wmem_def
  311. chown system system /sys/kernel/ipv4/tcp_wmem_max
  312. chown system system /sys/kernel/ipv4/tcp_rmem_min
  313. chown system system /sys/kernel/ipv4/tcp_rmem_def
  314. chown system system /sys/kernel/ipv4/tcp_rmem_max
  315. chown root radio /proc/cmdline
  316.  
  317. chown system system /sys/module/g_android/parameters/product_id
  318. chown system system /sys/module/g_android/parameters/set_rndis
  319. chown system system /sys/devices/platform/msm_sdcc.1/polling
  320. chown system system /sys/devices/platform/msm_sdcc.2/polling
  321. chown system system /sys/devices/platform/msm_sdcc.3/polling
  322. chown system system /sys/devices/platform/msm_sdcc.4/polling
  323. chown system system /sys/devices/platform/android_usb/composition
  324. chown system system /sys/devices/platform/android_usb/remote_wakeup
  325.  
  326. # Shuli
  327. chmod 0666 /dev/auo_misc_touch
  328.  
  329. # Define TCP buffer sizes for various networks
  330. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
  331. setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208
  332. setprop net.tcp.buffersize.wifi 4095,87380,110208,4096,16384,110208
  333. setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
  334. setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
  335. setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680
  336.  
  337. # Jackie 20101001, 0: GL driver(+ MDP) to do composition 1: H/W(GPU) to do composition
  338. # setprop debug.sf.hw 1
  339.  
  340. # Terry Cheng disable UART1 debug
  341. write /proc/uart_debug/debug 0
  342.  
  343. class_start default
  344.  
  345. ## Daemon processes to be run by init.
  346. ##
  347. service console /system/bin/sh
  348. console
  349.  
  350. # adbd is controlled by the persist.service.adb.enable system property
  351. service adbd /sbin/adbd
  352. disabled
  353.  
  354. # adbd on at boot in emulator
  355. on property:ro.kernel.qemu=1
  356. start adbd
  357.  
  358. on property:persist.service.adb.enable=1
  359. start adbd
  360. write /sys/module/g_android/parameters/product_id b007
  361.  
  362. on property:persist.service.adb.enable=0
  363. start adbd
  364. write /sys/module/g_android/parameters/product_id b007
  365.  
  366. service servicemanager /system/bin/servicemanager
  367. user system
  368. critical
  369. onrestart restart zygote
  370. onrestart restart media
  371.  
  372. service vold /system/bin/vold
  373. socket vold stream 0660 root mount
  374. ioprio be 2
  375.  
  376. service netd /system/bin/netd
  377. socket netd stream 0660 root system
  378.  
  379. service debuggerd /system/bin/debuggerd
  380.  
  381. service qmuxd /system/bin/qmuxd
  382.  
  383. service ril-daemon /system/bin/rild
  384. socket rild stream 660 root radio
  385. socket rild-debug stream 660 radio system
  386. user root
  387. group radio cache inet misc audio qcom_oncrpc diag
  388.  
  389. service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
  390. socket zygote stream 666
  391. onrestart write /sys/android_power/request_state wake
  392. onrestart write /sys/power/state on
  393. onrestart restart media
  394.  
  395. service media /system/bin/mediaserver
  396. user media
  397. group system audio camera graphics inet net_bt net_bt_admin net_raw
  398. ioprio rt 4
  399.  
  400. service bootanim /system/bin/bootanimation
  401. user graphics
  402. group graphics
  403. disabled
  404. oneshot
  405.  
  406. service dbus /system/bin/dbus-daemon --system --nofork
  407. socket dbus stream 660 bluetooth bluetooth
  408. user bluetooth
  409. group bluetooth net_bt_admin
  410.  
  411. service bluetoothd /system/bin/bluetoothd -n
  412. socket bluetooth stream 660 bluetooth bluetooth
  413. socket dbus_bluetooth stream 660 bluetooth bluetooth
  414. # init.rc does not yet support applying capabilities, so run as root and
  415. # let bluetoothd drop uid to bluetooth with the right linux capabilities
  416. group bluetooth net_bt_admin misc
  417. disabled
  418.  
  419. service hfag /system/bin/sdptool add --channel=10 HFAG
  420. user bluetooth
  421. group bluetooth net_bt_admin
  422. disabled
  423. oneshot
  424.  
  425. service hsag /system/bin/sdptool add --channel=11 HSAG
  426. user bluetooth
  427. group bluetooth net_bt_admin
  428. disabled
  429. oneshot
  430.  
  431. service opush /system/bin/sdptool add --channel=12 OPUSH
  432. user bluetooth
  433. group bluetooth net_bt_admin
  434. disabled
  435. oneshot
  436.  
  437. service pbap /system/bin/sdptool add --channel=19 PBAP
  438. user bluetooth
  439. group bluetooth net_bt_admin
  440. disabled
  441. oneshot
  442.  
  443. service installd /system/bin/installd
  444. socket installd stream 600 system system
  445.  
  446. # Shuli
  447. service logd /system/bin/logd
  448. socket logd stream 600 system system
  449.  
  450. # Eddie
  451. service logd2 /system/bin/logd2
  452. socket logd2 stream 600 system system
  453.  
  454.  
  455. # Eastern
  456. service hidkbd /system/bin/hidkbd
  457. socket hidkbd stream 600 system system
  458.  
  459. service flash_recovery /system/etc/install-recovery.sh
  460. oneshot
  461.  
  462. service racoon /system/bin/racoon
  463. socket racoon stream 600 system system
  464. # racoon will setuid to vpn after getting necessary resources.
  465. group net_admin
  466. disabled
  467. oneshot
  468.  
  469. service mtpd /system/bin/mtpd
  470. socket mtpd stream 600 system system
  471. user vpn
  472. group vpn net_admin net_raw
  473. disabled
  474. oneshot
  475.  
  476. service keystore /system/bin/keystore /data/misc/keystore
  477. user keystore
  478. group keystore
  479. socket keystore stream 666
  480.  
  481. service dumpstate /system/bin/dumpstate -s
  482. socket dumpstate stream 0660 shell log
  483. disabled
  484. oneshot
  485.  
  486. # Shuli, logfilter init
  487. service lfinit /system/bin/lfinit
  488. oneshot
  489.  
  490. # Ivan
  491. service regionapp /system/bin/regionapp
  492. oneshot
  493. -----------------------------------------------------------------------------
  494. cat init.streak.rc
  495. # Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
  496. #
  497. # Redistribution and use in source and binary forms, with or without
  498. # modification, are permitted provided that the following conditions are met:
  499. # * Redistributions of source code must retain the above copyright
  500. # notice, this list of conditions and the following disclaimer.
  501. # * Redistributions in binary form must reproduce the above copyright
  502. # notice, this list of conditions and the following disclaimer in the
  503. # documentation and/or other materials provided with the distribution.
  504. # * Neither the name of Code Aurora nor
  505. # the names of its contributors may be used to endorse or promote
  506. # products derived from this software without specific prior written
  507. # permission.
  508. #
  509. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  510. # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  511. # IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  512. # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  513. # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  514. # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  515. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  516. # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  517. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  518. # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  519. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  520. #
  521.  
  522. on boot-pause
  523. exec system/bin/battery_charging
  524.  
  525. on boot
  526. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  527. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  528. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  529. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  530. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  531. chown system system /sys/module/sco/parameters/disable_esco
  532. chmod 0660 /sys/module/bluetooth_power/parameters/power
  533. chmod 0660 /sys/class/rfkill/rfkill0/state
  534. chmod 0660 /proc/bluetooth/sleep/proto
  535. chown bluetooth bluetooth /dev/ttyHS1
  536. chmod 0660 /dev/ttyHS1
  537. #Terry Add Bcom FM and BT Rfkill support
  538. chmod 0666 /dev/bcomfm
  539. chown bluetooth bluetooth /dev/bcomfm
  540. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
  541. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  542.  
  543. # Create the directories used by the Wireless subsystem
  544. mkdir /data/misc/wifi 0770 wifi wifi
  545. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  546. mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
  547. mkdir /data/misc/dhcp 0770 dhcp dhcp
  548. chown dhcp dhcp /data/misc/dhcp
  549. #symlink /persist/qcom_wlan_nv.bin /etc/firmware/wlan/qcom_wlan_nv.bin
  550. setprop wifi.interface eth0
  551.  
  552. # Create directories for wiper services
  553. mkdir /data/wpstiles/ 0777 shell
  554. mkdir /etc/wiper 0777 location qcom_oncrpc
  555.  
  556.  
  557. #Funkly add, change oem_rapi and loc_api channel permission for app access.
  558. chown root system /dev/oncrpc/3000006b:00010000
  559. #loc_api
  560. #chown root system /dev/oncrpc/3000008c:00040000
  561.  
  562. # Esther Hsu
  563. service regionctrl /system/bin/regionctrl
  564. socket regionctrl stream 600 system system
  565. oneshot
  566.  
  567.  
  568. on property:init.svc.bluetoothd=running
  569. write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
  570. # start btwlancoex
  571.  
  572. # Terry Cheng 20100823 Mark
  573. #on property:init.svc.bluetoothd=stopped
  574. # stop btwlancoex
  575.  
  576. # Terry Cheng 2010/02/08 Mark
  577. #service hci_qcomm_init /system/bin/log -t qcom-bluetooth -p i "hci_qcomm_init service requested"
  578. # user bluetooth
  579. # group bluetooth net_bt_admin
  580. # disabled
  581. # oneshot
  582.  
  583. service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11
  584. user root
  585. disabled
  586.  
  587. on property:ro.emmc=1
  588. start rmt_storage
  589.  
  590. # Terry Cheng 2010/02/08 Mark
  591. #service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
  592. # user bluetooth
  593. # group qcom_oncrpc bluetooth net_bt_admin
  594. # disabled
  595. # oneshot
  596.  
  597. service port-bridge /system/bin/port-bridge /dev/smd0 /dev/ttyGS0
  598. disabled
  599.  
  600. on property:persist.amss.diag.enable=1
  601. start port-bridge
  602.  
  603. on property:amss.diag.enable=0
  604. stop port-bridge
  605.  
  606. service qmuxd /system/bin/qmuxd
  607.  
  608. service netmgrd /system/bin/netmgrd -E
  609. disabled
  610.  
  611. on property:ro.use_data_netmgrd=true
  612. start netmgrd
  613.  
  614. # Terry Cheng 2010/07/15 Mark
  615. #service btwlancoex /system/bin/sh /system/etc/init.qcom.coex.sh
  616. # user root
  617. # group qcom_oncrpc bluetooth net_bt_admin
  618. # disabled
  619. # oneshot
  620.  
  621.  
  622. service wiperiface /system/bin/wiperiface
  623. user location
  624. group qcom_oncrpc
  625. oneshot
  626.  
  627. service fm_dl /system/bin/sh /system/etc/init.streak.fm.sh
  628. user system
  629. group system
  630. disabled
  631. oneshot
  632.  
  633. #service qcom-sh /system/bin/sh /init.qcom.sh
  634. # user root
  635. # oneshot
  636.  
  637. # Long
  638. service hciattach /system/bin/hciattach -n /dev/ttyHS1 any 3000000
  639. user bluetooth
  640. group bluetooth net_bt_admin misc
  641. disabled
  642.  
  643. service streak-post-boot /system/bin/sh /system/etc/init.streak.post_boot.sh
  644. user root
  645. disabled
  646. oneshot
  647.  
  648. service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa.conf
  649. disabled
  650. oneshot
  651.  
  652. service dhcpcd /system/bin/dhcpcd eth0 -ABLK
  653. disabled
  654. oneshot
  655.  
  656. on property:init.svc.wpa_supplicant=stopped
  657. stop dhcpcd
  658.  
  659. # Terry Patch from R5025
  660. on property:init.svc.bootanim=stopped
  661. start streak-post-boot
  662.  
  663. # WH Lee, 20090518, Add sensors daemon service
  664. service sensors_daemon /system/bin/sensors_daemon
  665.  
  666. #Henry Long remove, don't need AT+CKPD support
  667. #service ckpd /system/bin/CKPD-daemon
  668. # onrestart /system/bin/log -t RIL-CKPD -p w "CKPD daemon restarted"
  669.  
  670. service hcidump /system/bin/logwrapper /system/xbin/hcidump -XVt
  671. user root
  672. group bluetooth net_bt_admin
  673. disabled
  674. oneshot
  675.  
  676. #rk chen, 2010/6/3, enable autorun_test.sh
  677. service run_autorun_test /system/bin/run_autorun_test.sh
  678. oneshot
  679.  
  680. #Terry Cheng, 20100806, Add dspcrashd
  681. service dspcrashd /system/bin/dspcrashd
  682. oneshot
  683.  
  684.  
  685. #Henry Long, for EMwifi
  686. service wifid /system/bin/wifid
  687. socket wifid stream 600 system system
  688.  
  689. #Abbie , 20100923, for lightsensor
  690. service lightsensor /system/bin/lightsensor
  691. oneshot
  692. #for calibrate
  693. service calibrate /system/bin/calibrate
  694. oneshot
Add Comment
Please, Sign In to add comment