• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on init
2    # Support legacy paths
3    symlink /sdcard /mnt/sdcard
4    symlink /sdcard /storage/sdcard0
5
6    mount debugfs debugfs /sys/kernel/debug
7
8on post-fs-data
9    # Set indication (checked by vold) that we have finished this action
10    setprop vold.post_fs_data_done 1
11    # to force to start sdcard
12    class_start late_start
13
14on boot
15    setprop ARGH ARGH
16    setprop net.eth0.gw 10.0.2.2
17    setprop net.eth0.dns1 10.0.2.3
18    setprop net.dns1 10.0.2.3
19    setprop net.gprs.local-ip 10.0.2.15
20    setprop ro.radio.use-ppp no
21    setprop ro.build.product generic
22    setprop ro.product.device generic
23
24# fake some battery state
25    setprop status.battery.state Slow
26    setprop status.battery.level 5
27    setprop status.battery.level_raw  50
28    setprop status.battery.level_scale 9
29
30# disable some daemons the emulator doesn't want
31    stop dund
32    stop akmd
33
34# start essential services
35    start qemud
36    start goldfish-logcat
37    start goldfish-setup
38
39    setprop ro.setupwizard.mode EMULATOR
40
41# enable Google-specific location features,
42# like NetworkLocationProvider and LocationCollector
43    setprop ro.com.google.locationfeatures 1
44
45# For the emulator, which bypasses Setup Wizard, you can specify
46# account info for the device via these two properties.  Google
47# Login Service will insert these accounts into the database when
48# it is created (ie, after a data wipe).
49#
50#   setprop ro.config.hosted_account username@hosteddomain.org:password
51#   setprop ro.config.google_account username@gmail.com:password
52#
53# You MUST have a Google account on the device, and you MAY
54# additionally have a hosted account.  No other configuration is
55# supported, and arbitrary breakage may result if you specify
56# something else.
57
58on fs
59        mount_all /fstab.goldfish
60
61service goldfish-setup /system/etc/init.goldfish.sh
62    user root
63    group root
64    oneshot
65
66# The qemu-props program is used to set various system
67# properties on boot. It must be run early during the boot
68# process to avoid race conditions with other daemons that
69# might read them (e.g. surface flinger), so define it in
70# class 'core'
71#
72service qemu-props /system/bin/qemu-props
73    class core
74    user root
75    group root
76    oneshot
77
78service qemud /system/bin/qemud
79    socket qemud    stream 666
80    oneshot
81
82# -Q is a special logcat option that forces the
83# program to check wether it runs on the emulator
84# if it does, it redirects its output to the device
85# named by the androidboot.console kernel option
86# if not, is simply exits immediately
87
88service goldfish-logcat /system/bin/logcat -Q
89    oneshot
90