| import init.flounder.usb.rc |
| |
| on init |
| # 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 |
| |
| mkdir /factory |
| |
| on post-fs-data |
| setprop vold.post_fs_data_done 1 |
| mkdir /data/misc/wifi 0770 wifi wifi |
| mkdir /data/misc/wifi/sockets 0770 wifi wifi |
| mkdir /data/misc/dhcp 0770 dhcp dhcp |
| chown dhcp dhcp /data/misc/dhcp |
| |
| 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 |
| |
| setprop ro.radio.noril true |
| |
| # 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/devices/system/cpu/cpuquiet/tegra_cpuquiet/no_lp 0 |
| |
| write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive |
| write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 624000 |
| write /sys/devices/system/cpu/cpufreq/interactive/target_loads "65 228000:75 624000:85" |
| write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 20000 |
| |
| write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/down_delay 500 |
| write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/idle_top_freq 444000 |
| write /sys/devices/system/cpu/cpuquiet/current_governor runnable |
| |
| # Enable power gating of fast CPU's |
| write /sys/module/cpuidle_t11x/parameters/cpu_power_gating_in_idle 31 |
| write /sys/module/cpuidle_t11x/parameters/slow_cluster_power_gating_noncpu 1 |
| write /sys/module/cpuidle/parameters/power_down_in_idle 1 |
| |
| write /sys/module/cpuidle_t11x/parameters/stop_mc_clk_in_idle 1 |
| write /sys/devices/system/cpu/cpuquiet/current_governor runnable |
| write /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable 1 |
| |
| # TODO: Remove this once we have dynamic frequency scaling in place |
| write /sys/devices/platform/host1x/gk20a.0/user 1 |
| write /sys/devices/platform/host1x/gk20a.0/freq_request 540000000 |
| |
| on fs |
| mount_all /fstab.flounder |
| setprop ro.crypto.fuse_sdcard true |
| |
| # 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 |
| |
| # 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 |
| |
| # 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 main |
| disabled |
| oneshot |
| keycodes 114 115 116 |
| |
| service rm_ts_service /vendor/bin/rm_ts_server |
| class main |
| user system |
| group system input |
| |
| service p2p_supplicant /system/bin/wpa_supplicant \ |
| -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ |
| -I/system/etc/wifi/p2p_supplicant_overlay.conf \ |
| -O/data/misc/wifi/sockets \ |
| -puse_p2p_group_interface=1p2p_device=1 \ |
| -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 |
| class main |
| socket wpa_wlan0 dgram 660 wifi wifi |
| 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 dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL |
| class main |
| disabled |
| oneshot |
| |
| service dhcpcd_p2p /system/bin/dhcpcd -aABKL |
| 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 |