blob: efe12572151e38b85c1fbf13b10bc194dd552c27 [file] [log] [blame]
Jeff Sharkey7c38b542013-04-10 14:18:23 -07001
Jeff Sharkey7c38b542013-04-10 14:18:23 -07002on init
Jeff Sharkeycbf417f2015-03-30 19:12:57 -07003
keunyounga76102f2013-03-05 11:01:50 -08004on boot
keunyounga76102f2013-03-05 11:01:50 -08005 setprop ARGH ARGH
6 setprop net.eth0.gw 10.0.2.2
7 setprop net.eth0.dns1 10.0.2.3
Ron Munitze96a7c72013-05-16 16:28:23 +03008 setprop net.dns1 10.0.2.3
keunyounga76102f2013-03-05 11:01:50 -08009 setprop net.gprs.local-ip 10.0.2.15
Lingfeng Yangd0dc6162017-01-19 15:53:05 -080010 setprop persist.adb.notify 1
11 setprop persist.sys.usb.config adb
12 setprop qemu.adb.secure 0
13 setprop ro.adb.secure 1
keunyounga76102f2013-03-05 11:01:50 -080014 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
Yurii Zubrytskyi6fc69c72016-05-13 14:13:32 -070024# set up the GPU caching
25 setprop ro.hwui.texture_cache_size 72
26 setprop ro.hwui.layer_cache_size 48
27 setprop ro.hwui.r_buffer_cache_size 8
28 setprop ro.hwui.path_cache_size 32
29 setprop ro.hwui.gradient_cache_size 1
30 setprop ro.hwui.drop_shadow_cache_size 6
31 setprop ro.hwui.texture_cache_flushrate 0.4
32 setprop ro.hwui.text_small_cache_width 1024
33 setprop ro.hwui.text_small_cache_height 1024
34 setprop ro.hwui.text_large_cache_width 2048
35 setprop ro.hwui.text_large_cache_height 1024
36
keunyounga76102f2013-03-05 11:01:50 -080037# disable some daemons the emulator doesn't want
38 stop dund
39 stop akmd
40
41# start essential services
Lingfeng Yangd0dc6162017-01-19 15:53:05 -080042 start qemud
keunyounga76102f2013-03-05 11:01:50 -080043 start goldfish-logcat
44 start goldfish-setup
45
46 setprop ro.setupwizard.mode EMULATOR
47
48# enable Google-specific location features,
49# like NetworkLocationProvider and LocationCollector
50 setprop ro.com.google.locationfeatures 1
51
52# For the emulator, which bypasses Setup Wizard, you can specify
53# account info for the device via these two properties. Google
54# Login Service will insert these accounts into the database when
55# it is created (ie, after a data wipe).
56#
57# setprop ro.config.hosted_account username@hosteddomain.org:password
58# setprop ro.config.google_account username@gmail.com:password
59#
60# You MUST have a Google account on the device, and you MAY
61# additionally have a hosted account. No other configuration is
62# supported, and arbitrary breakage may result if you specify
63# something else.
64
Nick Kralevich8f9288e2013-07-12 13:49:49 -070065on fs
66 mount_all /fstab.goldfish
67
bohu7e8b6922017-03-15 00:03:43 -070068#emulator is not much useful before boot complete
69#start it later
70on property:sys.boot_completed=1
71 setprop sys.usb.config adb
72 start adbd
73
keunyounga76102f2013-03-05 11:01:50 -080074service goldfish-setup /system/etc/init.goldfish.sh
75 user root
Lingfeng Yangd0dc6162017-01-19 15:53:05 -080076 group root
keunyounga76102f2013-03-05 11:01:50 -080077 oneshot
78
79# The qemu-props program is used to set various system
80# properties on boot. It must be run early during the boot
81# process to avoid race conditions with other daemons that
82# might read them (e.g. surface flinger), so define it in
83# class 'core'
84#
85service qemu-props /system/bin/qemu-props
86 class core
87 user root
88 group root
89 oneshot
90
Lingfeng Yangd0dc6162017-01-19 15:53:05 -080091service qemud /system/bin/qemud
92 socket qemud stream 666
93 oneshot
94
keunyounga76102f2013-03-05 11:01:50 -080095# -Q is a special logcat option that forces the
96# program to check wether it runs on the emulator
97# if it does, it redirects its output to the device
98# named by the androidboot.console kernel option
99# if not, is simply exits immediately
bohu7197f732017-03-07 14:10:50 -0800100# logd user added to prevent logcat from logging content.
101# log group added to support access to read logs socket.
keunyounga76102f2013-03-05 11:01:50 -0800102service goldfish-logcat /system/bin/logcat -Q
bohu7197f732017-03-07 14:10:50 -0800103 user logd
104 group log
keunyounga76102f2013-03-05 11:01:50 -0800105 oneshot
bohu9aaf1aa2015-05-27 17:56:45 -0700106
107service fingerprintd /system/bin/fingerprintd
108 class late_start
109 user system
bohu0ff252b2016-06-27 18:23:28 -0700110
Abhijeet Kaur584b8ad2019-08-02 15:46:50 +0100111service bugreport /system/bin/dumpstate -d -p
bohu0ff252b2016-06-27 18:23:28 -0700112 class main
113 disabled
114 oneshot
115 keycodes 114 115 116