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