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