blob: ec21a4dd7d91624ac64d62136a1ad90eb07637fd [file] [log] [blame]
import init.flounder.usb.rc
on init
start watchdogd
# See storage config details at http://source.android.com/tech/storage/
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /storage/emulated 0555 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
mkdir /data/nvcam 0700 media camera
# NFC: create data/nfc for nv storage
mkdir /data/nfc 0770 nfc nfc
mkdir /data/nfc/param 0770 nfc nfc
# for GPS files
mkdir /data/gps 0770 gps system
setprop vold.post_fs_data_done 1
on boot
# bluetooth
# change back to bluetooth from system
chown bluetooth net_bt_stack /data/misc/bluetooth
# power down interface
write /sys/class/rfkill/rfkill0/state 0
mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
# Set up kernel tracing, but disable it by default
chmod 0222 /sys/kernel/debug/tracing/trace_marker
write /sys/kernel/debug/tracing/tracing_on 0
write /sys/module/tegra3_emc/parameters/emc_enable 0
#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 1000000
#write /sys/module/cpu_tegra/parameters/cpu_user_cap 700000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 510000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 510000
#write /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 700000
#write /sys/devices/system/cpu/cpu1/cpufreq/scaling_setspeed 700000
#write /sys/devices/system/cpu/cpufreq/interactive/boost_factor 2
#write /sys/devices/system/cpu/cpufreq/interactive/sustain_load 80
write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable 0
# Enable CC4
write /sys/devices/system/cpu/cpu0/cpuidle/state1/disabled 0
write /sys/devices/system/cpu/cpu1/cpuidle/state1/disabled 0
chmod 0444 /sys/kernel/debug/bq2419x-regs
write /proc/sys/net/core/rmem_max 1048576
write /proc/sys/net/core/wmem_max 1048576
on fs
mount_all /fstab.flounder
setprop ro.crypto.fuse_sdcard true
# modem init
mkdir /data/qcks 0770 system system
mkdir /data/efs 0771 system system
# HACK: prevent suspend, pending fixes
write /sys/power/wake_lock VolantisHackPreventSuspend
# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
service battery_charger /charger
class charger
seclabel u:r:healthd:s0
# Set watchdog timer to 30 seconds and pet it every 10 seconds to get a 20 second margin
service watchdogd /sbin/watchdogd 10 20
class core
disabled
seclabel u:r:watchdogd:s0
# on userdebug and eng builds, enable kgdb on the serial console
on property:ro.debuggable=1
write /sys/module/kgdboc/parameters/kgdboc ttyFIQ0
write /sys/module/fiq_debugger/parameters/kgdb_enable 1
# for loading correct gps hal share libraries
on property:ro.boot.baseband=N/A
setprop ro.hardware.gps bcm47521
enable gpsd
on property:ro.boot.baseband=T1.0.40.30.20140424\r
write /sys/module/bcmdhd/parameters/nvram_path /system/etc/wifi/bcmdhd_lte.cal
on property:ro.baseband=unknown
setprop ro.hardware.gps bcm47521
enable gpsd
# for telephony function
on property:ro.boot.baseband=N/A
setprop ro.radio.noril true
stop ril-daemon
on property:ro.hw.ril.baseband=2
stop ril-daemon
mkdir /data/qcks/mdm 0770 system system
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio
setprop ro.baseband.arch mdm
start qmuxd
start netmgrd
setprop rild.libpath /system/vendor/lib64/libril-qc-qmi-1.so
setprop rild.libargs "-e wwan0"
start ril-daemon
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -B \
-o /data/data/com.android.shell/files/bugreports/bugreport
class late_start
disabled
oneshot
keycodes 114 115 116
service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/p2p_supplicant_overlay.conf \
-puse_p2p_group_interface=1p2p_device=1 \
-m/data/misc/wifi/p2p_supplicant.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class late_start
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service gpsd /system/bin/glgps -c /system/etc/gpsconfig.xml
class late_start
disabled
user gps
socket gps seqpacket 0660 gps system
group system inet sdcard_rw sdcard_r
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
class late_start
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
class main
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class main
disabled
oneshot
service dhcpcd_bt-pan /system/bin/dhcpcd -aABDKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class main
disabled
oneshot
service kickstart /system/vendor/bin/qcks -i /vendor/firmware/mdm/image/ -r /data/qcks/mdm/
class main
user system
group system
oneshot
service qmuxd /system/vendor/bin/qmuxd
class main
disabled
user system
group system radio
service netmgrd /system/vendor/bin/netmgrd
class main
disabled
group system radio