blob: 15ca572aa739215b870ca3de0100aa937cb11818 [file] [log] [blame]
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
on boot
setprop ARGH ARGH
setprop net.eth0.dns1
setprop net.gprs.local-ip
setprop no
setprop generic
setprop ro.product.device generic
# 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
# disable some daemons the emulator doesn't want
stop dund
stop akmd
# start essential services
start qemud
start goldfish-logcat
# start goldfish-setup
start netcfg
setprop ro.setupwizard.mode EMULATOR
on fs
# mount sda (system) and sdb (data) partitions
mount ext4 /dev/block/sda6 /system
mount ext4 /dev/block/sda6 /system ro remount
mount ext4 /dev/block/sdb6 /data nosuid nodev
mount ext4 /dev/block/sdb7 /cache nosuid nodev
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
setprop 1
# For the emulator, which bypasses Setup Wizard, you can specify
# account info for the device via these two properties. Google
# Login Service will insert these accounts into the database when
# it is created (ie, after a data wipe).
# setprop ro.config.hosted_account
# setprop ro.config.google_account
# You MUST have a Google account on the device, and you MAY
# additionally have a hosted account. No other configuration is
# supported, and arbitrary breakage may result if you specify
# something else.
service goldfish-setup /system/etc/
user root
group root
# The qemu-props program is used to set various system
# properties on boot. It must be run early during the boot
# process to avoid race conditions with other daemons that
# might read them (e.g. surface flinger), so define it in
# class 'core'
service qemu-props /system/bin/qemu-props
class core
user root
group root
service qemud /system/bin/qemud
socket qemud stream 666
# -Q is a special logcat option that forces the
# program to check wether it runs on the emulator
# if it does, it redirects its output to the device
# named by the androidboot.console kernel option
# if not, it simply exits immediately
service goldfish-logcat /system/bin/logcat -Q
# Enable networking so that adb can connect
service netcfg /system/bin/netcfg eth0 dhcp