blob: ea344e8967fbd972783a894cab21836d69e1784a [file] [log] [blame]
import init.hikey.usb.rc
on init
# mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug
# disable transparent huge pages
write /sys/kernel/mm/transparent_hugepage/enabled "never"
# Disabled virtual memory randomization
# (if randomization is enabled the AEM-JIT will have a lower cache hit rate)
write /proc/sys/kernel/randomize_va_space 0
on fs
mount_all /fstab.hikey
setprop ro.crypto.fuse_sdcard false
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
mkdir /data/misc/gatord 0700 root root
# Set SELinux security contexts for files used by lava.
restorecon_recursive /data/local/tmp/lava
on post-fs
# For legacy support
# See storage config details at http://source.android.com/tech/storage/
# since /storage is mounted on post-fs in init.rc
symlink /sdcard /storage/sdcard0
# BT LED sysfs entry
write /sys/devices/leds/leds/bt_active/trigger "hci1rx"
chmod 0666 /dev/ump
chmod 0666 /dev/ion
chmod 0666 /dev/graphics/fb0
# fake some battery state
setprop status.battery.state Slow
setprop status.battery.level 5
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
# Set Display density
setprop ro.sf.lcd_density 160
# Set supported opengles version
setprop ro.opengles.version 196608
# update cpuset now that processors are up
# Foreground should contain all cores
write /dev/cpuset/foreground/cpus 0-7
# Add foreground/boost cpuset, it is used for app launches,
# and maybe other high priority tasks in the future.
# It's to be set to whatever cores should be used
# for short term high-priority tasks.
write /dev/cpuset/foreground/boost/cpus 0-7
#background contains a small subset (generally one little core)
write /dev/cpuset/background/cpus 0
# add system-background cpuset, a new cpuset for system services
# that should not run on larger cores
# system-background is for system tasks that should only run on
# little cores, not on bigs to be used only by init
write /dev/cpuset/system-background/cpus 0-4
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
setprop ro.com.google.locationfeatures 1
# enable test harness
setprop ro.test_harness true
on property:usb_speed.switch=high
write /sys/kernel/debug/f72c0000.usb/config "0"
on property:usb_speed.switch=full
write /sys/kernel/debug/f72c0000.usb/config "1"
#userspace daemon needed for bluetooth
service uim /system/bin/uim
class main
user bluetooth
group bluetooth net_bt_admin system net_bt_stack
oneshot
service wpa_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
socket wpa_wlan0 dgram 660 wifi wifi
class main
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf wlan0
group dhcp
disabled
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf eth0
group dhcp
disabled
oneshot
service dhcpcd_usb0 /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf usb0
group dhcp
disabled
oneshot
service iprenew_usb0 /system/bin/dhcpcd -n usb0
class main
disabled
oneshot
service dhcpcd_bt-pan /system/bin/dhcpcd -dABKL -f /system/etc/dhcpcd/dhcpcd.conf bt-pan0
group dhcp
disabled
oneshot