sykopompos

n5 preview init vs gpl n5 init

Jul 3rd, 2014
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 83.56 KB | None | 0 0
  1. sykopompos@syko-server-299:~/working$ diff -y n5lpre/Lboot/ramdisk/init.hammerhead.rc forport/init.hammerhead.rc# #
  2. # Copyright 2013 The Android Open Source Project # Copyright 2013 The Android Open Source Project
  3. # #
  4. # Licensed under the Apache License, Version 2.0 (the "Licens # Licensed under the Apache License, Version 2.0 (the "Licens
  5. # you may not use this file except in compliance with the Lic # you may not use this file except in compliance with the Lic
  6. # You may obtain a copy of the License at # You may obtain a copy of the License at
  7. # #
  8. # http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
  9. # #
  10. # Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
  11. # distributed under the License is distributed on an "AS IS" # distributed under the License is distributed on an "AS IS"
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres
  13. # See the License for the specific language governing permiss # See the License for the specific language governing permiss
  14. # limitations under the License. # limitations under the License.
  15. # #
  16.  
  17. import init.hammerhead.usb.rc import init.hammerhead.usb.rc
  18. import init.hammerhead_svelte.rc <
  19.  
  20. on early-init on early-init
  21. mount debugfs debugfs /sys/kernel/debug mount debugfs debugfs /sys/kernel/debug
  22. chown system system /sys/kernel/debug/kgsl/proc chown system system /sys/kernel/debug/kgsl/proc
  23.  
  24. on init on init
  25. # See storage config details at http://source.android.com # See storage config details at http://source.android.com
  26. mkdir /mnt/shell/emulated 0700 shell shell mkdir /mnt/shell/emulated 0700 shell shell
  27. mkdir /storage/emulated 0555 root root mkdir /storage/emulated 0555 root root
  28.  
  29. # Set permissions for persist partition # Set permissions for persist partition
  30. mkdir /persist 0771 system system mkdir /persist 0771 system system
  31. mkdir /firmware 0771 system system mkdir /firmware 0771 system system
  32.  
  33. export EXTERNAL_STORAGE /storage/emulated/legacy export EXTERNAL_STORAGE /storage/emulated/legacy
  34. export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
  35. export EMULATED_STORAGE_TARGET /storage/emulated export EMULATED_STORAGE_TARGET /storage/emulated
  36.  
  37. # Support legacy paths # Support legacy paths
  38. symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /sdcard
  39. symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /mnt/sdcard
  40. symlink /storage/emulated/legacy /storage/sdcard0 symlink /storage/emulated/legacy /storage/sdcard0
  41. symlink /mnt/shell/emulated/0 /storage/emulated/legacy symlink /mnt/shell/emulated/0 /storage/emulated/legacy
  42.  
  43. on fs on fs
  44. mount_all ./fstab.hammerhead mount_all ./fstab.hammerhead
  45. restorecon_recursive /persist restorecon_recursive /persist
  46. setprop ro.crypto.fuse_sdcard true setprop ro.crypto.fuse_sdcard true
  47. write /sys/kernel/boot_adsp/boot 1 write /sys/kernel/boot_adsp/boot 1
  48.  
  49. on early-boot on early-boot
  50. # set RLIMIT_MEMLOCK to 64MB # set RLIMIT_MEMLOCK to 64MB
  51. setrlimit 8 67108864 67108864 setrlimit 8 67108864 67108864
  52.  
  53. on boot on boot
  54. # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK
  55. write /sys/module/wakelock/parameters/debug_mask 7 write /sys/module/wakelock/parameters/debug_mask 7
  56.  
  57. # bluetooth # bluetooth
  58. chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty
  59. chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st
  60. chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/state
  61.  
  62. # bluetooth LPM # bluetooth LPM
  63. chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
  64. chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit
  65.  
  66. #bluetooth UART dev #bluetooth UART dev
  67. chown bluetooth net_bt_stack /sys/devices/platform/msm_se chown bluetooth net_bt_stack /sys/devices/platform/msm_se
  68. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  69.  
  70. #Create QMUX deamon socket area #Create QMUX deamon socket area
  71. mkdir /dev/socket/qmux_radio 0770 radio radio mkdir /dev/socket/qmux_radio 0770 radio radio
  72. chmod 2770 /dev/socket/qmux_radio chmod 2770 /dev/socket/qmux_radio
  73. mkdir /dev/socket/qmux_audio 0770 media audio mkdir /dev/socket/qmux_audio 0770 media audio
  74. chmod 2770 /dev/socket/qmux_audio chmod 2770 /dev/socket/qmux_audio
  75. mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
  76. chmod 2770 /dev/socket/qmux_bluetooth chmod 2770 /dev/socket/qmux_bluetooth
  77. mkdir /dev/socket/qmux_gps 0770 gps gps mkdir /dev/socket/qmux_gps 0770 gps gps
  78. chmod 2770 /dev/socket/qmux_gps chmod 2770 /dev/socket/qmux_gps
  79.  
  80. # Camera Recording # Camera Recording
  81. mkdir /dev/video mkdir /dev/video
  82. symlink /dev/video32 /dev/video/venus_dec symlink /dev/video32 /dev/video/venus_dec
  83. symlink /dev/video33 /dev/video/venus_enc symlink /dev/video33 /dev/video/venus_enc
  84.  
  85. # Allow QMUX daemon to assign port open wait time # Allow QMUX daemon to assign port open wait time
  86. chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m
  87.  
  88. #For bridgemgr daemon to inform the USB driver of the cor #For bridgemgr daemon to inform the USB driver of the cor
  89. chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio
  90.  
  91. # Assign TCP buffer thresholds to be ceiling value of tec # Assign TCP buffer thresholds to be ceiling value of tec
  92. # Increased technology maximums should be reflected here. # Increased technology maximums should be reflected here.
  93. write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/rmem_max 2097152
  94. write /proc/sys/net/core/wmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152
  95.  
  96. # Define TCP buffer sizes # Define TCP buffer sizes
  97. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial,
  98. setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409 setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409
  99. setprop net.tcp.buffersize.hspa 4094,87380,704512,409 setprop net.tcp.buffersize.hspa 4094,87380,704512,409
  100. setprop net.tcp.buffersize.hsupa 4094,87380,704512,409 setprop net.tcp.buffersize.hsupa 4094,87380,704512,409
  101.  
  102. # create symlink for fb1 as HDMI # create symlink for fb1 as HDMI
  103. symlink /dev/graphics/fb1 /dev/graphics/hdmi symlink /dev/graphics/fb1 /dev/graphics/hdmi
  104.  
  105. # setup permissions for fb1 related nodes # setup permissions for fb1 related nodes
  106. chown system graphics /sys/class/graphics/fb1/hpd chown system graphics /sys/class/graphics/fb1/hpd
  107. chown system graphics /sys/class/graphics/fb1/vendor_name chown system graphics /sys/class/graphics/fb1/vendor_name
  108. chown system graphics /sys/class/graphics/fb1/product_des chown system graphics /sys/class/graphics/fb1/product_des
  109. chmod 0664 /sys/devices/virtual/graphics/fb1/hpd chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
  110. chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name
  111. chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc
  112.  
  113. # To allow interfaces to get v6 address when tethering is # To allow interfaces to get v6 address when tethering is
  114. write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
  115. write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
  116. write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
  117. write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
  118. write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
  119. write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
  120. write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
  121. write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
  122.  
  123. # Subsytem Restart # Subsytem Restart
  124. #adsp #adsp
  125. write /sys/bus/msm_subsys/devices/subsys0/restart_level " write /sys/bus/msm_subsys/devices/subsys0/restart_level "
  126. #modem #modem
  127. write /sys/bus/msm_subsys/devices/subsys1/restart_level " write /sys/bus/msm_subsys/devices/subsys1/restart_level "
  128. #venus #venus
  129. write /sys/bus/msm_subsys/devices/subsys2/restart_level " write /sys/bus/msm_subsys/devices/subsys2/restart_level "
  130.  
  131. # Subsytem Ramdump collection <
  132. mkdir /data/tombstones 0777 system system <
  133. mkdir /data/tombstones/ramdump 0777 system system <
  134. restorecon_recursive /data/tombstones <
  135. write /sys/module/subsystem_restart/parameters/enable_ram <
  136. <
  137. # Modem logging collection <
  138. mkdir /data/diag_logs 0777 system system <
  139. chmod 666 /dev/diag <
  140. <
  141. # leds # leds
  142. chown system system /sys/class/leds/red/on_off_ms chown system system /sys/class/leds/red/on_off_ms
  143. chown system system /sys/class/leds/green/on_off_ms chown system system /sys/class/leds/green/on_off_ms
  144. chown system system /sys/class/leds/blue/on_off_ms chown system system /sys/class/leds/blue/on_off_ms
  145. chown system system /sys/class/leds/red/rgb_start chown system system /sys/class/leds/red/rgb_start
  146. chmod 664 /sys/class/leds/lcd-backlight/brightness chmod 664 /sys/class/leds/lcd-backlight/brightness
  147.  
  148. on post-fs-data on post-fs-data
  149. mkdir /data/media 0770 media_rw media_rw mkdir /data/media 0770 media_rw media_rw
  150.  
  151. # NFC: create data/nfc for nv storage # NFC: create data/nfc for nv storage
  152. mkdir /data/nfc 0770 nfc nfc mkdir /data/nfc 0770 nfc nfc
  153. mkdir /data/nfc/param 0770 nfc nfc mkdir /data/nfc/param 0770 nfc nfc
  154.  
  155. # wifi # wifi
  156. chown wifi system /persist/wifi chown wifi system /persist/wifi
  157.  
  158. # bluetooth # bluetooth
  159. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  160.  
  161. # Create directory used by audio subsystem # Create directory used by audio subsystem
  162. mkdir /data/misc/audio 0770 audio audio mkdir /data/misc/audio 0770 audio audio
  163.  
  164. # Create directory used by sensor subsystem # Create directory used by sensor subsystem
  165. mkdir /data/system 0755 system system mkdir /data/system 0755 system system
  166. mkdir /data/system/sensors mkdir /data/system/sensors
  167. chmod 755 /data/system/sensors chmod 755 /data/system/sensors
  168. write /data/system/sensors/settings 1 write /data/system/sensors/settings 1
  169. chmod 660 /data/system/sensors/settings chmod 660 /data/system/sensors/settings
  170.  
  171. # AKM setting data # AKM setting data
  172. mkdir /data/misc/sensors mkdir /data/misc/sensors
  173. chmod 775 /data/misc/sensors chmod 775 /data/misc/sensors
  174.  
  175. # Sensor # Sensor
  176. mkdir /persist/sensors mkdir /persist/sensors
  177. chmod 775 /persist/sensors chmod 775 /persist/sensors
  178.  
  179. # communicate with mpdecision and thermald # communicate with mpdecision and thermald
  180. mkdir /dev/socket/mpdecision 2770 root system mkdir /dev/socket/mpdecision 2770 root system
  181.  
  182. # save rtc time offsets # save rtc time offsets
  183. mkdir /data/system/time 0700 system system mkdir /data/system/time 0700 system system
  184.  
  185. # Ecc_Handler qcril.db # Ecc_Handler qcril.db
  186. mkdir /data/misc/radio 0770 radio radio mkdir /data/misc/radio 0770 radio radio
  187. symlink /system/etc/qcril.db /data/misc/radio/qcril.db symlink /system/etc/qcril.db /data/misc/radio/qcril.db
  188.  
  189. setprop vold.post_fs_data_done 1 setprop vold.post_fs_data_done 1
  190.  
  191. # Set the CPU Freq Sampling rates # Set the CPU Freq Sampling rates
  192. write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
  193. write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
  194. write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
  195. write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
  196. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
  197. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
  198. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
  199. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
  200. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  201. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r
  202. write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
  203. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d
  204. write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
  205. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  206. write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
  207. write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr
  208. write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
  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/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
  211. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
  212. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
  213. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
  214. write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
  215. chown root.system /sys/devices/system/cpu/mfreq chown root.system /sys/devices/system/cpu/mfreq
  216. chmod 220 /sys/devices/system/cpu/mfreq chmod 220 /sys/devices/system/cpu/mfreq
  217. chown root.system /sys/devices/system/cpu/cpu1/online chown root.system /sys/devices/system/cpu/cpu1/online
  218. chown root.system /sys/devices/system/cpu/cpu2/online chown root.system /sys/devices/system/cpu/cpu2/online
  219. chown root.system /sys/devices/system/cpu/cpu3/online chown root.system /sys/devices/system/cpu/cpu3/online
  220. chmod 664 /sys/devices/system/cpu/cpu1/online chmod 664 /sys/devices/system/cpu/cpu1/online
  221. chmod 664 /sys/devices/system/cpu/cpu2/online chmod 664 /sys/devices/system/cpu/cpu2/online
  222. chmod 664 /sys/devices/system/cpu/cpu3/online chmod 664 /sys/devices/system/cpu/cpu3/online
  223. write /dev/cpuctl/apps/cpu.notify_on_migrate 1 write /dev/cpuctl/apps/cpu.notify_on_migrate 1
  224.  
  225. on charger on charger
  226. # Booting modem # Booting modem
  227. wait /dev/block/platform/msm_sdcc.1/by-name/modem wait /dev/block/platform/msm_sdcc.1/by-name/modem
  228. mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem / mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /
  229. wait /dev/block/platform/msm_sdcc.1/by-name/system wait /dev/block/platform/msm_sdcc.1/by-name/system
  230. mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system
  231. start rmt_storage start rmt_storage
  232. start irsc_util start irsc_util
  233.  
  234. # Enable Power modes and set the CPU Freq Sampling rates # Enable Power modes and set the CPU Freq Sampling rates
  235. write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
  236. write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
  237. write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
  238. write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
  239. write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
  240. write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
  241. write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
  242. write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
  243. write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
  244. write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
  245. write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
  246. write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
  247. write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
  248. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
  249. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
  250. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
  251. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
  252. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
  253. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
  254. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
  255. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
  256. write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
  257. write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu1/online 0
  258. write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu2/online 0
  259. write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu3/online 0
  260. start mpdecision start mpdecision
  261.  
  262. on property:init.svc.wpa_supplicant=stopped on property:init.svc.wpa_supplicant=stopped
  263. stop dhcpcd stop dhcpcd
  264.  
  265. on property:sys.boot_completed=1 on property:sys.boot_completed=1
  266. # Enable Power modes # Enable Power modes
  267. write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
  268. write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
  269. write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
  270. write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
  271. write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
  272. write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
  273. write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
  274. write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
  275. write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
  276. write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
  277. write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
  278. write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
  279. write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
  280. write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
  281. write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
  282. write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
  283. write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
  284. write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl
  285. write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl
  286. write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl
  287. write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl
  288. start mpdecision start mpdecision
  289.  
  290. # enable slimport detection # enable slimport detection
  291. write /sys/module/slimport/parameters/enable_irq 1 write /sys/module/slimport/parameters/enable_irq 1
  292.  
  293. # enable logging of wake up reasons to kernel logs <
  294. write /sys/module/msm_show_resume_irq/parameters/debug_ma <
  295. <
  296. on property:ro.debuggable=1 <
  297. start ssr_ramdump <
  298. <
  299. service rmt_storage /system/bin/rmt_storage service rmt_storage /system/bin/rmt_storage
  300. class core class core
  301. user root user root
  302. group system group system
  303.  
  304. service bridgemgrd /system/bin/bridgemgrd service bridgemgrd /system/bin/bridgemgrd
  305. class main class main
  306. user radio user radio
  307. group radio group radio
  308.  
  309. # QMUX must be in multiple groups to support external process # QMUX must be in multiple groups to support external process
  310. service qmuxd /system/bin/qmuxd service qmuxd /system/bin/qmuxd
  311. class main class main
  312. user radio user radio
  313. group radio audio bluetooth gps group radio audio bluetooth gps
  314.  
  315. service netmgrd /system/bin/netmgrd service netmgrd /system/bin/netmgrd
  316. class main class main
  317. group radio group radio
  318.  
  319. # QCOM sensor # QCOM sensor
  320. service sensors /system/bin/sensors.qcom service sensors /system/bin/sensors.qcom
  321. class main class main
  322. user root user root
  323. group root group root
  324.  
  325. service irsc_util /system/bin/irsc_util "/etc/sec_config" service irsc_util /system/bin/irsc_util "/etc/sec_config"
  326. class main class main
  327. user root user root
  328. oneshot oneshot
  329.  
  330. service p2p_supplicant /system/bin/wpa_supplicant \ service p2p_supplicant /system/bin/wpa_supplicant \
  331. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
  332. -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ | -I/system/etc/wifi/wpa_supplicant_overlay.conf \
  333. > -O/data/misc/wifi/sockets -N \
  334. -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
  335. -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \
  336. -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
  337. -g@android:wpa_wlan0 -g@android:wpa_wlan0
  338. # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
  339. # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
  340. # user wifi # user wifi
  341. # group wifi inet keystore # group wifi inet keystore
  342. class main class main
  343. socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
  344. disabled disabled
  345. oneshot oneshot
  346.  
  347. service wpa_supplicant /system/bin/wpa_supplicant \ service wpa_supplicant /system/bin/wpa_supplicant \
  348. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
  349. -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
  350. > -O/data/misc/wifi/sockets \
  351. -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
  352. # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
  353. # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
  354. # user wifi # user wifi
  355. # group wifi inet keystore # group wifi inet keystore
  356. class main class main
  357. socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
  358. disabled disabled
  359. oneshot oneshot
  360.  
  361. service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
  362. class late_start class late_start
  363. disabled disabled
  364. oneshot oneshot
  365.  
  366. service dhcpcd_p2p /system/bin/dhcpcd -aABKL service dhcpcd_p2p /system/bin/dhcpcd -aABKL
  367. class late_start class late_start
  368. disabled disabled
  369. oneshot oneshot
  370.  
  371. service iprenew_wlan0 /system/bin/dhcpcd -n service iprenew_wlan0 /system/bin/dhcpcd -n
  372. class late_start class late_start
  373. disabled disabled
  374. oneshot oneshot
  375.  
  376. service iprenew_p2p /system/bin/dhcpcd -n service iprenew_p2p /system/bin/dhcpcd -n
  377. class late_start class late_start
  378. disabled disabled
  379. oneshot oneshot
  380.  
  381. service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL <
  382. class late_start <
  383. disabled <
  384. oneshot <
  385. <
  386. service iprenew_eth0 /system/bin/dhcpcd -n <
  387. class late_start <
  388. disabled <
  389. oneshot <
  390. <
  391. service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
  392. disabled disabled
  393. oneshot oneshot
  394.  
  395. service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
  396. disabled disabled
  397. oneshot oneshot
  398.  
  399. service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
  400. disabled disabled
  401. oneshot oneshot
  402.  
  403. service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
  404. disabled disabled
  405. oneshot oneshot
  406.  
  407. service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
  408. disabled disabled
  409. oneshot oneshot
  410.  
  411. service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
  412. disabled disabled
  413. oneshot oneshot
  414.  
  415. service iprenew_bt-pan /system/bin/dhcpcd -n service iprenew_bt-pan /system/bin/dhcpcd -n
  416. disabled disabled
  417. oneshot oneshot
  418.  
  419. service qseecomd /system/bin/qseecomd service qseecomd /system/bin/qseecomd
  420. class late_start class late_start
  421. user system user system
  422. group system group system
  423.  
  424. # virtual sdcard daemon running as media_rw (1023) # virtual sdcard daemon running as media_rw (1023)
  425. service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me
  426. class late_start class late_start
  427.  
  428. service charger /sbin/healthd -c | service charger /charger
  429. class charger class charger
  430. critical <
  431. seclabel u:r:healthd:s0 seclabel u:r:healthd:s0
  432.  
  433. service qcamerasvr /system/bin/mm-qcamera-daemon service qcamerasvr /system/bin/mm-qcamera-daemon
  434. class late_start class late_start
  435. user camera user camera
  436. group camera system inet input group camera system inet input
  437.  
  438. service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu
  439. class main class main
  440. user bluetooth user bluetooth
  441. group system bluetooth group system bluetooth
  442. oneshot oneshot
  443.  
  444. # bugreport is triggered by holding down volume down, volume # bugreport is triggered by holding down volume down, volume
  445. service bugreport /system/bin/dumpstate -d -p -B \ service bugreport /system/bin/dumpstate -d -p -B \
  446. -o /data/data/com.android.shell/files/bugreports/bugr -o /data/data/com.android.shell/files/bugreports/bugr
  447. class main class main
  448. disabled disabled
  449. oneshot oneshot
  450. keycodes 114 115 116 keycodes 114 115 116
  451.  
  452. service mpdecision /system/bin/mpdecision --no_sleep --avg_co service mpdecision /system/bin/mpdecision --no_sleep --avg_co
  453. class main class main
  454. user root user root
  455. group root system group root system
  456. disabled disabled
  457.  
  458. service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc
  459. class main class main
  460. > disabled
  461. user root user root
  462. group root group root
  463. disabled <
  464.  
  465. service thermal-engine /system/bin/thermal-engine-hh service thermal-engine /system/bin/thermal-engine-hh
  466. class main class main
  467. user root user root
  468. group radio system group radio system
  469.  
  470. service vss_init /vendor/bin/vss_init service vss_init /vendor/bin/vss_init
  471. class late_start class late_start
  472. user root user root
  473. group root group root
  474. disabled disabled
  475.  
  476. service time_daemon /system/bin/time_daemon service time_daemon /system/bin/time_daemon
  477. class late_start class late_start
  478. user root user root
  479. group root group root
  480. sykopompos@syko-server-299:~/working$
  481. sykopompos@syko-server-299:~/working$
  482. sykopompos@syko-server-299:~/working$
  483. sykopompos@syko-server-299:~/working$
  484. sykopompos@syko-server-299:~/working$
  485. sykopompos@syko-server-299:~/working$
  486. sykopompos@syko-server-299:~/working$
  487. sykopompos@syko-server-299:~/working$
  488. sykopompos@syko-server-299:~/working$
  489. sykopompos@syko-server-299:~/working$
  490. sykopompos@syko-server-299:~/working$
  491. sykopompos@syko-server-299:~/working$
  492. sykopompos@syko-server-299:~/working$
  493. sykopompos@syko-server-299:~/working$
  494. sykopompos@syko-server-299:~/working$
  495. sykopompos@syko-server-299:~/working$
  496. sykopompos@syko-server-299:~/working$
  497. sykopompos@syko-server-299:~/working$
  498. sykopompos@syko-server-299:~/working$
  499. sykopompos@syko-server-299:~/working$
  500. sykopompos@syko-server-299:~/working$
  501. sykopompos@syko-server-299:~/working$
  502. sykopompos@syko-server-299:~/working$
  503. sykopompos@syko-server-299:~/working$
  504. sykopompos@syko-server-299:~/working$
  505. sykopompos@syko-server-299:~/working$
  506. sykopompos@syko-server-299:~/working$
  507. sykopompos@syko-server-299:~/working$
  508. sykopompos@syko-server-299:~/working$
  509. sykopompos@syko-server-299:~/working$
  510. sykopompos@syko-server-299:~/working$
  511. sykopompos@syko-server-299:~/working$
  512. sykopompos@syko-server-299:~/working$
  513. sykopompos@syko-server-299:~/working$
  514. sykopompos@syko-server-299:~/working$
  515. sykopompos@syko-server-299:~/working$ diff -y n5lpre/Lboot/ramdisk/init.hammerhead.rc forport/init.hammerhead.rc
  516. # #
  517. # Copyright 2013 The Android Open Source Project # Copyright 2013 The Android Open Source Project
  518. # #
  519. # Licensed under the Apache License, Version 2.0 (the "Licens # Licensed under the Apache License, Version 2.0 (the "Licens
  520. # you may not use this file except in compliance with the Lic # you may not use this file except in compliance with the Lic
  521. # You may obtain a copy of the License at # You may obtain a copy of the License at
  522. # #
  523. # http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
  524. # #
  525. # Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
  526. # distributed under the License is distributed on an "AS IS" # distributed under the License is distributed on an "AS IS"
  527. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres
  528. # See the License for the specific language governing permiss # See the License for the specific language governing permiss
  529. # limitations under the License. # limitations under the License.
  530. # #
  531.  
  532. import init.hammerhead.usb.rc import init.hammerhead.usb.rc
  533. import init.hammerhead_svelte.rc <
  534.  
  535. on early-init on early-init
  536. mount debugfs debugfs /sys/kernel/debug mount debugfs debugfs /sys/kernel/debug
  537. chown system system /sys/kernel/debug/kgsl/proc chown system system /sys/kernel/debug/kgsl/proc
  538.  
  539. on init on init
  540. # See storage config details at http://source.android.com # See storage config details at http://source.android.com
  541. mkdir /mnt/shell/emulated 0700 shell shell mkdir /mnt/shell/emulated 0700 shell shell
  542. mkdir /storage/emulated 0555 root root mkdir /storage/emulated 0555 root root
  543.  
  544. # Set permissions for persist partition # Set permissions for persist partition
  545. mkdir /persist 0771 system system mkdir /persist 0771 system system
  546. mkdir /firmware 0771 system system mkdir /firmware 0771 system system
  547.  
  548. export EXTERNAL_STORAGE /storage/emulated/legacy export EXTERNAL_STORAGE /storage/emulated/legacy
  549. export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
  550. export EMULATED_STORAGE_TARGET /storage/emulated export EMULATED_STORAGE_TARGET /storage/emulated
  551.  
  552. # Support legacy paths # Support legacy paths
  553. symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /sdcard
  554. symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /mnt/sdcard
  555. symlink /storage/emulated/legacy /storage/sdcard0 symlink /storage/emulated/legacy /storage/sdcard0
  556. symlink /mnt/shell/emulated/0 /storage/emulated/legacy symlink /mnt/shell/emulated/0 /storage/emulated/legacy
  557.  
  558. on fs on fs
  559. mount_all ./fstab.hammerhead mount_all ./fstab.hammerhead
  560. restorecon_recursive /persist restorecon_recursive /persist
  561. setprop ro.crypto.fuse_sdcard true setprop ro.crypto.fuse_sdcard true
  562. write /sys/kernel/boot_adsp/boot 1 write /sys/kernel/boot_adsp/boot 1
  563.  
  564. on early-boot on early-boot
  565. # set RLIMIT_MEMLOCK to 64MB # set RLIMIT_MEMLOCK to 64MB
  566. setrlimit 8 67108864 67108864 setrlimit 8 67108864 67108864
  567.  
  568. on boot on boot
  569. # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK
  570. write /sys/module/wakelock/parameters/debug_mask 7 write /sys/module/wakelock/parameters/debug_mask 7
  571.  
  572. # bluetooth # bluetooth
  573. chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty
  574. chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st
  575. chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/state
  576.  
  577. # bluetooth LPM # bluetooth LPM
  578. chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
  579. chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit
  580.  
  581. #bluetooth UART dev #bluetooth UART dev
  582. chown bluetooth net_bt_stack /sys/devices/platform/msm_se chown bluetooth net_bt_stack /sys/devices/platform/msm_se
  583. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  584.  
  585. #Create QMUX deamon socket area #Create QMUX deamon socket area
  586. mkdir /dev/socket/qmux_radio 0770 radio radio mkdir /dev/socket/qmux_radio 0770 radio radio
  587. chmod 2770 /dev/socket/qmux_radio chmod 2770 /dev/socket/qmux_radio
  588. mkdir /dev/socket/qmux_audio 0770 media audio mkdir /dev/socket/qmux_audio 0770 media audio
  589. chmod 2770 /dev/socket/qmux_audio chmod 2770 /dev/socket/qmux_audio
  590. mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
  591. chmod 2770 /dev/socket/qmux_bluetooth chmod 2770 /dev/socket/qmux_bluetooth
  592. mkdir /dev/socket/qmux_gps 0770 gps gps mkdir /dev/socket/qmux_gps 0770 gps gps
  593. chmod 2770 /dev/socket/qmux_gps chmod 2770 /dev/socket/qmux_gps
  594.  
  595. # Camera Recording # Camera Recording
  596. mkdir /dev/video mkdir /dev/video
  597. symlink /dev/video32 /dev/video/venus_dec symlink /dev/video32 /dev/video/venus_dec
  598. symlink /dev/video33 /dev/video/venus_enc symlink /dev/video33 /dev/video/venus_enc
  599.  
  600. # Allow QMUX daemon to assign port open wait time # Allow QMUX daemon to assign port open wait time
  601. chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m
  602.  
  603. #For bridgemgr daemon to inform the USB driver of the cor #For bridgemgr daemon to inform the USB driver of the cor
  604. chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio
  605.  
  606. # Assign TCP buffer thresholds to be ceiling value of tec # Assign TCP buffer thresholds to be ceiling value of tec
  607. # Increased technology maximums should be reflected here. # Increased technology maximums should be reflected here.
  608. write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/rmem_max 2097152
  609. write /proc/sys/net/core/wmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152
  610.  
  611. # Define TCP buffer sizes # Define TCP buffer sizes
  612. # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial,
  613. setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409 setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409
  614. setprop net.tcp.buffersize.hspa 4094,87380,704512,409 setprop net.tcp.buffersize.hspa 4094,87380,704512,409
  615. setprop net.tcp.buffersize.hsupa 4094,87380,704512,409 setprop net.tcp.buffersize.hsupa 4094,87380,704512,409
  616.  
  617. # create symlink for fb1 as HDMI # create symlink for fb1 as HDMI
  618. symlink /dev/graphics/fb1 /dev/graphics/hdmi symlink /dev/graphics/fb1 /dev/graphics/hdmi
  619.  
  620. # setup permissions for fb1 related nodes # setup permissions for fb1 related nodes
  621. chown system graphics /sys/class/graphics/fb1/hpd chown system graphics /sys/class/graphics/fb1/hpd
  622. chown system graphics /sys/class/graphics/fb1/vendor_name chown system graphics /sys/class/graphics/fb1/vendor_name
  623. chown system graphics /sys/class/graphics/fb1/product_des chown system graphics /sys/class/graphics/fb1/product_des
  624. chmod 0664 /sys/devices/virtual/graphics/fb1/hpd chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
  625. chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name
  626. chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc
  627.  
  628. # To allow interfaces to get v6 address when tethering is # To allow interfaces to get v6 address when tethering is
  629. write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
  630. write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
  631. write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
  632. write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
  633. write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
  634. write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
  635. write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
  636. write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
  637.  
  638. # Subsytem Restart # Subsytem Restart
  639. #adsp #adsp
  640. write /sys/bus/msm_subsys/devices/subsys0/restart_level " write /sys/bus/msm_subsys/devices/subsys0/restart_level "
  641. #modem #modem
  642. write /sys/bus/msm_subsys/devices/subsys1/restart_level " write /sys/bus/msm_subsys/devices/subsys1/restart_level "
  643. #venus #venus
  644. write /sys/bus/msm_subsys/devices/subsys2/restart_level " write /sys/bus/msm_subsys/devices/subsys2/restart_level "
  645.  
  646. # Subsytem Ramdump collection <
  647. mkdir /data/tombstones 0777 system system <
  648. mkdir /data/tombstones/ramdump 0777 system system <
  649. restorecon_recursive /data/tombstones <
  650. write /sys/module/subsystem_restart/parameters/enable_ram <
  651. <
  652. # Modem logging collection <
  653. mkdir /data/diag_logs 0777 system system <
  654. chmod 666 /dev/diag <
  655. <
  656. # leds # leds
  657. chown system system /sys/class/leds/red/on_off_ms chown system system /sys/class/leds/red/on_off_ms
  658. chown system system /sys/class/leds/green/on_off_ms chown system system /sys/class/leds/green/on_off_ms
  659. chown system system /sys/class/leds/blue/on_off_ms chown system system /sys/class/leds/blue/on_off_ms
  660. chown system system /sys/class/leds/red/rgb_start chown system system /sys/class/leds/red/rgb_start
  661. chmod 664 /sys/class/leds/lcd-backlight/brightness chmod 664 /sys/class/leds/lcd-backlight/brightness
  662.  
  663. on post-fs-data on post-fs-data
  664. mkdir /data/media 0770 media_rw media_rw mkdir /data/media 0770 media_rw media_rw
  665.  
  666. # NFC: create data/nfc for nv storage # NFC: create data/nfc for nv storage
  667. mkdir /data/nfc 0770 nfc nfc mkdir /data/nfc 0770 nfc nfc
  668. mkdir /data/nfc/param 0770 nfc nfc mkdir /data/nfc/param 0770 nfc nfc
  669.  
  670. # wifi # wifi
  671. chown wifi system /persist/wifi chown wifi system /persist/wifi
  672.  
  673. # bluetooth # bluetooth
  674. mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
  675.  
  676. # Create directory used by audio subsystem # Create directory used by audio subsystem
  677. mkdir /data/misc/audio 0770 audio audio mkdir /data/misc/audio 0770 audio audio
  678.  
  679. # Create directory used by sensor subsystem # Create directory used by sensor subsystem
  680. mkdir /data/system 0755 system system mkdir /data/system 0755 system system
  681. mkdir /data/system/sensors mkdir /data/system/sensors
  682. chmod 755 /data/system/sensors chmod 755 /data/system/sensors
  683. write /data/system/sensors/settings 1 write /data/system/sensors/settings 1
  684. chmod 660 /data/system/sensors/settings chmod 660 /data/system/sensors/settings
  685.  
  686. # AKM setting data # AKM setting data
  687. mkdir /data/misc/sensors mkdir /data/misc/sensors
  688. chmod 775 /data/misc/sensors chmod 775 /data/misc/sensors
  689.  
  690. # Sensor # Sensor
  691. mkdir /persist/sensors mkdir /persist/sensors
  692. chmod 775 /persist/sensors chmod 775 /persist/sensors
  693.  
  694. # communicate with mpdecision and thermald # communicate with mpdecision and thermald
  695. mkdir /dev/socket/mpdecision 2770 root system mkdir /dev/socket/mpdecision 2770 root system
  696.  
  697. # save rtc time offsets # save rtc time offsets
  698. mkdir /data/system/time 0700 system system mkdir /data/system/time 0700 system system
  699.  
  700. # Ecc_Handler qcril.db # Ecc_Handler qcril.db
  701. mkdir /data/misc/radio 0770 radio radio mkdir /data/misc/radio 0770 radio radio
  702. symlink /system/etc/qcril.db /data/misc/radio/qcril.db symlink /system/etc/qcril.db /data/misc/radio/qcril.db
  703.  
  704. setprop vold.post_fs_data_done 1 setprop vold.post_fs_data_done 1
  705.  
  706. # Set the CPU Freq Sampling rates # Set the CPU Freq Sampling rates
  707. write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
  708. write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
  709. write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
  710. write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
  711. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
  712. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
  713. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
  714. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
  715. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  716. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r
  717. write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
  718. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d
  719. write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
  720. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  721. write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
  722. write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr
  723. write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
  724. write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
  725. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
  726. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
  727. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
  728. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
  729. write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
  730. chown root.system /sys/devices/system/cpu/mfreq chown root.system /sys/devices/system/cpu/mfreq
  731. chmod 220 /sys/devices/system/cpu/mfreq chmod 220 /sys/devices/system/cpu/mfreq
  732. chown root.system /sys/devices/system/cpu/cpu1/online chown root.system /sys/devices/system/cpu/cpu1/online
  733. chown root.system /sys/devices/system/cpu/cpu2/online chown root.system /sys/devices/system/cpu/cpu2/online
  734. chown root.system /sys/devices/system/cpu/cpu3/online chown root.system /sys/devices/system/cpu/cpu3/online
  735. chmod 664 /sys/devices/system/cpu/cpu1/online chmod 664 /sys/devices/system/cpu/cpu1/online
  736. chmod 664 /sys/devices/system/cpu/cpu2/online chmod 664 /sys/devices/system/cpu/cpu2/online
  737. chmod 664 /sys/devices/system/cpu/cpu3/online chmod 664 /sys/devices/system/cpu/cpu3/online
  738. write /dev/cpuctl/apps/cpu.notify_on_migrate 1 write /dev/cpuctl/apps/cpu.notify_on_migrate 1
  739.  
  740. on charger on charger
  741. # Booting modem # Booting modem
  742. wait /dev/block/platform/msm_sdcc.1/by-name/modem wait /dev/block/platform/msm_sdcc.1/by-name/modem
  743. mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem / mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /
  744. wait /dev/block/platform/msm_sdcc.1/by-name/system wait /dev/block/platform/msm_sdcc.1/by-name/system
  745. mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system
  746. start rmt_storage start rmt_storage
  747. start irsc_util start irsc_util
  748.  
  749. # Enable Power modes and set the CPU Freq Sampling rates # Enable Power modes and set the CPU Freq Sampling rates
  750. write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
  751. write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
  752. write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
  753. write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
  754. write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
  755. write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
  756. write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
  757. write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
  758. write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
  759. write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
  760. write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
  761. write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
  762. write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
  763. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
  764. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
  765. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
  766. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
  767. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
  768. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
  769. write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
  770. write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
  771. write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
  772. write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu1/online 0
  773. write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu2/online 0
  774. write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu3/online 0
  775. start mpdecision start mpdecision
  776.  
  777. on property:init.svc.wpa_supplicant=stopped on property:init.svc.wpa_supplicant=stopped
  778. stop dhcpcd stop dhcpcd
  779.  
  780. on property:sys.boot_completed=1 on property:sys.boot_completed=1
  781. # Enable Power modes # Enable Power modes
  782. write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
  783. write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
  784. write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
  785. write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
  786. write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
  787. write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
  788. write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
  789. write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
  790. write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
  791. write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
  792. write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
  793. write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
  794. write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
  795. write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
  796. write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
  797. write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
  798. write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
  799. write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl
  800. write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl
  801. write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl
  802. write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl
  803. start mpdecision start mpdecision
  804.  
  805. # enable slimport detection # enable slimport detection
  806. write /sys/module/slimport/parameters/enable_irq 1 write /sys/module/slimport/parameters/enable_irq 1
  807.  
  808. # enable logging of wake up reasons to kernel logs <
  809. write /sys/module/msm_show_resume_irq/parameters/debug_ma <
  810. <
  811. on property:ro.debuggable=1 <
  812. start ssr_ramdump <
  813. <
  814. service rmt_storage /system/bin/rmt_storage service rmt_storage /system/bin/rmt_storage
  815. class core class core
  816. user root user root
  817. group system group system
  818.  
  819. service bridgemgrd /system/bin/bridgemgrd service bridgemgrd /system/bin/bridgemgrd
  820. class main class main
  821. user radio user radio
  822. group radio group radio
  823.  
  824. # QMUX must be in multiple groups to support external process # QMUX must be in multiple groups to support external process
  825. service qmuxd /system/bin/qmuxd service qmuxd /system/bin/qmuxd
  826. class main class main
  827. user radio user radio
  828. group radio audio bluetooth gps group radio audio bluetooth gps
  829.  
  830. service netmgrd /system/bin/netmgrd service netmgrd /system/bin/netmgrd
  831. class main class main
  832. group radio group radio
  833.  
  834. # QCOM sensor # QCOM sensor
  835. service sensors /system/bin/sensors.qcom service sensors /system/bin/sensors.qcom
  836. class main class main
  837. user root user root
  838. group root group root
  839.  
  840. service irsc_util /system/bin/irsc_util "/etc/sec_config" service irsc_util /system/bin/irsc_util "/etc/sec_config"
  841. class main class main
  842. user root user root
  843. oneshot oneshot
  844.  
  845. service p2p_supplicant /system/bin/wpa_supplicant \ service p2p_supplicant /system/bin/wpa_supplicant \
  846. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
  847. -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ | -I/system/etc/wifi/wpa_supplicant_overlay.conf \
  848. > -O/data/misc/wifi/sockets -N \
  849. -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
  850. -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \
  851. -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
  852. -g@android:wpa_wlan0 -g@android:wpa_wlan0
  853. # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
  854. # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
  855. # user wifi # user wifi
  856. # group wifi inet keystore # group wifi inet keystore
  857. class main class main
  858. socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
  859. disabled disabled
  860. oneshot oneshot
  861.  
  862. service wpa_supplicant /system/bin/wpa_supplicant \ service wpa_supplicant /system/bin/wpa_supplicant \
  863. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
  864. -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
  865. > -O/data/misc/wifi/sockets \
  866. -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
  867. # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
  868. # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
  869. # user wifi # user wifi
  870. # group wifi inet keystore # group wifi inet keystore
  871. class main class main
  872. socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
  873. disabled disabled
  874. oneshot oneshot
  875.  
  876. service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
  877. class late_start class late_start
  878. disabled disabled
  879. oneshot oneshot
  880.  
  881. service dhcpcd_p2p /system/bin/dhcpcd -aABKL service dhcpcd_p2p /system/bin/dhcpcd -aABKL
  882. class late_start class late_start
  883. disabled disabled
  884. oneshot oneshot
  885.  
  886. service iprenew_wlan0 /system/bin/dhcpcd -n service iprenew_wlan0 /system/bin/dhcpcd -n
  887. class late_start class late_start
  888. disabled disabled
  889. oneshot oneshot
  890.  
  891. service iprenew_p2p /system/bin/dhcpcd -n service iprenew_p2p /system/bin/dhcpcd -n
  892. class late_start class late_start
  893. disabled disabled
  894. oneshot oneshot
  895.  
  896. service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL <
  897. class late_start <
  898. disabled <
  899. oneshot <
  900. <
  901. service iprenew_eth0 /system/bin/dhcpcd -n <
  902. class late_start <
  903. disabled <
  904. oneshot <
  905. <
  906. service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
  907. disabled disabled
  908. oneshot oneshot
  909.  
  910. service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
  911. disabled disabled
  912. oneshot oneshot
  913.  
  914. service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
  915. disabled disabled
  916. oneshot oneshot
  917.  
  918. service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
  919. disabled disabled
  920. oneshot oneshot
  921.  
  922. service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
  923. disabled disabled
  924. oneshot oneshot
  925.  
  926. service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
  927. disabled disabled
  928. oneshot oneshot
  929.  
  930. service iprenew_bt-pan /system/bin/dhcpcd -n service iprenew_bt-pan /system/bin/dhcpcd -n
  931. disabled disabled
  932. oneshot oneshot
  933.  
  934. service qseecomd /system/bin/qseecomd service qseecomd /system/bin/qseecomd
  935. class late_start class late_start
  936. user system user system
  937. group system group system
  938.  
  939. # virtual sdcard daemon running as media_rw (1023) # virtual sdcard daemon running as media_rw (1023)
  940. service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me
  941. class late_start class late_start
  942.  
  943. service charger /sbin/healthd -c | service charger /charger
  944. class charger class charger
  945. critical <
  946. seclabel u:r:healthd:s0 seclabel u:r:healthd:s0
  947.  
  948. service qcamerasvr /system/bin/mm-qcamera-daemon service qcamerasvr /system/bin/mm-qcamera-daemon
  949. class late_start class late_start
  950. user camera user camera
  951. group camera system inet input group camera system inet input
  952.  
  953. service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu
  954. class main class main
  955. user bluetooth user bluetooth
  956. group system bluetooth group system bluetooth
  957. oneshot oneshot
  958.  
  959. # bugreport is triggered by holding down volume down, volume # bugreport is triggered by holding down volume down, volume
  960. service bugreport /system/bin/dumpstate -d -p -B \ service bugreport /system/bin/dumpstate -d -p -B \
  961. -o /data/data/com.android.shell/files/bugreports/bugr -o /data/data/com.android.shell/files/bugreports/bugr
  962. class main class main
  963. disabled disabled
  964. oneshot oneshot
  965. keycodes 114 115 116 keycodes 114 115 116
  966.  
  967. service mpdecision /system/bin/mpdecision --no_sleep --avg_co service mpdecision /system/bin/mpdecision --no_sleep --avg_co
  968. class main class main
  969. user root user root
  970. group root system group root system
  971. disabled disabled
  972.  
  973. service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc
  974. class main class main
  975. > disabled
  976. user root user root
  977. group root group root
  978. disabled <
  979.  
  980. service thermal-engine /system/bin/thermal-engine-hh service thermal-engine /system/bin/thermal-engine-hh
  981. class main class main
  982. user root user root
  983. group radio system group radio system
  984.  
  985. service vss_init /vendor/bin/vss_init service vss_init /vendor/bin/vss_init
  986. class late_start class late_start
  987. user root user root
  988. group root group root
  989. disabled disabled
  990.  
  991. service time_daemon /system/bin/time_daemon service time_daemon /system/bin/time_daemon
  992. class late_start class late_start
  993. user root user root
  994. group root group root
  995. sykopompos@syko-server-299:~/working$
Advertisement
Add Comment
Please, Sign In to add comment