blob: 83b7f8ada3bd1b3dc13d1a73c7ec855e5e0c5141 [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
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080031 setprop ro.setupwizard.mode EMULATOR
32
33# enable Google-specific location features,
34# like NetworkLocationProvider and LocationCollector
35 setprop ro.com.google.locationfeatures 1
36
37# For the emulator, which bypasses Setup Wizard, you can specify
38# account info for the device via these two properties. Google
39# Login Service will insert these accounts into the database when
40# it is created (ie, after a data wipe).
41#
42# setprop ro.config.hosted_account username@hosteddomain.org:password
43# setprop ro.config.google_account username@gmail.com:password
44#
45# You MUST have a Google account on the device, and you MAY
46# additionally have a hosted account. No other configuration is
47# supported, and arbitrary breakage may result if you specify
48# something else.
49
50service goldfish-setup /system/etc/init.goldfish.sh
David 'Digit' Turner95df8872011-01-06 11:01:35 +010051 user root
52 group root
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080053 oneshot
54
David 'Digit' Turnera5034562011-09-16 00:19:40 +020055# The qemu-props program is used to set various system
56# properties on boot. It must be run early during the boot
57# process to avoid race conditions with other daemons that
58# might read them (e.g. surface flinger), so define it in
59# class 'core'
60#
61service qemu-props /system/bin/qemu-props
62 class core
63 user root
64 group root
65 oneshot
66
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080067service qemud /system/bin/qemud
The Android Open Source Projectf614d642009-03-18 17:39:49 -070068 socket qemud stream 666
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080069 oneshot
70
71# -Q is a special logcat option that forces the
72# program to check wether it runs on the emulator
73# if it does, it redirects its output to the device
74# named by the androidboot.console kernel option
David 'Digit' Turner95df8872011-01-06 11:01:35 +010075# if not, is simply exits immediately
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080076
77service goldfish-logcat /system/bin/logcat -Q
78 oneshot