init.D200_M40_P21_GPRS.rc 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. on early-init
  2. insmod /startup/modules/bcm5892-rtc.ko
  3. start ueventd
  4. on init
  5. insmod /startup/modules/devices_base.ko
  6. insmod /startup/modules/pm_bcm5892.ko
  7. insmod /startup/modules/D200_M40_P21_GPRS.ko
  8. insmod /startup/modules/ioconfig.ko
  9. write /sys/class/backlight/pwm-backlight/brightness 255
  10. setprop ro.security_version 13.03.00
  11. #USB support
  12. insmod /startup/modules/bcm589x-dwccom.ko
  13. insmod /startup/modules/bcm589x-otg.ko
  14. insmod /startup/modules/tty-devices.ko
  15. insmod /startup/modules/tty-host.ko
  16. #base drivers
  17. insmod /startup/modules/misc.ko
  18. #AP6212 PWR ON
  19. write /sys/devices/platform/misc/wifi/cmd 0
  20. #enable i2c1 adapter for pmu
  21. write /sys/devices/:amba:i2c1/enabled 1
  22. insmod /startup/modules/pmu_rn5t614x.ko
  23. #AP6212 REG ON
  24. write /sys/devices/platform/misc/wifi/cmd 1
  25. #i2c-GPIO driver for touch key
  26. insmod /startup/modules/i2c-gpio.ko
  27. insmod /startup/modules/input_base.ko power_key=116 press_time=2
  28. #touch_key driver
  29. insmod /startup/modules/touch_key_cy8c20436a.ko
  30. #power on gprs,must after the pmu driver
  31. if property:ro.fac.radio!= write /sys/devices/platform/misc/gprs/cmd 0
  32. #card drivers (sci msr pcd)
  33. insmod /startup/modules/sci_bcm5892_ncn8025.ko
  34. insmod /startup/modules/msr.ko
  35. insmod /startup/modules/pcd_base.ko
  36. insmod /startup/modules/pcd_rc663.ko
  37. #security drivers (bbl, sec, verify)
  38. insmod /startup/modules/bcm5892_bbl.ko
  39. insmod /startup/modules/bcm589x-sec.ko
  40. insmod /startup/modules/verify.ko
  41. # bluetooth MFI for apple
  42. if property:ro.fac.bt=WLT2564 insmod /startup/modules/mfi_encrypt.ko
  43. if property:ro.fac.bt=01 insmod /startup/modules/mfi_encrypt.ko
  44. #touchscreen driver
  45. insmod /startup/modules/ads7846.ko
  46. #log server driver
  47. insmod /startup/modules/logger.ko
  48. chmod 666 /sys/power/state
  49. chmod 666 /sys/class/backlight/pwm-backlight/brightness
  50. chmod 666 /sys/devices/platform/keypad/backlight_on
  51. chmod 666 /sys/devices/platform/keypad/buzzer_user_duration
  52. chown root hwdev /sys/devices/platform/keypad/buzzer_user_duration
  53. chmod 666 /sys/devices/platform/keypad/buzzer_user_freq
  54. chown root hwdev /sys/devices/platform/keypad/buzzer_user_freq
  55. chmod 222 /sys/devices/platform/keypad/buzzer_user_trigger
  56. chown root hwdev /sys/devices/platform/keypad/buzzer_user_trigger
  57. chmod 666 /sys/devices/platform/keypad/buzzer_user_volume
  58. chown root hwdev /sys/devices/platform/keypad/buzzer_user_volume
  59. chmod 222 /sys/devices/platform/keypad/buzzer_user_stop
  60. chown root hwdev /sys/devices/platform/keypad/buzzer_user_stop
  61. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_duration
  62. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_duration
  63. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_freq
  64. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_freq
  65. chmod 666 /sys/devices/platform/keypad/buzzer_keypad_enable
  66. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_enable
  67. chmod 660 /sys/devices/platform/keypad/buzzer_keypad_volume
  68. chown root MAINAPP /sys/devices/platform/keypad/buzzer_keypad_volume
  69. #key_value of back_light
  70. setprop ro.backlightkey 116
  71. #time of back light auto active, unit:Second
  72. setprop persist.sys.backlighttime 60
  73. setprop persist.sys.sleeptime 0
  74. setprop persist.sys.sleepwaittime 1
  75. # usb ethernet driver
  76. insmod /startup/modules/asix.ko
  77. # create some symlinks
  78. if property:ro.fac.bt!= symlink /dev/ttyAMA1 /dev/ttybt
  79. if property:ro.fac.radio!= symlink /dev/ttyAMA3 /dev/ttywl
  80. symlink /dev/input/event0 /dev/keypad
  81. symlink /dev/input/event1 /dev/keypad_ped
  82. symlink /dev/input/event2 /dev/tp
  83. symlink /dev/input/event3 /dev/tp_ped
  84. symlink /dev/graphics/fb0 /dev/fb
  85. symlink /dev/graphics/fb1 /dev/fb_ped
  86. on fs
  87. export TSLIB_CONSOLEDEVICE none
  88. export TSLIB_FBDEVICE /dev/fb
  89. export TSLIB_TSDEVICE /dev/tp
  90. export TSLIB_CALIBFILE /etc/ts/pointercal
  91. export TSLIB_CONFFILE /etc/ts/ts.conf
  92. export TSLIB_PLUGINDIR /usr/lib/ts
  93. on post-fs
  94. #LCD driver
  95. symlink /startup/firmware/lcd_320x240.rle /startup/firmware/lcd.watermark
  96. write /sys/class/backlight/pwm-backlight/brightness 0
  97. insmod /startup/modules/lcd_fb.ko
  98. insmod /startup/modules/lcd_hw_smc.ko
  99. if property:ro.fac.videocard=TM023KDZ32 insmod /startup/modules/lcd_panel_TM023KDZ32.ko
  100. if property:ro.fac.videocard=LCD_01 insmod /startup/modules/lcd_panel_LCD_01.ko
  101. if property:ro.fac.videocard=01 insmod /startup/modules/lcd_panel_LCD_01.ko
  102. on early-boot
  103. chmod 755 /usr/bin/wpa_supplicant_ap6181
  104. #wifi
  105. wait /sys/class/mmc_host/mmc0/mmc0:0001
  106. if property:ro.fac.wifi=03 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm40181a2.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6181.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=42
  107. if property:ro.fac.wifi=04 insmod /startup/modules/bcmdhd.ko firmware_path=/startup/firmware/bcm_ap6181/fw_bcm43438a0.bin nvram_path=/startup/firmware/bcm_ap6181/nvram_ap6212.txt iface_name=wlan0 config_path=/startup/firmware/bcm_ap6181/config.txt PAX_INT_GPIO=42
  108. on boot
  109. if property:ro.fac.wifi!= start wpa_supplicant
  110. service servicemanager /usr/bin/servicemanager
  111. class core
  112. user root
  113. group root
  114. critical
  115. onrestart restart systemservice
  116. onrestart restart ipservice
  117. service wpa_supplicant /usr/bin/logwrapper /usr/bin/wpa_supplicant_ap6181 -Dnl80211 -iwlan0 -c /startup/wpa_supplicant_ap6181.conf
  118. disabled
  119. user root
  120. group root
  121. service usbwifi /usr/bin/wpa_supplicant_ap6181 -Dwext -iwlan0 -c /startup/wifi_settings.cfg
  122. disabled
  123. user root
  124. group root
  125. service bsa_server /data/opt/bin/bsa_server -lpm -d /dev/ttybt -p const -u /tmp/ -k /data/var/bluetooth/ap6212_ble_local_keys
  126. disabled
  127. user root
  128. group root
  129. service ipservice /usr/bin/ipservice
  130. disabled
  131. user root
  132. group root
  133. service pedd /usr/bin/pedd
  134. user root
  135. group root
  136. service keyman /usr/bin/keyman
  137. disabled
  138. user root
  139. group root
  140. service xcb /usr/bin/xcbd
  141. disabled
  142. user MAINAPP
  143. group MAINAPP
  144. service crashd /usr/bin/crashd
  145. user MAINAPP
  146. group MAINAPP
  147. service systemservice /usr/bin/systemservice
  148. user root
  149. group root
  150. on property:persist.sys.ipservice.enable=1
  151. start ipservice
  152. on property:persist.sys.ipservice.enable=0
  153. stop ipservice
  154. on property:persist.sys.xcb.enable=1
  155. start xcb
  156. on property:persist.sys.xcb.enable=0
  157. stop xcb
  158. on property:rt.app.bsa_server.enable=1
  159. start bsa_server
  160. on property:rt.app.bsa_server.enable=0
  161. stop bsa_server