Guest User

Untitled

a guest
Nov 23rd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. on boot
  2. mount debugfs /sys/kernel/debug /sys/kernel/debug
  3.  
  4. mkdir /data/misc/wifi 0770 wifi wifi
  5. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  6. mkdir /data/misc/dhcp 0770 dhcp dhcp
  7. chown dhcp dhcp /data/misc/dhcp
  8.  
  9. # bluetooth power up/down interface
  10. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  11. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  12. chmod 0660 /sys/class/rfkill/rfkill0/state
  13.  
  14. # bluetooth MAC address programming
  15. chown bluetooth bluetooth /sys/module/board_htcleo/parameters/bdaddr
  16. setprop ro.bt.bdaddr_path /sys/module/board_htcleo/parameters/bdaddr
  17.  
  18. # bluetooth car dock pin
  19. chown system system /sys/class/switch/dock/bt_pin
  20.  
  21. # Permissions for Liblights.
  22. chown system system /sys/class/leds/green/brightness
  23. chown system system /sys/class/leds/green/blink
  24. chown system system /sys/class/leds/amber/brightness
  25. chown system system /sys/class/leds/amber/blink
  26. chown system system /sys/class/leds/red/brightness
  27. chown system system /sys/class/leds/red/blink
  28. chown system system /sys/class/leds/blue/brightness
  29. chown system system /sys/class/leds/blue/blink
  30. chown system system /sys/class/leds/jogball-backlight/brightness
  31. chown system system /sys/class/leds/jogball-backlight/color
  32. chown system system /sys/class/leds/jogball-backlight/period
  33. chown system system /sys/class/leds/button-backlight/brightness
  34. chown system system /sys/class/leds/lcd-backlight/brightness
  35.  
  36. # enable the GPS
  37. setprop ro.ril.def.agps.mode 2
  38.  
  39. # performance tweaks for flash
  40. write /sys/block/mtdblock0/bdi/read_ahead_kb 4
  41. write /sys/block/mtdblock1/bdi/read_ahead_kb 4
  42. write /sys/block/mtdblock2/bdi/read_ahead_kb 4
  43. write /sys/block/mtdblock3/bdi/read_ahead_kb 4
  44. write /sys/block/mtdblock4/bdi/read_ahead_kb 4
  45. write /sys/block/mtdblock5/bdi/read_ahead_kb 4
  46.  
  47. # Power Management
  48. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245000
  49. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 998400
  50. #write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
  51. #write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 40000
  52.  
  53. # Wakelock debug
  54. write /sys/module/wakelock/parameters/debug_mask 7
  55.  
  56. # Fast dormancy settings
  57. setprop ro.ril.fast.dormancy.rule 1
  58. setprop ro.ril.fd.scron.timeout 4
  59. setprop ro.ril.fd.scroff.timeout 3
  60.  
  61. # GPRS class
  62. setprop ro.ril.gprsclass 10
  63.  
  64. # compass/accelerometer daemon
  65. service akmd /system/bin/akmd
  66. user compass
  67. group compass misc input
  68.  
  69. service wpa_supplicant /system/bin/wpa_supplicant \
  70. -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
  71. # we will start as root and wpa_supplicant will switch to user wifi
  72. # after setting up the capabilities required for WEXT
  73. # user wifi
  74. # group wifi inet keystore
  75. socket wpa_eth0 dgram 660 wifi wifi
  76. disabled
  77. oneshot
  78.  
  79. service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
  80. disabled
  81. oneshot
  82.  
  83. # bugreport is triggered by the KEY_VOLUMEUP and BTN_MOUSE keycodes
  84. service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
  85. disabled
  86. oneshot
  87. keycodes 115 272
  88.  
  89. service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
  90. --baudrate 3000000 --patchram /etc/firmware/bcm4329.hcd /dev/ttyHS0
  91. user bluetooth
  92. group bluetooth net_bt_admin
  93. disabled
  94.  
  95. service dspcrashd /system/bin/dspcrashd
Add Comment
Please, Sign In to add comment