sykopompos

Untitled

Jun 27th, 2014
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.00 KB | None | 0 0
  1. sykopompos@syko-server-299:~/tools$ diff -y Lboot/ramdisk/init.hammerhead.rc kkboot/ramdisk/init.hammerhead.rc
  2. # #
  3. # Copyright 2013 The Android Open Source Project # Copyright 2013 The Android Open Source Project
  4. # #
  5. # Licensed under the Apache License, Version 2.0 (the "Licens # Licensed under the Apache License, Version 2.0 (the "Licens
  6. # you may not use this file except in compliance with the Lic # you may not use this file except in compliance with the Lic
  7. # You may obtain a copy of the License at # You may obtain a copy of the License at
  8. # #
  9. # http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
  10. # #
  11. # Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
  12. # distributed under the License is distributed on an "AS IS" # distributed under the License is distributed on an "AS IS"
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres
  14. # See the License for the specific language governing permiss # See the License for the specific language governing permiss
  15. # limitations under the License. # limitations under the License.
  16. # #
  17.  
  18. import init.hammerhead.usb.rc import init.hammerhead.usb.rc
  19. import init.hammerhead_svelte.rc <
  20.  
  21. on early-init on early-init
  22. mount debugfs debugfs /sys/kernel/debug mount debugfs debugfs /sys/kernel/debug
  23. chown system system /sys/kernel/debug/kgsl/proc chown system system /sys/kernel/debug/kgsl/proc
  24.  
  25. on init on init
  26. # See storage config details at http://source.android.com # See storage config details at http://source.android.com
  27. mkdir /mnt/shell/emulated 0700 shell shell mkdir /mnt/shell/emulated 0700 shell shell
  28. mkdir /storage/emulated 0555 root root mkdir /storage/emulated 0555 root root
  29.  
  30. # Set permissions for persist partition # Set permissions for persist partition
  31. mkdir /persist 0771 system system mkdir /persist 0771 system system
  32. mkdir /firmware 0771 system system mkdir /firmware 0771 system system
  33.  
  34. export EXTERNAL_STORAGE /storage/emulated/legacy export EXTERNAL_STORAGE /storage/emulated/legacy
  35. export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
  36. export EMULATED_STORAGE_TARGET /storage/emulated export EMULATED_STORAGE_TARGET /storage/emulated
  37.  
  38. # Support legacy paths # Support legacy paths
  39. symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /sdcard
  40. symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /mnt/sdcard
  41. symlink /storage/emulated/legacy /storage/sdcard0 symlink /storage/emulated/legacy /storage/sdcard0
  42. symlink /mnt/shell/emulated/0 /storage/emulated/legacy symlink /mnt/shell/emulated/0 /storage/emulated/legacy
  43.  
  44. on fs on fs
  45. mount_all ./fstab.hammerhead mount_all ./fstab.hammerhead
  46. restorecon_recursive /persist <
  47. setprop ro.crypto.fuse_sdcard true setprop ro.crypto.fuse_sdcard true
  48. write /sys/kernel/boot_adsp/boot 1 write /sys/kernel/boot_adsp/boot 1
  49.  
  50. on early-boot on early-boot
  51. # set RLIMIT_MEMLOCK to 64MB # set RLIMIT_MEMLOCK to 64MB
  52. setrlimit 8 67108864 67108864 setrlimit 8 67108864 67108864
  53.  
  54. on boot on boot
  55. # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK
  56. write /sys/module/wakelock/parameters/debug_mask 7 write /sys/module/wakelock/parameters/debug_mask 7
  57.  
  58. # bluetooth # bluetooth
  59. chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty
  60. chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st
  61. chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/state
  62.  
  63. # bluetooth LPM # bluetooth LPM
  64. chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
  65. chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit
  66.  
  67. #bluetooth UART dev #bluetooth UART dev
  68. chown bluetooth net_bt_stack /sys/devices/platform/msm_se chown bluetooth net_bt_stack /sys/devices/platform/msm_se
  69. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  70.  
  71. #Create QMUX deamon socket area #Create QMUX deamon socket area
  72. mkdir /dev/socket/qmux_radio 0770 radio radio mkdir /dev/socket/qmux_radio 0770 radio radio
  73. chmod 2770 /dev/socket/qmux_radio chmod 2770 /dev/socket/qmux_radio
  74. mkdir /dev/socket/qmux_audio 0770 media audio mkdir /dev/socket/qmux_audio 0770 media audio
  75. chmod 2770 /dev/socket/qmux_audio chmod 2770 /dev/socket/qmux_audio
  76. mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
  77. chmod 2770 /dev/socket/qmux_bluetooth chmod 2770 /dev/socket/qmux_bluetooth
  78. mkdir /dev/socket/qmux_gps 0770 gps gps mkdir /dev/socket/qmux_gps 0770 gps gps
  79. chmod 2770 /dev/socket/qmux_gps chmod 2770 /dev/socket/qmux_gps
  80.  
  81. # Camera Recording # Camera Recording
  82. mkdir /dev/video mkdir /dev/video
  83. symlink /dev/video32 /dev/video/venus_dec symlink /dev/video32 /dev/video/venus_dec
  84. symlink /dev/video33 /dev/video/venus_enc symlink /dev/video33 /dev/video/venus_enc
  85.  
  86. # Allow QMUX daemon to assign port open wait time # Allow QMUX daemon to assign port open wait time
  87. chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m
  88.  
  89. #For bridgemgr daemon to inform the USB driver of the cor #For bridgemgr daemon to inform the USB driver of the cor
  90. chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio
  91.  
  92. # Assign TCP buffer thresholds to be ceiling value of tec # Assign TCP buffer thresholds to be ceiling value of tec
  93. # Increased technology maximums should be reflected here. # Increased technology maximums should be reflected here.
  94. write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/rmem_max 2097152
  95. write /proc/sys/net/core/wmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152
  96.  
  97. # Define TCP buffer sizes # Define TCP buffer sizes
  98. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial,
  99. setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409 setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409
  100. setprop net.tcp.buffersize.hspa 4094,87380,704512,409 setprop net.tcp.buffersize.hspa 4094,87380,704512,409
  101. setprop net.tcp.buffersize.hsupa 4094,87380,704512,409 setprop net.tcp.buffersize.hsupa 4094,87380,704512,409
  102.  
  103. # create symlink for fb1 as HDMI # create symlink for fb1 as HDMI
  104. symlink /dev/graphics/fb1 /dev/graphics/hdmi symlink /dev/graphics/fb1 /dev/graphics/hdmi
  105.  
  106. # setup permissions for fb1 related nodes # setup permissions for fb1 related nodes
  107. chown system graphics /sys/class/graphics/fb1/hpd chown system graphics /sys/class/graphics/fb1/hpd
  108. chown system graphics /sys/class/graphics/fb1/vendor_name chown system graphics /sys/class/graphics/fb1/vendor_name
  109. chown system graphics /sys/class/graphics/fb1/product_des chown system graphics /sys/class/graphics/fb1/product_des
  110. chmod 0664 /sys/devices/virtual/graphics/fb1/hpd chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
  111. chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name
  112. chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc
  113.  
  114. # To allow interfaces to get v6 address when tethering is # To allow interfaces to get v6 address when tethering is
  115. write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
  116. write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
  117. write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
  118. write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
  119. write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
  120. write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
  121. write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
  122. write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
  123.  
  124. # Subsytem Restart # Subsytem Restart
  125. #adsp #adsp
  126. write /sys/bus/msm_subsys/devices/subsys0/restart_level " write /sys/bus/msm_subsys/devices/subsys0/restart_level "
  127. #modem #modem
  128. write /sys/bus/msm_subsys/devices/subsys1/restart_level " write /sys/bus/msm_subsys/devices/subsys1/restart_level "
  129. #venus #venus
  130. write /sys/bus/msm_subsys/devices/subsys2/restart_level " write /sys/bus/msm_subsys/devices/subsys2/restart_level "
  131.  
  132. # Subsytem Ramdump collection <
  133. mkdir /data/tombstones 0777 system system <
  134. mkdir /data/tombstones/ramdump 0777 system system <
  135. restorecon_recursive /data/tombstones <
  136. write /sys/module/subsystem_restart/parameters/enable_ram <
  137. <
  138. # Modem logging collection <
  139. mkdir /data/diag_logs 0777 system system <
  140. chmod 666 /dev/diag <
  141. <
  142. # leds # leds
  143. chown system system /sys/class/leds/red/on_off_ms chown system system /sys/class/leds/red/on_off_ms
  144. chown system system /sys/class/leds/green/on_off_ms chown system system /sys/class/leds/green/on_off_ms
  145. chown system system /sys/class/leds/blue/on_off_ms chown system system /sys/class/leds/blue/on_off_ms
  146. chown system system /sys/class/leds/red/rgb_start chown system system /sys/class/leds/red/rgb_start
  147. chmod 664 /sys/class/leds/lcd-backlight/brightness <
  148.  
  149. on post-fs-data on post-fs-data
  150. mkdir /data/media 0770 media_rw media_rw mkdir /data/media 0770 media_rw media_rw
  151.  
  152. # NFC: create data/nfc for nv storage # NFC: create data/nfc for nv storage
  153. mkdir /data/nfc 0770 nfc nfc mkdir /data/nfc 0770 nfc nfc
  154. mkdir /data/nfc/param 0770 nfc nfc mkdir /data/nfc/param 0770 nfc nfc
  155.  
  156. # wifi # wifi
  157. chown wifi system /persist/wifi chown wifi system /persist/wifi
  158.  
  159. # bluetooth # bluetooth
  160. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  161.  
  162. # Create directory used by audio subsystem # Create directory used by audio subsystem
  163. mkdir /data/misc/audio 0770 audio audio mkdir /data/misc/audio 0770 audio audio
  164.  
  165. # Create directory used by sensor subsystem # Create directory used by sensor subsystem
  166. mkdir /data/system 0755 system system mkdir /data/system 0755 system system
  167. mkdir /data/system/sensors mkdir /data/system/sensors
  168. chmod 755 /data/system/sensors | chmod 655 /data/system/sensors
  169. write /data/system/sensors/settings 1 write /data/system/sensors/settings 1
  170. chmod 660 /data/system/sensors/settings chmod 660 /data/system/sensors/settings
  171.  
  172. # AKM setting data # AKM setting data
  173. mkdir /data/misc/sensors mkdir /data/misc/sensors
  174. chmod 775 /data/misc/sensors chmod 775 /data/misc/sensors
  175.  
  176. # Sensor # Sensor
  177. mkdir /persist/sensors mkdir /persist/sensors
  178. chmod 775 /persist/sensors chmod 775 /persist/sensors
  179.  
  180. > # Create the directories used by the Wireless subsystem
  181. > mkdir /data/misc/wifi 0770 wifi wifi
  182. > mkdir /data/misc/wifi/sockets 0770 wifi wifi
  183. > mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
  184. > mkdir /data/misc/dhcp 0770 dhcp dhcp
  185. > chown dhcp dhcp /data/misc/dhcp
  186. >
  187. # communicate with mpdecision and thermald # communicate with mpdecision and thermald
  188. mkdir /dev/socket/mpdecision 2770 root system | mkdir /dev/socket/mpdecision 0770 system system
  189. > chmod 2770 /dev/socket/mpdecision
  190.  
  191. # save rtc time offsets # save rtc time offsets
  192. mkdir /data/system/time 0700 system system | mkdir /data/system/time/ 0700 system system
  193.  
  194. # Ecc_Handler qcril.db # Ecc_Handler qcril.db
  195. mkdir /data/misc/radio 0770 radio radio mkdir /data/misc/radio 0770 radio radio
  196. symlink /system/etc/qcril.db /data/misc/radio/qcril.db symlink /system/etc/qcril.db /data/misc/radio/qcril.db
  197.  
  198. setprop vold.post_fs_data_done 1 setprop vold.post_fs_data_done 1
  199.  
  200. # Set the CPU Freq Sampling rates # Set the CPU Freq Sampling rates
  201. write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
  202. write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
  203. write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
  204. write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
  205. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
  206. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
  207. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
  208. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
  209. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  210. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r
  211. write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
  212. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d
  213. write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
  214. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  215. write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
  216. write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr
  217. write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
  218. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  219. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
  220. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
  221. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
  222. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
  223. > chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling
  224. > chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling
  225. write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
  226. chown root.system /sys/devices/system/cpu/mfreq chown root.system /sys/devices/system/cpu/mfreq
  227. chmod 220 /sys/devices/system/cpu/mfreq chmod 220 /sys/devices/system/cpu/mfreq
  228. chown root.system /sys/devices/system/cpu/cpu1/online chown root.system /sys/devices/system/cpu/cpu1/online
  229. chown root.system /sys/devices/system/cpu/cpu2/online chown root.system /sys/devices/system/cpu/cpu2/online
  230. chown root.system /sys/devices/system/cpu/cpu3/online chown root.system /sys/devices/system/cpu/cpu3/online
  231. chmod 664 /sys/devices/system/cpu/cpu1/online chmod 664 /sys/devices/system/cpu/cpu1/online
  232. chmod 664 /sys/devices/system/cpu/cpu2/online chmod 664 /sys/devices/system/cpu/cpu2/online
  233. chmod 664 /sys/devices/system/cpu/cpu3/online chmod 664 /sys/devices/system/cpu/cpu3/online
  234. write /dev/cpuctl/apps/cpu.notify_on_migrate 1 write /dev/cpuctl/apps/cpu.notify_on_migrate 1
  235.  
  236. on charger on charger
  237. # Booting modem # Booting modem
  238. wait /dev/block/platform/msm_sdcc.1/by-name/modem wait /dev/block/platform/msm_sdcc.1/by-name/modem
  239. mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem / mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /
  240. wait /dev/block/platform/msm_sdcc.1/by-name/system wait /dev/block/platform/msm_sdcc.1/by-name/system
  241. mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system
  242. start rmt_storage start rmt_storage
  243. start irsc_util start irsc_util
  244.  
  245. # Enable Power modes and set the CPU Freq Sampling rates # Enable Power modes and set the CPU Freq Sampling rates
  246. write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
  247. write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
  248. write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
  249. write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
  250. write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
  251. write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
  252. write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
  253. write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
  254. write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
  255. write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
  256. write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
  257. write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
  258. write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
  259. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
  260. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
  261. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
  262. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
  263. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
  264. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
  265. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
  266. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
  267. write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
  268. write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu1/online 0
  269. write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu2/online 0
  270. write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu3/online 0
  271. start mpdecision start mpdecision
  272.  
  273. on property:init.svc.wpa_supplicant=stopped on property:init.svc.wpa_supplicant=stopped
  274. stop dhcpcd stop dhcpcd
  275.  
  276. on property:sys.boot_completed=1 on property:sys.boot_completed=1
  277. # Enable Power modes # Enable Power modes
  278. write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
  279. write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
  280. write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
  281. write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
  282. write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
  283. write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
  284. write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
  285. write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
  286. write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
  287. write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
  288. write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
  289. write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
  290. write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
  291. write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
  292. write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
  293. write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
  294. write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
  295. write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl
  296. write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl
  297. write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl
  298. write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl
  299. start mpdecision start mpdecision
  300.  
  301. # enable slimport detection <
  302. write /sys/module/slimport/parameters/enable_irq 1 <
  303. <
  304. # enable logging of wake up reasons to kernel logs <
  305. write /sys/module/msm_show_resume_irq/parameters/debug_ma <
  306. <
  307. on property:ro.debuggable=1 <
  308. start ssr_ramdump <
  309. <
  310. service rmt_storage /system/bin/rmt_storage service rmt_storage /system/bin/rmt_storage
  311. class core class core
  312. user root user root
  313. group system <
  314.  
  315. service bridgemgrd /system/bin/bridgemgrd service bridgemgrd /system/bin/bridgemgrd
  316. class main class main
  317. user radio user radio
  318. group radio group radio
  319.  
  320. # QMUX must be in multiple groups to support external process # QMUX must be in multiple groups to support external process
  321. service qmuxd /system/bin/qmuxd service qmuxd /system/bin/qmuxd
  322. class main class main
  323. user radio user radio
  324. group radio audio bluetooth gps group radio audio bluetooth gps
  325.  
  326. service netmgrd /system/bin/netmgrd service netmgrd /system/bin/netmgrd
  327. class main class main
  328. group radio <
  329.  
  330. # QCOM sensor # QCOM sensor
  331. service sensors /system/bin/sensors.qcom service sensors /system/bin/sensors.qcom
  332. class main class main
  333. user root user root
  334. group root group root
  335.  
  336. service irsc_util /system/bin/irsc_util "/etc/sec_config" service irsc_util /system/bin/irsc_util "/etc/sec_config"
  337. class main class main
  338. user root user root
  339. oneshot oneshot
  340.  
  341. service p2p_supplicant /system/bin/wpa_supplicant \ | service p2p_supplicant /system/bin/logwrapper /system/bin/wpa
  342. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
  343. -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ | -I/system/etc/wifi/wpa_supplicant_overlay.conf \
  344. > -O/data/misc/wifi/sockets -N \
  345. -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
  346. -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \
  347. -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
  348. -g@android:wpa_wlan0 -g@android:wpa_wlan0
  349. # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
  350. # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
  351. # user wifi # user wifi
  352. # group wifi inet keystore # group wifi inet keystore
  353. class main class main
  354. socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
  355. disabled disabled
  356. oneshot oneshot
  357.  
  358. service wpa_supplicant /system/bin/wpa_supplicant \ | service wpa_supplicant /system/bin/logwrapper /system/bin/wpa
  359. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
  360. -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
  361. > -O/data/misc/wifi/sockets \
  362. -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
  363. # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
  364. # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
  365. # user wifi # user wifi
  366. # group wifi inet keystore # group wifi inet keystore
  367. class main class main
  368. socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
  369. disabled disabled
  370. oneshot oneshot
  371.  
  372. service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL | service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG
  373. class late_start class late_start
  374. disabled disabled
  375. oneshot oneshot
  376.  
  377. service dhcpcd_p2p /system/bin/dhcpcd -aABKL | service dhcpcd_p2p /system/bin/dhcpcd -ABKLG
  378. class late_start class late_start
  379. disabled disabled
  380. oneshot oneshot
  381.  
  382. service iprenew_wlan0 /system/bin/dhcpcd -n service iprenew_wlan0 /system/bin/dhcpcd -n
  383. class late_start class late_start
  384. disabled disabled
  385. oneshot oneshot
  386.  
  387. service iprenew_p2p /system/bin/dhcpcd -n service iprenew_p2p /system/bin/dhcpcd -n
  388. class late_start class late_start
  389. disabled disabled
  390. oneshot oneshot
  391.  
  392. service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL <
  393. class late_start <
  394. disabled <
  395. oneshot <
  396. <
  397. service iprenew_eth0 /system/bin/dhcpcd -n <
  398. class late_start <
  399. disabled <
  400. oneshot <
  401. <
  402. service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
  403. disabled disabled
  404. oneshot oneshot
  405.  
  406. service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
  407. disabled disabled
  408. oneshot oneshot
  409.  
  410. service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
  411. disabled disabled
  412. oneshot oneshot
  413.  
  414. service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
  415. disabled disabled
  416. oneshot oneshot
  417.  
  418. service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
  419. disabled disabled
  420. oneshot oneshot
  421.  
  422. service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
  423. disabled disabled
  424. oneshot oneshot
  425.  
  426. service iprenew_bt-pan /system/bin/dhcpcd -n service iprenew_bt-pan /system/bin/dhcpcd -n
  427. disabled disabled
  428. oneshot oneshot
  429.  
  430. service qseecomd /system/bin/qseecomd service qseecomd /system/bin/qseecomd
  431. class late_start class late_start
  432. user system user system
  433. group system group system
  434.  
  435. # virtual sdcard daemon running as media_rw (1023) # virtual sdcard daemon running as media_rw (1023)
  436. service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me
  437. class late_start class late_start
  438.  
  439. service charger /sbin/healthd -c | service charger /charger
  440. class charger class charger
  441. critical |
  442. seclabel u:r:healthd:s0 <
  443.  
  444. service qcamerasvr /system/bin/mm-qcamera-daemon service qcamerasvr /system/bin/mm-qcamera-daemon
  445. class late_start class late_start
  446. user camera user camera
  447. group camera system inet input group camera system inet input
  448.  
  449. service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu
  450. class main class main
  451. user bluetooth user bluetooth
  452. group system bluetooth group system bluetooth
  453. oneshot oneshot
  454.  
  455. # bugreport is triggered by holding down volume down, volume # bugreport is triggered by holding down volume down, volume
  456. service bugreport /system/bin/dumpstate -d -p -B \ service bugreport /system/bin/dumpstate -d -p -B \
  457. -o /data/data/com.android.shell/files/bugreports/bugr -o /data/data/com.android.shell/files/bugreports/bugr
  458. class main class main
  459. disabled disabled
  460. oneshot oneshot
  461. keycodes 114 115 116 keycodes 114 115 116
  462.  
  463. service mpdecision /system/bin/mpdecision --no_sleep --avg_co service mpdecision /system/bin/mpdecision --no_sleep --avg_co
  464. class main class main
  465. user root user root
  466. group root system | group root
  467. disabled disabled
  468.  
  469. service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc
  470. class main class main
  471. > disabled
  472. user root user root
  473. group root group root
  474. disabled <
  475.  
  476. service thermal-engine /system/bin/thermal-engine-hh service thermal-engine /system/bin/thermal-engine-hh
  477. class main class main
  478. user root user root
  479. group radio system | group root
  480.  
  481. service vss_init /vendor/bin/vss_init service vss_init /vendor/bin/vss_init
  482. class late_start class late_start
  483. user root user root
  484. group root group root
  485. disabled disabled
  486.  
  487. service time_daemon /system/bin/time_daemon service time_daemon /system/bin/time_daemon
  488. class late_start class late_start
  489. user root user root
  490. group root group root
Advertisement
Add Comment
Please, Sign In to add comment