6db19e4082684855071834739ced56edc1cd6cef
[iec.git] / src / type3_AndroidCloud / anbox-master / android / init.goldfish.rc
1
2 on early-init
3     mount debugfs debugfs /sys/kernel/debug
4
5 on init
6
7 on boot
8     setprop ARGH ARGH
9     setprop net.eth0.gw 10.0.2.2
10     setprop net.eth0.dns1 10.0.2.3
11     setprop net.dns1 10.0.2.3
12     setprop net.gprs.local-ip 10.0.2.15
13     setprop ro.radio.use-ppp no
14     setprop ro.build.product generic
15     setprop ro.product.device generic
16
17 # fake some battery state
18     setprop status.battery.state Slow
19     setprop status.battery.level 5
20     setprop status.battery.level_raw  50
21     setprop status.battery.level_scale 9
22
23 # set up the GPU caching
24     setprop ro.hwui.texture_cache_size 72
25     setprop ro.hwui.layer_cache_size 48
26     setprop ro.hwui.r_buffer_cache_size 8
27     setprop ro.hwui.path_cache_size 32
28     setprop ro.hwui.gradient_cache_size 1
29     setprop ro.hwui.drop_shadow_cache_size 6
30     setprop ro.hwui.texture_cache_flushrate 0.4
31     setprop ro.hwui.text_small_cache_width 1024
32     setprop ro.hwui.text_small_cache_height 1024
33     setprop ro.hwui.text_large_cache_width 2048
34     setprop ro.hwui.text_large_cache_height 1024
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
64 on fs
65         mount_all /fstab.goldfish
66
67 service 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 #
78 service qemu-props /system/bin/qemu-props
79     class core
80     user root
81     group root
82     oneshot
83
84 service 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
94 service goldfish-logcat /system/bin/logcat
95     console
96     oneshot
97
98 service fingerprintd /system/bin/fingerprintd
99     class late_start
100     user system