Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sykopompos@syko-server-299:~/working$ diff -y n5lpre/Lboot/ramdisk/init.hammerhead.rc forport/init.hammerhead.rc# #
- # Copyright 2013 The Android Open Source Project # Copyright 2013 The Android Open Source Project
- # #
- # Licensed under the Apache License, Version 2.0 (the "Licens # Licensed under the Apache License, Version 2.0 (the "Licens
- # you may not use this file except in compliance with the Lic # you may not use this file except in compliance with the Lic
- # You may obtain a copy of the License at # You may obtain a copy of the License at
- # #
- # http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
- # #
- # Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
- # distributed under the License is distributed on an "AS IS" # distributed under the License is distributed on an "AS IS"
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres
- # See the License for the specific language governing permiss # See the License for the specific language governing permiss
- # limitations under the License. # limitations under the License.
- # #
- import init.hammerhead.usb.rc import init.hammerhead.usb.rc
- import init.hammerhead_svelte.rc <
- on early-init on early-init
- mount debugfs debugfs /sys/kernel/debug mount debugfs debugfs /sys/kernel/debug
- chown system system /sys/kernel/debug/kgsl/proc chown system system /sys/kernel/debug/kgsl/proc
- on init on init
- # See storage config details at http://source.android.com # See storage config details at http://source.android.com
- mkdir /mnt/shell/emulated 0700 shell shell mkdir /mnt/shell/emulated 0700 shell shell
- mkdir /storage/emulated 0555 root root mkdir /storage/emulated 0555 root root
- # Set permissions for persist partition # Set permissions for persist partition
- mkdir /persist 0771 system system mkdir /persist 0771 system system
- mkdir /firmware 0771 system system mkdir /firmware 0771 system system
- export EXTERNAL_STORAGE /storage/emulated/legacy export EXTERNAL_STORAGE /storage/emulated/legacy
- export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
- export EMULATED_STORAGE_TARGET /storage/emulated export EMULATED_STORAGE_TARGET /storage/emulated
- # Support legacy paths # Support legacy paths
- symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /sdcard
- symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /mnt/sdcard
- symlink /storage/emulated/legacy /storage/sdcard0 symlink /storage/emulated/legacy /storage/sdcard0
- symlink /mnt/shell/emulated/0 /storage/emulated/legacy symlink /mnt/shell/emulated/0 /storage/emulated/legacy
- on fs on fs
- mount_all ./fstab.hammerhead mount_all ./fstab.hammerhead
- restorecon_recursive /persist restorecon_recursive /persist
- setprop ro.crypto.fuse_sdcard true setprop ro.crypto.fuse_sdcard true
- write /sys/kernel/boot_adsp/boot 1 write /sys/kernel/boot_adsp/boot 1
- on early-boot on early-boot
- # set RLIMIT_MEMLOCK to 64MB # set RLIMIT_MEMLOCK to 64MB
- setrlimit 8 67108864 67108864 setrlimit 8 67108864 67108864
- on boot on boot
- # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK
- write /sys/module/wakelock/parameters/debug_mask 7 write /sys/module/wakelock/parameters/debug_mask 7
- # bluetooth # bluetooth
- chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty
- chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st
- chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/state
- # bluetooth LPM # bluetooth LPM
- chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
- chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit
- #bluetooth UART dev #bluetooth UART dev
- chown bluetooth net_bt_stack /sys/devices/platform/msm_se chown bluetooth net_bt_stack /sys/devices/platform/msm_se
- chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
- #Create QMUX deamon socket area #Create QMUX deamon socket area
- mkdir /dev/socket/qmux_radio 0770 radio radio mkdir /dev/socket/qmux_radio 0770 radio radio
- chmod 2770 /dev/socket/qmux_radio chmod 2770 /dev/socket/qmux_radio
- mkdir /dev/socket/qmux_audio 0770 media audio mkdir /dev/socket/qmux_audio 0770 media audio
- chmod 2770 /dev/socket/qmux_audio chmod 2770 /dev/socket/qmux_audio
- mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
- chmod 2770 /dev/socket/qmux_bluetooth chmod 2770 /dev/socket/qmux_bluetooth
- mkdir /dev/socket/qmux_gps 0770 gps gps mkdir /dev/socket/qmux_gps 0770 gps gps
- chmod 2770 /dev/socket/qmux_gps chmod 2770 /dev/socket/qmux_gps
- # Camera Recording # Camera Recording
- mkdir /dev/video mkdir /dev/video
- symlink /dev/video32 /dev/video/venus_dec symlink /dev/video32 /dev/video/venus_dec
- symlink /dev/video33 /dev/video/venus_enc symlink /dev/video33 /dev/video/venus_enc
- # Allow QMUX daemon to assign port open wait time # Allow QMUX daemon to assign port open wait time
- chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m
- #For bridgemgr daemon to inform the USB driver of the cor #For bridgemgr daemon to inform the USB driver of the cor
- chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio
- # Assign TCP buffer thresholds to be ceiling value of tec # Assign TCP buffer thresholds to be ceiling value of tec
- # Increased technology maximums should be reflected here. # Increased technology maximums should be reflected here.
- write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/rmem_max 2097152
- write /proc/sys/net/core/wmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152
- # Define TCP buffer sizes # Define TCP buffer sizes
- # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial,
- setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409 setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409
- setprop net.tcp.buffersize.hspa 4094,87380,704512,409 setprop net.tcp.buffersize.hspa 4094,87380,704512,409
- setprop net.tcp.buffersize.hsupa 4094,87380,704512,409 setprop net.tcp.buffersize.hsupa 4094,87380,704512,409
- # create symlink for fb1 as HDMI # create symlink for fb1 as HDMI
- symlink /dev/graphics/fb1 /dev/graphics/hdmi symlink /dev/graphics/fb1 /dev/graphics/hdmi
- # setup permissions for fb1 related nodes # setup permissions for fb1 related nodes
- chown system graphics /sys/class/graphics/fb1/hpd chown system graphics /sys/class/graphics/fb1/hpd
- chown system graphics /sys/class/graphics/fb1/vendor_name chown system graphics /sys/class/graphics/fb1/vendor_name
- chown system graphics /sys/class/graphics/fb1/product_des chown system graphics /sys/class/graphics/fb1/product_des
- chmod 0664 /sys/devices/virtual/graphics/fb1/hpd chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
- chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name
- chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc
- # To allow interfaces to get v6 address when tethering is # To allow interfaces to get v6 address when tethering is
- write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
- # Subsytem Restart # Subsytem Restart
- #adsp #adsp
- write /sys/bus/msm_subsys/devices/subsys0/restart_level " write /sys/bus/msm_subsys/devices/subsys0/restart_level "
- #modem #modem
- write /sys/bus/msm_subsys/devices/subsys1/restart_level " write /sys/bus/msm_subsys/devices/subsys1/restart_level "
- #venus #venus
- write /sys/bus/msm_subsys/devices/subsys2/restart_level " write /sys/bus/msm_subsys/devices/subsys2/restart_level "
- # Subsytem Ramdump collection <
- mkdir /data/tombstones 0777 system system <
- mkdir /data/tombstones/ramdump 0777 system system <
- restorecon_recursive /data/tombstones <
- write /sys/module/subsystem_restart/parameters/enable_ram <
- <
- # Modem logging collection <
- mkdir /data/diag_logs 0777 system system <
- chmod 666 /dev/diag <
- <
- # leds # leds
- chown system system /sys/class/leds/red/on_off_ms chown system system /sys/class/leds/red/on_off_ms
- chown system system /sys/class/leds/green/on_off_ms chown system system /sys/class/leds/green/on_off_ms
- chown system system /sys/class/leds/blue/on_off_ms chown system system /sys/class/leds/blue/on_off_ms
- chown system system /sys/class/leds/red/rgb_start chown system system /sys/class/leds/red/rgb_start
- chmod 664 /sys/class/leds/lcd-backlight/brightness chmod 664 /sys/class/leds/lcd-backlight/brightness
- on post-fs-data on post-fs-data
- mkdir /data/media 0770 media_rw media_rw mkdir /data/media 0770 media_rw media_rw
- # NFC: create data/nfc for nv storage # NFC: create data/nfc for nv storage
- mkdir /data/nfc 0770 nfc nfc mkdir /data/nfc 0770 nfc nfc
- mkdir /data/nfc/param 0770 nfc nfc mkdir /data/nfc/param 0770 nfc nfc
- # wifi # wifi
- chown wifi system /persist/wifi chown wifi system /persist/wifi
- # bluetooth # bluetooth
- mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
- # Create directory used by audio subsystem # Create directory used by audio subsystem
- mkdir /data/misc/audio 0770 audio audio mkdir /data/misc/audio 0770 audio audio
- # Create directory used by sensor subsystem # Create directory used by sensor subsystem
- mkdir /data/system 0755 system system mkdir /data/system 0755 system system
- mkdir /data/system/sensors mkdir /data/system/sensors
- chmod 755 /data/system/sensors chmod 755 /data/system/sensors
- write /data/system/sensors/settings 1 write /data/system/sensors/settings 1
- chmod 660 /data/system/sensors/settings chmod 660 /data/system/sensors/settings
- # AKM setting data # AKM setting data
- mkdir /data/misc/sensors mkdir /data/misc/sensors
- chmod 775 /data/misc/sensors chmod 775 /data/misc/sensors
- # Sensor # Sensor
- mkdir /persist/sensors mkdir /persist/sensors
- chmod 775 /persist/sensors chmod 775 /persist/sensors
- # communicate with mpdecision and thermald # communicate with mpdecision and thermald
- mkdir /dev/socket/mpdecision 2770 root system mkdir /dev/socket/mpdecision 2770 root system
- # save rtc time offsets # save rtc time offsets
- mkdir /data/system/time 0700 system system mkdir /data/system/time 0700 system system
- # Ecc_Handler qcril.db # Ecc_Handler qcril.db
- mkdir /data/misc/radio 0770 radio radio mkdir /data/misc/radio 0770 radio radio
- symlink /system/etc/qcril.db /data/misc/radio/qcril.db symlink /system/etc/qcril.db /data/misc/radio/qcril.db
- setprop vold.post_fs_data_done 1 setprop vold.post_fs_data_done 1
- # Set the CPU Freq Sampling rates # Set the CPU Freq Sampling rates
- write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
- write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
- write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
- write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
- write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r
- write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d
- write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
- write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
- write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
- write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr
- write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
- write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
- write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
- chown root.system /sys/devices/system/cpu/mfreq chown root.system /sys/devices/system/cpu/mfreq
- chmod 220 /sys/devices/system/cpu/mfreq chmod 220 /sys/devices/system/cpu/mfreq
- chown root.system /sys/devices/system/cpu/cpu1/online chown root.system /sys/devices/system/cpu/cpu1/online
- chown root.system /sys/devices/system/cpu/cpu2/online chown root.system /sys/devices/system/cpu/cpu2/online
- chown root.system /sys/devices/system/cpu/cpu3/online chown root.system /sys/devices/system/cpu/cpu3/online
- chmod 664 /sys/devices/system/cpu/cpu1/online chmod 664 /sys/devices/system/cpu/cpu1/online
- chmod 664 /sys/devices/system/cpu/cpu2/online chmod 664 /sys/devices/system/cpu/cpu2/online
- chmod 664 /sys/devices/system/cpu/cpu3/online chmod 664 /sys/devices/system/cpu/cpu3/online
- write /dev/cpuctl/apps/cpu.notify_on_migrate 1 write /dev/cpuctl/apps/cpu.notify_on_migrate 1
- on charger on charger
- # Booting modem # Booting modem
- wait /dev/block/platform/msm_sdcc.1/by-name/modem wait /dev/block/platform/msm_sdcc.1/by-name/modem
- mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem / mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /
- wait /dev/block/platform/msm_sdcc.1/by-name/system wait /dev/block/platform/msm_sdcc.1/by-name/system
- mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system
- start rmt_storage start rmt_storage
- start irsc_util start irsc_util
- # Enable Power modes and set the CPU Freq Sampling rates # Enable Power modes and set the CPU Freq Sampling rates
- write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
- write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
- write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
- write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
- write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
- write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
- write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
- write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
- write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
- write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu1/online 0
- write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu2/online 0
- write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu3/online 0
- start mpdecision start mpdecision
- on property:init.svc.wpa_supplicant=stopped on property:init.svc.wpa_supplicant=stopped
- stop dhcpcd stop dhcpcd
- on property:sys.boot_completed=1 on property:sys.boot_completed=1
- # Enable Power modes # Enable Power modes
- write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
- write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
- write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
- write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
- write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl
- write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl
- write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl
- write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl
- start mpdecision start mpdecision
- # enable slimport detection # enable slimport detection
- write /sys/module/slimport/parameters/enable_irq 1 write /sys/module/slimport/parameters/enable_irq 1
- # enable logging of wake up reasons to kernel logs <
- write /sys/module/msm_show_resume_irq/parameters/debug_ma <
- <
- on property:ro.debuggable=1 <
- start ssr_ramdump <
- <
- service rmt_storage /system/bin/rmt_storage service rmt_storage /system/bin/rmt_storage
- class core class core
- user root user root
- group system group system
- service bridgemgrd /system/bin/bridgemgrd service bridgemgrd /system/bin/bridgemgrd
- class main class main
- user radio user radio
- group radio group radio
- # QMUX must be in multiple groups to support external process # QMUX must be in multiple groups to support external process
- service qmuxd /system/bin/qmuxd service qmuxd /system/bin/qmuxd
- class main class main
- user radio user radio
- group radio audio bluetooth gps group radio audio bluetooth gps
- service netmgrd /system/bin/netmgrd service netmgrd /system/bin/netmgrd
- class main class main
- group radio group radio
- # QCOM sensor # QCOM sensor
- service sensors /system/bin/sensors.qcom service sensors /system/bin/sensors.qcom
- class main class main
- user root user root
- group root group root
- service irsc_util /system/bin/irsc_util "/etc/sec_config" service irsc_util /system/bin/irsc_util "/etc/sec_config"
- class main class main
- user root user root
- oneshot oneshot
- service p2p_supplicant /system/bin/wpa_supplicant \ service p2p_supplicant /system/bin/wpa_supplicant \
- -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ | -I/system/etc/wifi/wpa_supplicant_overlay.conf \
- > -O/data/misc/wifi/sockets -N \
- -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
- -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \
- -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
- -g@android:wpa_wlan0 -g@android:wpa_wlan0
- # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
- # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
- # user wifi # user wifi
- # group wifi inet keystore # group wifi inet keystore
- class main class main
- socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
- disabled disabled
- oneshot oneshot
- service wpa_supplicant /system/bin/wpa_supplicant \ service wpa_supplicant /system/bin/wpa_supplicant \
- -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
- > -O/data/misc/wifi/sockets \
- -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
- # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
- # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
- # user wifi # user wifi
- # group wifi inet keystore # group wifi inet keystore
- class main class main
- socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
- disabled disabled
- oneshot oneshot
- service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service dhcpcd_p2p /system/bin/dhcpcd -aABKL service dhcpcd_p2p /system/bin/dhcpcd -aABKL
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service iprenew_wlan0 /system/bin/dhcpcd -n service iprenew_wlan0 /system/bin/dhcpcd -n
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service iprenew_p2p /system/bin/dhcpcd -n service iprenew_p2p /system/bin/dhcpcd -n
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL <
- class late_start <
- disabled <
- oneshot <
- <
- service iprenew_eth0 /system/bin/dhcpcd -n <
- class late_start <
- disabled <
- oneshot <
- <
- service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service iprenew_bt-pan /system/bin/dhcpcd -n service iprenew_bt-pan /system/bin/dhcpcd -n
- disabled disabled
- oneshot oneshot
- service qseecomd /system/bin/qseecomd service qseecomd /system/bin/qseecomd
- class late_start class late_start
- user system user system
- group system group system
- # virtual sdcard daemon running as media_rw (1023) # virtual sdcard daemon running as media_rw (1023)
- service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me
- class late_start class late_start
- service charger /sbin/healthd -c | service charger /charger
- class charger class charger
- critical <
- seclabel u:r:healthd:s0 seclabel u:r:healthd:s0
- service qcamerasvr /system/bin/mm-qcamera-daemon service qcamerasvr /system/bin/mm-qcamera-daemon
- class late_start class late_start
- user camera user camera
- group camera system inet input group camera system inet input
- service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu
- class main class main
- user bluetooth user bluetooth
- group system bluetooth group system bluetooth
- oneshot oneshot
- # bugreport is triggered by holding down volume down, volume # bugreport is triggered by holding down volume down, volume
- service bugreport /system/bin/dumpstate -d -p -B \ service bugreport /system/bin/dumpstate -d -p -B \
- -o /data/data/com.android.shell/files/bugreports/bugr -o /data/data/com.android.shell/files/bugreports/bugr
- class main class main
- disabled disabled
- oneshot oneshot
- keycodes 114 115 116 keycodes 114 115 116
- service mpdecision /system/bin/mpdecision --no_sleep --avg_co service mpdecision /system/bin/mpdecision --no_sleep --avg_co
- class main class main
- user root user root
- group root system group root system
- disabled disabled
- service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc
- class main class main
- > disabled
- user root user root
- group root group root
- disabled <
- service thermal-engine /system/bin/thermal-engine-hh service thermal-engine /system/bin/thermal-engine-hh
- class main class main
- user root user root
- group radio system group radio system
- service vss_init /vendor/bin/vss_init service vss_init /vendor/bin/vss_init
- class late_start class late_start
- user root user root
- group root group root
- disabled disabled
- service time_daemon /system/bin/time_daemon service time_daemon /system/bin/time_daemon
- class late_start class late_start
- user root user root
- group root group root
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$
- sykopompos@syko-server-299:~/working$ diff -y n5lpre/Lboot/ramdisk/init.hammerhead.rc forport/init.hammerhead.rc
- # #
- # Copyright 2013 The Android Open Source Project # Copyright 2013 The Android Open Source Project
- # #
- # Licensed under the Apache License, Version 2.0 (the "Licens # Licensed under the Apache License, Version 2.0 (the "Licens
- # you may not use this file except in compliance with the Lic # you may not use this file except in compliance with the Lic
- # You may obtain a copy of the License at # You may obtain a copy of the License at
- # #
- # http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
- # #
- # Unless required by applicable law or agreed to in writing, # Unless required by applicable law or agreed to in writing,
- # distributed under the License is distributed on an "AS IS" # distributed under the License is distributed on an "AS IS"
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expres
- # See the License for the specific language governing permiss # See the License for the specific language governing permiss
- # limitations under the License. # limitations under the License.
- # #
- import init.hammerhead.usb.rc import init.hammerhead.usb.rc
- import init.hammerhead_svelte.rc <
- on early-init on early-init
- mount debugfs debugfs /sys/kernel/debug mount debugfs debugfs /sys/kernel/debug
- chown system system /sys/kernel/debug/kgsl/proc chown system system /sys/kernel/debug/kgsl/proc
- on init on init
- # See storage config details at http://source.android.com # See storage config details at http://source.android.com
- mkdir /mnt/shell/emulated 0700 shell shell mkdir /mnt/shell/emulated 0700 shell shell
- mkdir /storage/emulated 0555 root root mkdir /storage/emulated 0555 root root
- # Set permissions for persist partition # Set permissions for persist partition
- mkdir /persist 0771 system system mkdir /persist 0771 system system
- mkdir /firmware 0771 system system mkdir /firmware 0771 system system
- export EXTERNAL_STORAGE /storage/emulated/legacy export EXTERNAL_STORAGE /storage/emulated/legacy
- export EMULATED_STORAGE_SOURCE /mnt/shell/emulated export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
- export EMULATED_STORAGE_TARGET /storage/emulated export EMULATED_STORAGE_TARGET /storage/emulated
- # Support legacy paths # Support legacy paths
- symlink /storage/emulated/legacy /sdcard symlink /storage/emulated/legacy /sdcard
- symlink /storage/emulated/legacy /mnt/sdcard symlink /storage/emulated/legacy /mnt/sdcard
- symlink /storage/emulated/legacy /storage/sdcard0 symlink /storage/emulated/legacy /storage/sdcard0
- symlink /mnt/shell/emulated/0 /storage/emulated/legacy symlink /mnt/shell/emulated/0 /storage/emulated/legacy
- on fs on fs
- mount_all ./fstab.hammerhead mount_all ./fstab.hammerhead
- restorecon_recursive /persist restorecon_recursive /persist
- setprop ro.crypto.fuse_sdcard true setprop ro.crypto.fuse_sdcard true
- write /sys/kernel/boot_adsp/boot 1 write /sys/kernel/boot_adsp/boot 1
- on early-boot on early-boot
- # set RLIMIT_MEMLOCK to 64MB # set RLIMIT_MEMLOCK to 64MB
- setrlimit 8 67108864 67108864 setrlimit 8 67108864 67108864
- on boot on boot
- # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK # Enable DEBUG_SUSPEND, DEBUG_EXIT_SUSPEND, and DEBUG_WAK
- write /sys/module/wakelock/parameters/debug_mask 7 write /sys/module/wakelock/parameters/debug_mask 7
- # bluetooth # bluetooth
- chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/ty
- chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/st
- chmod 0660 /sys/class/rfkill/rfkill0/state chmod 0660 /sys/class/rfkill/rfkill0/state
- # bluetooth LPM # bluetooth LPM
- chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm chown bluetooth net_bt_stack /proc/bluetooth/sleep/lpm
- chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit chown bluetooth net_bt_stack /proc/bluetooth/sleep/btwrit
- #bluetooth UART dev #bluetooth UART dev
- chown bluetooth net_bt_stack /sys/devices/platform/msm_se chown bluetooth net_bt_stack /sys/devices/platform/msm_se
- chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
- #Create QMUX deamon socket area #Create QMUX deamon socket area
- mkdir /dev/socket/qmux_radio 0770 radio radio mkdir /dev/socket/qmux_radio 0770 radio radio
- chmod 2770 /dev/socket/qmux_radio chmod 2770 /dev/socket/qmux_radio
- mkdir /dev/socket/qmux_audio 0770 media audio mkdir /dev/socket/qmux_audio 0770 media audio
- chmod 2770 /dev/socket/qmux_audio chmod 2770 /dev/socket/qmux_audio
- mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth
- chmod 2770 /dev/socket/qmux_bluetooth chmod 2770 /dev/socket/qmux_bluetooth
- mkdir /dev/socket/qmux_gps 0770 gps gps mkdir /dev/socket/qmux_gps 0770 gps gps
- chmod 2770 /dev/socket/qmux_gps chmod 2770 /dev/socket/qmux_gps
- # Camera Recording # Camera Recording
- mkdir /dev/video mkdir /dev/video
- symlink /dev/video32 /dev/video/venus_dec symlink /dev/video32 /dev/video/venus_dec
- symlink /dev/video33 /dev/video/venus_enc symlink /dev/video33 /dev/video/venus_enc
- # Allow QMUX daemon to assign port open wait time # Allow QMUX daemon to assign port open wait time
- chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m chown radio radio /sys/devices/virtual/hsicctl/hsicctl0/m
- #For bridgemgr daemon to inform the USB driver of the cor #For bridgemgr daemon to inform the USB driver of the cor
- chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio chown radio radio /sys/class/android_usb/f_rmnet_smd_sdio
- # Assign TCP buffer thresholds to be ceiling value of tec # Assign TCP buffer thresholds to be ceiling value of tec
- # Increased technology maximums should be reflected here. # Increased technology maximums should be reflected here.
- write /proc/sys/net/core/rmem_max 2097152 write /proc/sys/net/core/rmem_max 2097152
- write /proc/sys/net/core/wmem_max 2097152 write /proc/sys/net/core/wmem_max 2097152
- # Define TCP buffer sizes # Define TCP buffer sizes
- # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, # ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial,
- setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409 setprop net.tcp.buffersize.hsdpa 4094,87380,704512,409
- setprop net.tcp.buffersize.hspa 4094,87380,704512,409 setprop net.tcp.buffersize.hspa 4094,87380,704512,409
- setprop net.tcp.buffersize.hsupa 4094,87380,704512,409 setprop net.tcp.buffersize.hsupa 4094,87380,704512,409
- # create symlink for fb1 as HDMI # create symlink for fb1 as HDMI
- symlink /dev/graphics/fb1 /dev/graphics/hdmi symlink /dev/graphics/fb1 /dev/graphics/hdmi
- # setup permissions for fb1 related nodes # setup permissions for fb1 related nodes
- chown system graphics /sys/class/graphics/fb1/hpd chown system graphics /sys/class/graphics/fb1/hpd
- chown system graphics /sys/class/graphics/fb1/vendor_name chown system graphics /sys/class/graphics/fb1/vendor_name
- chown system graphics /sys/class/graphics/fb1/product_des chown system graphics /sys/class/graphics/fb1/product_des
- chmod 0664 /sys/devices/virtual/graphics/fb1/hpd chmod 0664 /sys/devices/virtual/graphics/fb1/hpd
- chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name chmod 0664 /sys/devices/virtual/graphics/fb1/vendor_name
- chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc chmod 0664 /sys/devices/virtual/graphics/fb1/product_desc
- # To allow interfaces to get v6 address when tethering is # To allow interfaces to get v6 address when tethering is
- write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2
- write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2
- # Subsytem Restart # Subsytem Restart
- #adsp #adsp
- write /sys/bus/msm_subsys/devices/subsys0/restart_level " write /sys/bus/msm_subsys/devices/subsys0/restart_level "
- #modem #modem
- write /sys/bus/msm_subsys/devices/subsys1/restart_level " write /sys/bus/msm_subsys/devices/subsys1/restart_level "
- #venus #venus
- write /sys/bus/msm_subsys/devices/subsys2/restart_level " write /sys/bus/msm_subsys/devices/subsys2/restart_level "
- # Subsytem Ramdump collection <
- mkdir /data/tombstones 0777 system system <
- mkdir /data/tombstones/ramdump 0777 system system <
- restorecon_recursive /data/tombstones <
- write /sys/module/subsystem_restart/parameters/enable_ram <
- <
- # Modem logging collection <
- mkdir /data/diag_logs 0777 system system <
- chmod 666 /dev/diag <
- <
- # leds # leds
- chown system system /sys/class/leds/red/on_off_ms chown system system /sys/class/leds/red/on_off_ms
- chown system system /sys/class/leds/green/on_off_ms chown system system /sys/class/leds/green/on_off_ms
- chown system system /sys/class/leds/blue/on_off_ms chown system system /sys/class/leds/blue/on_off_ms
- chown system system /sys/class/leds/red/rgb_start chown system system /sys/class/leds/red/rgb_start
- chmod 664 /sys/class/leds/lcd-backlight/brightness chmod 664 /sys/class/leds/lcd-backlight/brightness
- on post-fs-data on post-fs-data
- mkdir /data/media 0770 media_rw media_rw mkdir /data/media 0770 media_rw media_rw
- # NFC: create data/nfc for nv storage # NFC: create data/nfc for nv storage
- mkdir /data/nfc 0770 nfc nfc mkdir /data/nfc 0770 nfc nfc
- mkdir /data/nfc/param 0770 nfc nfc mkdir /data/nfc/param 0770 nfc nfc
- # wifi # wifi
- chown wifi system /persist/wifi chown wifi system /persist/wifi
- # bluetooth # bluetooth
- mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
- # Create directory used by audio subsystem # Create directory used by audio subsystem
- mkdir /data/misc/audio 0770 audio audio mkdir /data/misc/audio 0770 audio audio
- # Create directory used by sensor subsystem # Create directory used by sensor subsystem
- mkdir /data/system 0755 system system mkdir /data/system 0755 system system
- mkdir /data/system/sensors mkdir /data/system/sensors
- chmod 755 /data/system/sensors chmod 755 /data/system/sensors
- write /data/system/sensors/settings 1 write /data/system/sensors/settings 1
- chmod 660 /data/system/sensors/settings chmod 660 /data/system/sensors/settings
- # AKM setting data # AKM setting data
- mkdir /data/misc/sensors mkdir /data/misc/sensors
- chmod 775 /data/misc/sensors chmod 775 /data/misc/sensors
- # Sensor # Sensor
- mkdir /persist/sensors mkdir /persist/sensors
- chmod 775 /persist/sensors chmod 775 /persist/sensors
- # communicate with mpdecision and thermald # communicate with mpdecision and thermald
- mkdir /dev/socket/mpdecision 2770 root system mkdir /dev/socket/mpdecision 2770 root system
- # save rtc time offsets # save rtc time offsets
- mkdir /data/system/time 0700 system system mkdir /data/system/time 0700 system system
- # Ecc_Handler qcril.db # Ecc_Handler qcril.db
- mkdir /data/misc/radio 0770 radio radio mkdir /data/misc/radio 0770 radio radio
- symlink /system/etc/qcril.db /data/misc/radio/qcril.db symlink /system/etc/qcril.db /data/misc/radio/qcril.db
- setprop vold.post_fs_data_done 1 setprop vold.post_fs_data_done 1
- # Set the CPU Freq Sampling rates # Set the CPU Freq Sampling rates
- write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
- write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
- write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
- write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
- write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r write /sys/devices/system/cpu/cpufreq/ondemand/sampling_r
- write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d write /sys/devices/system/cpu/cpufreq/ondemand/sampling_d
- write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
- write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
- write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe write /sys/devices/system/cpu/cpufreq/ondemand/down_diffe
- write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr write /sys/devices/system/cpu/cpufreq/ondemand/optimal_fr
- write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq write /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
- write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho write /sys/devices/system/cpu/cpufreq/ondemand/up_thresho
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
- write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
- chown root.system /sys/devices/system/cpu/mfreq chown root.system /sys/devices/system/cpu/mfreq
- chmod 220 /sys/devices/system/cpu/mfreq chmod 220 /sys/devices/system/cpu/mfreq
- chown root.system /sys/devices/system/cpu/cpu1/online chown root.system /sys/devices/system/cpu/cpu1/online
- chown root.system /sys/devices/system/cpu/cpu2/online chown root.system /sys/devices/system/cpu/cpu2/online
- chown root.system /sys/devices/system/cpu/cpu3/online chown root.system /sys/devices/system/cpu/cpu3/online
- chmod 664 /sys/devices/system/cpu/cpu1/online chmod 664 /sys/devices/system/cpu/cpu1/online
- chmod 664 /sys/devices/system/cpu/cpu2/online chmod 664 /sys/devices/system/cpu/cpu2/online
- chmod 664 /sys/devices/system/cpu/cpu3/online chmod 664 /sys/devices/system/cpu/cpu3/online
- write /dev/cpuctl/apps/cpu.notify_on_migrate 1 write /dev/cpuctl/apps/cpu.notify_on_migrate 1
- on charger on charger
- # Booting modem # Booting modem
- wait /dev/block/platform/msm_sdcc.1/by-name/modem wait /dev/block/platform/msm_sdcc.1/by-name/modem
- mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem / mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /
- wait /dev/block/platform/msm_sdcc.1/by-name/system wait /dev/block/platform/msm_sdcc.1/by-name/system
- mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system
- start rmt_storage start rmt_storage
- start irsc_util start irsc_util
- # Enable Power modes and set the CPU Freq Sampling rates # Enable Power modes and set the CPU Freq Sampling rates
- write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
- write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
- write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
- write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
- write /sys/module/msm_thermal/core_control/enabled 0 write /sys/module/msm_thermal/core_control/enabled 0
- write /sys/devices/system/cpu/cpu1/online 1 write /sys/devices/system/cpu/cpu1/online 1
- write /sys/devices/system/cpu/cpu2/online 1 write /sys/devices/system/cpu/cpu2/online 1
- write /sys/devices/system/cpu/cpu3/online 1 write /sys/devices/system/cpu/cpu3/online 1
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu0/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu1/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu2/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern write /sys/devices/system/cpu/cpu3/cpufreq/scaling_govern
- write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fr
- write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fr
- write /sys/module/msm_thermal/core_control/enabled 1 write /sys/module/msm_thermal/core_control/enabled 1
- write /sys/devices/system/cpu/cpu1/online 0 write /sys/devices/system/cpu/cpu1/online 0
- write /sys/devices/system/cpu/cpu2/online 0 write /sys/devices/system/cpu/cpu2/online 0
- write /sys/devices/system/cpu/cpu3/online 0 write /sys/devices/system/cpu/cpu3/online 0
- start mpdecision start mpdecision
- on property:init.svc.wpa_supplicant=stopped on property:init.svc.wpa_supplicant=stopped
- stop dhcpcd stop dhcpcd
- on property:sys.boot_completed=1 on property:sys.boot_completed=1
- # Enable Power modes # Enable Power modes
- write /sys/module/lpm_resources/enable_low_power/l2 2 write /sys/module/lpm_resources/enable_low_power/l2 2
- write /sys/module/lpm_resources/enable_low_power/pxo 1 write /sys/module/lpm_resources/enable_low_power/pxo 1
- write /sys/module/lpm_resources/enable_low_power/vdd_dig write /sys/module/lpm_resources/enable_low_power/vdd_dig
- write /sys/module/lpm_resources/enable_low_power/vdd_mem write /sys/module/lpm_resources/enable_low_power/vdd_mem
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu0/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu1/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspe
- write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_ write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_
- write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu0/standalone_power_col write /sys/module/pm_8x60/modes/cpu0/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu1/standalone_power_col write /sys/module/pm_8x60/modes/cpu1/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu2/standalone_power_col write /sys/module/pm_8x60/modes/cpu2/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu3/standalone_power_col write /sys/module/pm_8x60/modes/cpu3/standalone_power_col
- write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu0/retention/idle_enabl
- write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu1/retention/idle_enabl
- write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu2/retention/idle_enabl
- write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl write /sys/module/pm_8x60/modes/cpu3/retention/idle_enabl
- start mpdecision start mpdecision
- # enable slimport detection # enable slimport detection
- write /sys/module/slimport/parameters/enable_irq 1 write /sys/module/slimport/parameters/enable_irq 1
- # enable logging of wake up reasons to kernel logs <
- write /sys/module/msm_show_resume_irq/parameters/debug_ma <
- <
- on property:ro.debuggable=1 <
- start ssr_ramdump <
- <
- service rmt_storage /system/bin/rmt_storage service rmt_storage /system/bin/rmt_storage
- class core class core
- user root user root
- group system group system
- service bridgemgrd /system/bin/bridgemgrd service bridgemgrd /system/bin/bridgemgrd
- class main class main
- user radio user radio
- group radio group radio
- # QMUX must be in multiple groups to support external process # QMUX must be in multiple groups to support external process
- service qmuxd /system/bin/qmuxd service qmuxd /system/bin/qmuxd
- class main class main
- user radio user radio
- group radio audio bluetooth gps group radio audio bluetooth gps
- service netmgrd /system/bin/netmgrd service netmgrd /system/bin/netmgrd
- class main class main
- group radio group radio
- # QCOM sensor # QCOM sensor
- service sensors /system/bin/sensors.qcom service sensors /system/bin/sensors.qcom
- class main class main
- user root user root
- group root group root
- service irsc_util /system/bin/irsc_util "/etc/sec_config" service irsc_util /system/bin/irsc_util "/etc/sec_config"
- class main class main
- user root user root
- oneshot oneshot
- service p2p_supplicant /system/bin/wpa_supplicant \ service p2p_supplicant /system/bin/wpa_supplicant \
- -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf -N \ | -I/system/etc/wifi/wpa_supplicant_overlay.conf \
- > -O/data/misc/wifi/sockets -N \
- -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
- -I/system/etc/wifi/p2p_supplicant_overlay.conf \ -I/system/etc/wifi/p2p_supplicant_overlay.conf \
- -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin
- -g@android:wpa_wlan0 -g@android:wpa_wlan0
- # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
- # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
- # user wifi # user wifi
- # group wifi inet keystore # group wifi inet keystore
- class main class main
- socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
- disabled disabled
- oneshot oneshot
- service wpa_supplicant /system/bin/wpa_supplicant \ service wpa_supplicant /system/bin/wpa_supplicant \
- -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
- -I/system/etc/wifi/wpa_supplicant_overlay.conf \ -I/system/etc/wifi/wpa_supplicant_overlay.conf \
- > -O/data/misc/wifi/sockets \
- -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
- # we will start as root and wpa_supplicant will switch # we will start as root and wpa_supplicant will switch
- # after setting up the capabilities required for WEXT # after setting up the capabilities required for WEXT
- # user wifi # user wifi
- # group wifi inet keystore # group wifi inet keystore
- class main class main
- socket wpa_wlan0 dgram 660 wifi wifi socket wpa_wlan0 dgram 660 wifi wifi
- disabled disabled
- oneshot oneshot
- service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service dhcpcd_p2p /system/bin/dhcpcd -aABKL service dhcpcd_p2p /system/bin/dhcpcd -aABKL
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service iprenew_wlan0 /system/bin/dhcpcd -n service iprenew_wlan0 /system/bin/dhcpcd -n
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service iprenew_p2p /system/bin/dhcpcd -n service iprenew_p2p /system/bin/dhcpcd -n
- class late_start class late_start
- disabled disabled
- oneshot oneshot
- service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL <
- class late_start <
- disabled <
- oneshot <
- <
- service iprenew_eth0 /system/bin/dhcpcd -n <
- class late_start <
- disabled <
- oneshot <
- <
- service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
- disabled disabled
- oneshot oneshot
- service iprenew_bt-pan /system/bin/dhcpcd -n service iprenew_bt-pan /system/bin/dhcpcd -n
- disabled disabled
- oneshot oneshot
- service qseecomd /system/bin/qseecomd service qseecomd /system/bin/qseecomd
- class late_start class late_start
- user system user system
- group system group system
- # virtual sdcard daemon running as media_rw (1023) # virtual sdcard daemon running as media_rw (1023)
- service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/me
- class late_start class late_start
- service charger /sbin/healthd -c | service charger /charger
- class charger class charger
- critical <
- seclabel u:r:healthd:s0 seclabel u:r:healthd:s0
- service qcamerasvr /system/bin/mm-qcamera-daemon service qcamerasvr /system/bin/mm-qcamera-daemon
- class late_start class late_start
- user camera user camera
- group camera system inet input group camera system inet input
- service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu service bdAddrLoader /system/bin/bdAddrLoader -f /persist/blu
- class main class main
- user bluetooth user bluetooth
- group system bluetooth group system bluetooth
- oneshot oneshot
- # bugreport is triggered by holding down volume down, volume # bugreport is triggered by holding down volume down, volume
- service bugreport /system/bin/dumpstate -d -p -B \ service bugreport /system/bin/dumpstate -d -p -B \
- -o /data/data/com.android.shell/files/bugreports/bugr -o /data/data/com.android.shell/files/bugreports/bugr
- class main class main
- disabled disabled
- oneshot oneshot
- keycodes 114 115 116 keycodes 114 115 116
- service mpdecision /system/bin/mpdecision --no_sleep --avg_co service mpdecision /system/bin/mpdecision --no_sleep --avg_co
- class main class main
- user root user root
- group root system group root system
- disabled disabled
- service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc service ssr_ramdump /system/bin/subsystem_ramdump -m -t emmc
- class main class main
- > disabled
- user root user root
- group root group root
- disabled <
- service thermal-engine /system/bin/thermal-engine-hh service thermal-engine /system/bin/thermal-engine-hh
- class main class main
- user root user root
- group radio system group radio system
- service vss_init /vendor/bin/vss_init service vss_init /vendor/bin/vss_init
- class late_start class late_start
- user root user root
- group root group root
- disabled disabled
- service time_daemon /system/bin/time_daemon service time_daemon /system/bin/time_daemon
- class late_start class late_start
- user root user root
- group root group root
- sykopompos@syko-server-299:~/working$
Advertisement
Add Comment
Please, Sign In to add comment