blob: 7cc028ffc485d31cb82a34a829cfecf275f1d94c [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
David 'Digit' Turnereeeca4d2011-01-18 20:13:12 +01009 setprop net.eth0.gw 10.0.2.2
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080010 setprop net.eth0.dns1 10.0.2.3
11 setprop net.gprs.local-ip 10.0.2.15
12 setprop ro.radio.use-ppp no
13 setprop ro.build.product generic
14 setprop ro.product.device generic
15
16# fake some battery state
17 setprop status.battery.state Slow
18 setprop status.battery.level 5
19 setprop status.battery.level_raw 50
20 setprop status.battery.level_scale 9
21
22# disable some daemons the emulator doesn't want
23 stop dund
24 stop akmd
25
David 'Digit' Turner95df8872011-01-06 11:01:35 +010026# start essential services
27 start qemud
28 start goldfish-logcat
29 start goldfish-setup
30
David 'Digit' Turnerdc743112011-01-22 02:24:36 +010031 # This is a workaround for another bug in init and init.rc
32 # where the late_start class of services is never started
33 # properly when running an unencrypted /data partition.
34 #
35 start ril-daemon
36
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080037 setprop ro.setupwizard.mode EMULATOR
38
39# enable Google-specific location features,
40# like NetworkLocationProvider and LocationCollector
41 setprop ro.com.google.locationfeatures 1
42
43# For the emulator, which bypasses Setup Wizard, you can specify
44# account info for the device via these two properties. Google
45# Login Service will insert these accounts into the database when
46# it is created (ie, after a data wipe).
47#
48# setprop ro.config.hosted_account username@hosteddomain.org:password
49# setprop ro.config.google_account username@gmail.com:password
50#
51# You MUST have a Google account on the device, and you MAY
52# additionally have a hosted account. No other configuration is
53# supported, and arbitrary breakage may result if you specify
54# something else.
55
56service goldfish-setup /system/etc/init.goldfish.sh
David 'Digit' Turner95df8872011-01-06 11:01:35 +010057 user root
58 group root
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080059 oneshot
60
61service qemud /system/bin/qemud
The Android Open Source Projectf614d642009-03-18 17:39:49 -070062 socket qemud stream 666
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080063 oneshot
64
65# -Q is a special logcat option that forces the
66# program to check wether it runs on the emulator
67# if it does, it redirects its output to the device
68# named by the androidboot.console kernel option
David 'Digit' Turner95df8872011-01-06 11:01:35 +010069# if not, is simply exits immediately
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080070
71service goldfish-logcat /system/bin/logcat -Q
72 oneshot