blob: fa70c2ed2ba6f957189aa5068223612ef82dcc08 [file] [log] [blame]
Mike Lockwooda2dffa92010-06-15 20:57:59 -07001on 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
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08007on 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
David 'Digit' Turner95df8872011-01-06 11:01:35 +010025# start essential services
26 start qemud
27 start goldfish-logcat
28 start goldfish-setup
29
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080030 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
David 'Digit' Turner95df8872011-01-06 11:01:35 +010050 user root
51 group root
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080052 oneshot
53
54service qemud /system/bin/qemud
The Android Open Source Projectf614d642009-03-18 17:39:49 -070055 socket qemud stream 666
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080056 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
David 'Digit' Turner95df8872011-01-06 11:01:35 +010062# if not, is simply exits immediately
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080063
64service goldfish-logcat /system/bin/logcat -Q
65 oneshot