init.goldfish.rc revision 95df887ac0cd2fab3f5d3148feb7839b5f65223f
1on early-init
2    export EXTERNAL_STORAGE /mnt/sdcard
3    mkdir /mnt/sdcard 0000 system system
4    # for backwards compatibility
5    symlink /mnt/sdcard /sdcard
6
7on boot
8    setprop ARGH ARGH
9    setprop net.eth0.dns1 10.0.2.3
10    setprop net.gprs.local-ip 10.0.2.15
11    setprop ro.radio.use-ppp no
12    setprop ro.build.product generic
13    setprop ro.product.device generic
14
15# fake some battery state
16    setprop status.battery.state Slow
17    setprop status.battery.level 5
18    setprop status.battery.level_raw  50
19    setprop status.battery.level_scale 9
20
21# disable some daemons the emulator doesn't want
22    stop dund
23    stop akmd
24
25# start essential services
26    start qemud
27    start goldfish-logcat
28    start goldfish-setup
29
30    setprop ro.setupwizard.mode EMULATOR
31
32# enable Google-specific location features,
33# like NetworkLocationProvider and LocationCollector
34    setprop ro.com.google.locationfeatures 1
35
36# For the emulator, which bypasses Setup Wizard, you can specify
37# account info for the device via these two properties.  Google
38# Login Service will insert these accounts into the database when
39# it is created (ie, after a data wipe).
40#
41#   setprop ro.config.hosted_account username@hosteddomain.org:password
42#   setprop ro.config.google_account username@gmail.com:password
43#
44# You MUST have a Google account on the device, and you MAY
45# additionally have a hosted account.  No other configuration is
46# supported, and arbitrary breakage may result if you specify
47# something else.
48
49service goldfish-setup /system/etc/init.goldfish.sh
50    user root
51    group root
52    oneshot
53
54service qemud /system/bin/qemud
55    socket qemud    stream 666
56    oneshot
57
58# -Q is a special logcat option that forces the
59# program to check wether it runs on the emulator
60# if it does, it redirects its output to the device
61# named by the androidboot.console kernel option
62# if not, is simply exits immediately
63
64service goldfish-logcat /system/bin/logcat -Q
65    oneshot
66