Guest User

Untitled

a guest
Nov 23rd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.70 KB | None | 0 0
  1. on early-init
  2. device mtd@misc 0460 radio diag
  3.  
  4. on boot
  5. # unmap left alt to avoid console switch
  6. setkey 0x0 0x38 0x0
  7. # device reset SEND+MENU+END
  8. setkey 0x0 0xe7 0x706
  9. setkey 0x0 0x8b 0x707
  10.  
  11. setkey 0x40 0xe7 0x706
  12. setkey 0x40 0x8b 0x707
  13.  
  14. setkey 0x80 0xe7 0x706
  15. setkey 0x80 0x8b 0x707
  16.  
  17. setkey 0xc0 0xe7 0x706
  18. setkey 0xc0 0x8b 0x707
  19. setkey 0xc0 0x6b 0x20c
  20.  
  21. mkdir /data/misc/wifi 0770 wifi wifi
  22. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  23. mkdir /data/misc/dhcp 0770 dhcp dhcp
  24. chown dhcp dhcp /data/misc/dhcp
  25.  
  26. # performance tweaks for flash
  27. write /sys/block/mtdblock3/bdi/read_ahead_kb 4
  28. write /sys/block/mtdblock4/bdi/read_ahead_kb 4
  29. write /sys/block/mtdblock5/bdi/read_ahead_kb 4
  30.  
  31.  
  32. #TODO: remove these two once we switch kernel to rfkill interface
  33. chown bluetooth bluetooth /sys/module/board_marvel/parameters/bluetooth_power_on
  34. chmod 0660 /sys/module/board_marvel/parameters/bluetooth_power_on
  35.  
  36. # bluetooth power up/down interface
  37. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  38. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  39. chmod 0660 /sys/class/rfkill/rfkill0/state
  40. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/serial_lock_cpu
  41. chmod 0660 /sys/devices/platform/msm_serial_hs.0/serial_lock_cpu
  42.  
  43. chown system system /sys/module/serial/parameters/modem_enabled
  44. chown system system /dev/ttyHSUSB0
  45. chown system system /dev/smd9
  46.  
  47. # set CABC permissions
  48. chown system system /sys/class/leds/lcd-backlight/auto
  49. chown radio radio /sys/module/pm/parameters/idle_sleep_mode
  50.  
  51. # for Flip to speaker
  52. chown radio radio /sys/class/htc_accelerometer/accelerometer/PhoneOnOffFlag
  53. chown radio radio /sys/class/htc_ecompass/ecompass/PhoneOnOffFlag
  54.  
  55. # for Optical sensors
  56. chown system system /sys/class/optical_sensors/lightsensor/ls_adc
  57. chown system system /sys/class/optical_sensors/lightsensor/ls_auto
  58. chown system system /sys/class/optical_sensors/lightsensor/ls_kadc
  59. chown system radio /sys/class/optical_sensors/proximity/ps_adc
  60. chown system system /sys/class/optical_sensors/proximity/ps_kadc
  61. chown system system /sys/class/optical_sensors/proximity/ps_led
  62. chown system system /sys/class/optical_sensors/proximity/ps_test_mode
  63.  
  64. # Load kineto_gan.ko while booting
  65. insmod /system/lib/modules/kineto_gan.ko
  66.  
  67. # Enable low memory killer to check file pages
  68. write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144
  69. write /sys/module/lowmemorykiller/parameters/check_filepages 1
  70.  
  71. service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
  72. -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
  73. # we will start as root and wpa_supplicant will switch to user wifi
  74. # after setting up the capabilities required for WEXT
  75. # user wifi
  76. # group wifi inet keystore
  77. socket wpa_eth0 dgram 660 wifi wifi
  78. disabled
  79. oneshot
  80.  
  81. service dhcpcd /system/bin/dhcpcd -ABKL eth0
  82. disabled
  83. oneshot
  84.  
  85. #TODO: Remove hciattach_legacy
  86. #service hciattach /system/bin/hciattach \
  87. # -n -s 115200 /dev/ttyHS0 texas 4000000 flow
  88. # user bluetooth
  89. # group bluetooth net_bt_admin
  90. # disabled
  91.  
  92. #service hciattach_legacy /system/bin/hciattach \
  93. # -n -s 115200 /dev/ttyMSM0 texas 115200 flow
  94. # user bluetooth
  95. # group bluetooth net_bt_admin
  96. # disabled
  97.  
  98. # Make sure we startup btld before hcid
  99. # Set target address to emulator host loopback IF
  100. # Limit baudrate to 460800 to ensure reliable uart operation
  101. #service btld /system/bin/logwrapper /system/bin/btld -hwtun 10.0.2.2 -hb 460800 3000000 -lpm 1
  102. service btld /system/bin/logwrapper /system/bin/btld -lpm 1 -hb 3000000
  103. user root
  104. group bluetooth net_bt_admin
  105. disabled
  106. oneshot
  107.  
  108.  
  109. # bugreport is triggered by the KEY_VOLUMEUP and KEY_VOLUMEDOWN keycodes
  110. service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
  111. disabled
  112. oneshot
  113. keycodes 115 114
  114.  
  115. # for USB internet sharing
  116. service udhcpd /system/bin/udhcpd
  117. disabled
  118. oneshot
  119.  
  120. service netsharing_on /system/bin/netsharing net on
  121. disabled
  122. oneshot
  123.  
  124. service netsharing_off /system/bin/netsharing net off
  125. disabled
  126. oneshot
  127.  
  128. service netsharing_pass /system/bin/netsharing net_pass on
  129. disabled
  130. oneshot
  131.  
  132. service srv_ser2net /system/bin/ser2net -n
  133. disabled
  134.  
  135. on property:service.ser2net.enable=1
  136. start srv_ser2net
  137.  
  138. on property:service.ser2net.enable=0
  139. stop srv_ser2net
  140.  
  141. # compass/accelerometer daemon
  142. service akmd /system/bin/akmd
  143. user compass
  144. group compass misc input
  145.  
  146. # wifi firmware
  147.  
  148. service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
  149. --baudrate 3000000 --patchram /etc/firmware/bcm4329.hcd /dev/ttyHS0
  150. user bluetooth
  151. group bluetooth net_bt_admin
  152. disabled
  153.  
  154. service modem /system/xbin/wireless_modem
  155. user system
  156. group system
  157. disabled
  158.  
  159. service zchgd /system/bin/zchgd
  160. user root
  161. group root graphics
  162. oneshot
  163.  
  164. on property:service.modem.enable=1
  165. start modem
  166.  
  167. on property:service.modem.enable=0
  168. stop modem
  169.  
  170. service dmagent /system/bin/dmagent -N
  171. socket dmagent stream 660 root radio
  172. user root
  173. group radio cache inet misc
  174.  
  175. service clockd /system/bin/clockd
  176.  
  177. service qb_offmode_alarm /system/bin/qb_offmode_alarm
  178. user root
  179. disabled
  180. oneshot
  181.  
  182. service htc_ebdlogd /system/bin/htc_ebdlogd -s -k -P 7
  183. user root
  184. disabled
  185. oneshot
  186.  
  187. service htc_ebdlogd_rel /system/bin/htc_ebdlogd -s -k
  188. user root
  189. disabled
  190. oneshot
  191.  
  192. on property:ro.build.tags=test-keys
  193. start htc_ebdlogd
  194.  
  195. on property:ro.build.tags=release-keys
  196. start htc_ebdlogd_rel
Add Comment
Please, Sign In to add comment