blob: 85f0517c263006ac26f55315c3475cfb2d2e4bf6 [file] [log] [blame]
on init
# mount debugfs
mount debugfs /sys/kernel/debug /sys/kernel/debug
# 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
# 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 post-fs-data
mkdir /data/media 0770 media_rw media_rw
on fs
mount_all /fstab.v2p-aarch64
# power management
# Enable off mode by default
#write /sys/kernel/debug/pm_debug/enable_off_mode 1
on boot
# For TC2, set A15s to performance and A7s to ondemand
# (Other CoreTiles don't have cpu_freq so this doesn't affect them.)
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
# change permissions for alsa nodes
chmod 0777 /dev/snd/pcmC0D0c
chmod 0777 /dev/snd/pcmC0D0p
chmod 0777 /dev/snd/controlC0
chmod 0777 /dev/snd/timer
#change permissions for alsa nodes for audio modem
chmod 0777 /dev/snd/pcmC0D5c
chmod 0777 /dev/snd/pcmC0D5p
#change permissions for alsa nodes for HDMI
chmod 777 /dev/snd/pcmC0D7p
chown system system /sys/class/graphics/fb0/overlays
chown system system /sys/class/graphics/fb0/fit_to_screen
chown system system /sys/class/graphics/fb1/overlays
# Disable bootanimation to speed up boot
setprop ro.kernel.android.bootanim 0
setprop debug.sf.nobootanimation 1
setprop ro.test_harness true
# See http://www.netmite.com/android/mydroid/2.0/dalvik/docs/embedded-vm-control.html
# Disable verification, should speed things up
setprop dalvik.vm.dexopt-flags v=n
# Disable extended JNI checks, should speed things up
setprop dalvik.vm.checkjni false
service faketsd /system/bin/faketsd
class main
user bluetooth
group bluetooth
oneshot
# virtual sdcard daemon running as media_rw (1023)
service sdcard /system/bin/sdcard /data/media /mnt/shell/emulated 1023 1023
class late_start