[Samsung Galaxy S Duos] bknightx3:
u0_a76@kylessopen:/ $ su

root@kylessopen:/ # cat /init.qcom.rc

import init.qcom.usb.rc

import init.qcom.bt.rc

on early-init

mount debugfs debugfs /sys/kernel/debug

on init

write /proc/sys/kernel/randomize_va_space 1

export EXTERNAL_STORAGE /storage/emulated/legacy

export EMULATED_STORAGE_SOURCE /mnt/shell/emulated

export EMULATED_STORAGE_TARGET /storage/emulated

export SECONDARY_STORAGE /storage/sdcard0

# Setup storage

mkdir /mnt/shell/emulated 0700 shell shell

mkdir /storage/emulated 0555 root root

mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw

mkdir /mnt/media_rw/usbdisk0 0700 media_rw media_rw

mkdir /storage/sdcard0 0700 root root

mkdir /storage/usbdisk0 0700 root root

# Support legacy paths

symlink /storage/emulated/legacy /sdcard

symlink /storage/emulated/legacy /mnt/sdcard

symlink /mnt/shell/emulated/0 /storage/emulated/legacy

symlink /storage/sdcard0 /mnt/sd-ext

symlink /storage/usbdisk0 /mnt/usbdisk

mkdir /persist

mkdir /efs

mkdir /hidden

on fs

# Mount partitions

mount_all /fstab.qcom

setprop ro.crypto.fuse_sdcard true

# zRAM

swapon_all fstab.qcom

on boot

# Bluetooth

exec system/bin/btnvtool -O

setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"

setprop bluetooth.status off

chown bluetooth bluetooth ro.bt.bdaddr_path

chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power

chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type

chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state

chown bluetooth bluetooth /proc/bluetooth/sleep/proto

chown bluetooth bluetooth /proc/bcm/sleep/proto

chown system system /sys/module/sco/parameters/disable_esco

chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set

chmod 0660 /sys/module/bluetooth_power/parameters/power

chmod 0660 /sys/module/hci_smd/parameters/hcismd_set

chmod 0660 /sys/class/rfkill/rfkill0/state

chmod 0660 /proc/bluetooth/sleep/proto

chmod 0660 /proc/bcm/sleep/proto

chown bluetooth bluetooth /dev/ttyHS0

chmod 0660 /dev/ttyHS0

chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock

chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock

chown 755 /persist

chown system radio /efs

chmod 0771 /efs

# Wi-Fi

mkdir /data/misc/wifi 0770 wifi wifi

mkdir /data/misc/wifi/sockets 0770 wifi wifi

mkdir /data/misc/wifi/wpa_supplicant 0775 wifi wifi

mkdir /data/misc/wifi/hostapd 0770 wifi wifi

mkdir /data/misc/dhcp 0770 dhcp dhcp

chown dhcp dhcp /data/misc/dhcp

# Compatibility module needed for ath6kl

insmod /system/lib/modules/compat.ko

# Lights

chown system system /sys/class/misc/backlightnotification/enabled

chown system system /sys/class/leds/lcd-backlight/brightness

chown system system /sys/class/leds/button-backlight/brightness

chown system camera /sys/class/camera/rear/rear_flash

chmod 0666 /sys/class/misc/backlightnotification/enabled

chmod 0660 /sys/class/leds/lcd-backlight/brightness

chmod 0660 /sys/class/leds/button-backlight/brightness

chmod 0660 /sys/class/camera/rear/rear_flash

chmod 0664 /sys/devices/virtual/sec/ts/brightness chown system system /sys/devices/virtual/sec/ts/brightness

# Sensors

chown system system /system/etc/sensors.dat

chown system system /system/etc/calib.dat

chown system system /system/etc/param.dat

chmod 0666 /system/etc/sensors.dat

chmod 0666 /system/etc/calib.dat

chmod 0666 /system/etc/param.dat

chown root system /dev/alps_io

chmod 0660 /dev/alps_io

