blob: ead468d681b3e3ba1c4be8c121f2b57c9b1e2340 [file] [log] [blame]
Jeff Sharkey7c38b542013-04-10 14:18:23 -07001
keunyounga76102f2013-03-05 11:01:50 -08002on early-init
Young-Ho Chaa27863d2013-03-10 19:52:14 +09003 mount debugfs debugfs /sys/kernel/debug
keunyounga76102f2013-03-05 11:01:50 -08004
Jeff Sharkey7c38b542013-04-10 14:18:23 -07005on init
6 # See storage config details at http://source.android.com/tech/storage/
Jeff Sharkey2524d392013-10-09 16:55:31 -07007 mkdir /mnt/media_rw/sdcard 0700 media_rw media_rw
8 mkdir /storage/sdcard 0700 root root
Jeff Sharkey7c38b542013-04-10 14:18:23 -07009
10 export EXTERNAL_STORAGE /storage/sdcard
11
12 # Support legacy paths
13 symlink /storage/sdcard /sdcard
14 symlink /storage/sdcard /mnt/sdcard
15
keunyounga76102f2013-03-05 11:01:50 -080016on boot
keunyounga76102f2013-03-05 11:01:50 -080017 setprop ARGH ARGH
18 setprop net.eth0.gw 10.0.2.2
19 setprop net.eth0.dns1 10.0.2.3
Ron Munitze96a7c72013-05-16 16:28:23 +030020 setprop net.dns1 10.0.2.3
keunyounga76102f2013-03-05 11:01:50 -080021 setprop net.gprs.local-ip 10.0.2.15
22 setprop ro.radio.use-ppp no
23 setprop ro.build.product generic
24 setprop ro.product.device generic
25
26# fake some battery state
27 setprop status.battery.state Slow
28 setprop status.battery.level 5
29 setprop status.battery.level_raw 50
30 setprop status.battery.level_scale 9
31
32# disable some daemons the emulator doesn't want
33 stop dund
34 stop akmd
35
36# start essential services
37 start qemud
38 start goldfish-logcat
39 start goldfish-setup
40
41 setprop ro.setupwizard.mode EMULATOR
42
43# enable Google-specific location features,
44# like NetworkLocationProvider and LocationCollector
45 setprop ro.com.google.locationfeatures 1
46
47# For the emulator, which bypasses Setup Wizard, you can specify
48# account info for the device via these two properties. Google
49# Login Service will insert these accounts into the database when
50# it is created (ie, after a data wipe).
51#
52# setprop ro.config.hosted_account username@hosteddomain.org:password
53# setprop ro.config.google_account username@gmail.com:password
54#
55# You MUST have a Google account on the device, and you MAY
56# additionally have a hosted account. No other configuration is
57# supported, and arbitrary breakage may result if you specify
58# something else.
59
Nick Kralevich8f9288e2013-07-12 13:49:49 -070060on fs
61 mount_all /fstab.goldfish
62
keunyounga76102f2013-03-05 11:01:50 -080063service goldfish-setup /system/etc/init.goldfish.sh
64 user root
65 group root
66 oneshot
67
68# The qemu-props program is used to set various system
69# properties on boot. It must be run early during the boot
70# process to avoid race conditions with other daemons that
71# might read them (e.g. surface flinger), so define it in
72# class 'core'
73#
74service qemu-props /system/bin/qemu-props
75 class core
76 user root
77 group root
78 oneshot
79
80service qemud /system/bin/qemud
81 socket qemud stream 666
82 oneshot
83
84# -Q is a special logcat option that forces the
85# program to check wether it runs on the emulator
86# if it does, it redirects its output to the device
87# named by the androidboot.console kernel option
88# if not, is simply exits immediately
89
90service goldfish-logcat /system/bin/logcat -Q
91 oneshot
Jeff Sharkey2524d392013-10-09 16:55:31 -070092
93# fusewrapped external sdcard daemon running as media_rw (1023)
94service fuse_sdcard /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard /storage/sdcard
95 class late_start
96 disabled