# To allow interfaces to get v6 address when tethering is enabled

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/rmnet2/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/rmnet5/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/rmnet_sdio0/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2

write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2

# Chown polling nodes as needed from UI running on system server

chown system system /sys/devices/platform/msm_sdcc.1/polling

chown system system /sys/devices/platform/msm_sdcc.2/polling

chown system system /sys/devices/platform/msm_sdcc.3/polling

chown system system /sys/devices/platform/msm_sdcc.4/polling

‪#‎Create‬ QMUX deamon socket area

mkdir /dev/socket/radio 0770 radio radio

chmod 2770 /dev/socket/radio

mkdir /dev/socket/audio 0770 media audio

chmod 2770 /dev/socket/audio

‪#‎mkdir‬ /dev/socket/bluetooth 0770 bluetooth bluetooth

‪#‎chmod‬ 2770 /dev/socket/bluetooth

mkdir /dev/socket/qmux_radio 0770 radio radio

chmod 2770 /dev/socket/qmux_radio

mkdir /dev/socket/qmux_audio 0770 media audio

chmod 2770 /dev/socket/qmux_audio

#mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth

#chmod 2770 /dev/socket/qmux_bluetooth

setprop wifi.interface wlan0

‪#‎RIL‬ permissions

chmod 660 /dev/oncrpc/30000000:f4fc28c3

chmod 660 /dev/oncrpc/3000000e:00090000

chmod 660 /dev/oncrpc/30000003:86572c7c

chmod 660 /dev/oncrpc/30000012:00040000

chown radio:radio /dev/oncrpc/30000000:f4fc28c3

chown radio:radio /dev/oncrpc/3000000e:00090000

chown radio:radio /dev/oncrpc/30000003:86572c7c

chown radio:radio /dev/oncrpc/30000012:00040000

# Power management

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance

write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 25000

write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90

write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1

write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4

write /sys/devices/system/cpu/cpufreq/ondemand/down_differential 10

# Don't disable dmesg access for apps

write /proc/sys/kernel/dmesg_restrict 0

# TelephonyManager.java requires this

chmod 0644 /proc/cmdline

on post-fs-data

# Create log system

mkdir /data/log 0775 system log

mkdir /data/misc/radio 0775 radio system

mkdir /data/radio 0770 radio radio

mkdir /data/misc/bluetooth 0770 bluetooth bluetooth

mkdir /data/media 0770 media_rw media_rw

chown media_rw media_rw /data/media

setprop vold.post_fs_data_done 1

service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p10 /dev/block/mmcblk0p11

user root

disabled

on property:ro.boot.emmc=true

start rmt_storage

service abtfilt /system/bin/abtfilt -d -z -n -q -v -s -w wlan0

class late_start

user bluetooth

group bluetooth net_bt_admin inet net_admin net_raw

disabled

oneshot

service wpa_supplicant /system/bin/wpa_supplicant \

-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \

-I/system/etc/wifi/wpa_supplicant_overlay.conf \

-O/data/misc/wifi/sockets \

-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0

class main

socket wpa_wlan0 dgram 660 wifi wifi

disabled

oneshot

service hostapd /system/bin/hostapd -dddd /data/misc/wifi/hostapd.conf

class main

user root

group root

oneshot

disabled

service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL

class main

disabled

oneshot

service iprenew_wlan0 /system/bin/dhcpcd -n

class main

disabled

oneshot

service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG

class main

disabled

oneshot

service iprenew_bt-pan /system/bin/dhcpcd -n

class main

disabled

oneshot

on property:init.svc.wpa_supplicant=stopped

stop dhcpcd

service qmuxd /system/bin/qmuxd

class core

user radio

group radio audio bluetooth gps qcom_diag

service netmgrd /system/bin/netmgrd

class main

service playlpm /system/bin/playlpm

class charger

user root

oneshot

service lpmkey /system/bin/charging_mode

class charger

user root

oneshot

service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated

class late_start

service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0

class late_start

disabled

service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/usbdisk0 /storage/usbdisk0

class late_start

disabled

root@kylessopen:/ #