blob: 2193c58a92d079b47fc25fede75d8d8829ac6a51 [file] [log] [blame]
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +02001on fs
Isaac Chenbacbda62018-03-21 10:46:57 +08002 mount_all /vendor/etc/fstab.ranchu
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +02003
4on early-init
Joshua Lang2ac3d362016-05-06 14:33:39 -07005 mount debugfs debugfs /sys/kernel/debug mode=755
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +02006
7on init
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +02008
David 'Digit' Turnere3e68652014-09-24 00:35:08 +02009 symlink /dev/goldfish_pipe /dev/android_pipe
10 symlink /dev/goldfish_pipe /dev/qemu_pipe
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +020011
bohu03191742017-04-24 20:36:25 -070012on post-fs-data
13 setprop vold.post_fs_data_done 1
Bjoern Johanssonb1839e92018-03-19 11:18:30 -070014 mkdir /data/vendor/var 0755 root root
15 mkdir /data/vendor/var/run 0755 root root
16 mkdir /data/vendor/var/run/netns 0755 root root
bohub7cfb882017-08-29 12:21:07 -070017
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +020018on boot
Lingfeng Yangbd425882018-04-23 13:58:17 -070019 setprop debug.hwui.renderer opengl
20 setprop debug.hwui.renderer ${ro.kernel.qemu.uirenderer}
bohudda8a162018-02-23 09:09:54 -080021 setprop ro.opengles.version ${ro.kernel.qemu.opengles.version}
bohudcf92012018-05-21 09:19:55 -070022 setprop dalvik.vm.heapsize 192m
huans4c8a39f2018-05-11 11:21:47 -070023 setprop dalvik.vm.heapsize ${ro.kernel.qemu.dalvik.vm.heapsize}
bohuf1fa5912017-12-14 21:03:50 -080024 chown root system /sys/power/wake_lock
25 chown root system /sys/power/wake_unlock
Yu Ning0657d892015-04-02 16:59:47 +080026 setprop ro.hardware.audio.primary goldfish
Yurii Zubrytskyi6fc69c72016-05-13 14:13:32 -070027
Bjoern Johansson00455fa2017-02-09 22:37:51 -080028 setprop wifi.interface wlan0
Miroslav Tisma0668c612015-06-04 15:23:19 +020029
bohu317e1622018-06-07 12:48:03 -070030 start goldfish-logcat
31
David 'Digit' Turnerd0fead32014-08-21 10:41:24 +020032
bohue34269e2017-07-03 22:03:15 -070033service ranchu-setup /vendor/bin/init.ranchu-core.sh
bohu03191742017-04-24 20:36:25 -070034 class core
35 user root
36 group root
37 oneshot
38
bohu317e1622018-06-07 12:48:03 -070039on property:vendor.qemu.timezone=*
40 setprop persist.sys.timezone ${vendor.qemu.timezone}
Weilun Du1a678f52018-02-20 18:00:55 -080041
bohuaa953672018-06-06 15:00:41 -070042on property:vendor.qemu.android.bootanim=0
huans58ea3df2018-05-25 10:51:17 -070043 setprop debug.sf.nobootanimation 1
44
bohu317e1622018-06-07 12:48:03 -070045on property:dev.bootcomplete=1
46 setprop vendor.qemu.dev.bootcomplete 1
47
bohue34269e2017-07-03 22:03:15 -070048service ranchu-net /vendor/bin/init.ranchu-net.sh
bohu03191742017-04-24 20:36:25 -070049 class late_start
Yu Ning2cfff052015-05-19 14:43:55 +080050 user root
Lingfeng Yang2c69d022017-01-06 10:12:35 -080051 group root wakelock
Yu Ning2cfff052015-05-19 14:43:55 +080052 oneshot
53
Bjoern Johanssond154a212017-08-31 13:48:45 -070054service ipv6proxy /vendor/bin/execns router /vendor/bin/ipv6proxy -o eth0 -i wlan1,radio0-peer
Bjoern Johansson00455fa2017-02-09 22:37:51 -080055 user root
56 group root
57 disabled
58
Bjoern Johanssonb1839e92018-03-19 11:18:30 -070059service emu_hostapd /vendor/bin/execns router /vendor/bin/hw/hostapd /vendor/etc/simulated_hostapd.conf
Bjoern Johansson00455fa2017-02-09 22:37:51 -080060 user root
Bjoern Johanssonb1839e92018-03-19 11:18:30 -070061 group root wifi
Bjoern Johansson00455fa2017-02-09 22:37:51 -080062 disabled
63
Bjoern Johanssond154a212017-08-31 13:48:45 -070064service dhcpserver /vendor/bin/execns router /vendor/bin/dhcpserver --range 192.168.232.2,192.168.239.254 --gateway 192.168.232.1 --netmask 255.255.248.0 --exclude-interface eth0
Bjoern Johanssonbf93db32017-07-14 15:47:19 -070065 user root
66 group root
67 disabled
68
Bjoern Johanssond154a212017-08-31 13:48:45 -070069service dhcpclient_rtr /vendor/bin/execns router /vendor/bin/dhcpclient -i eth0
Bjoern Johanssonbf93db32017-07-14 15:47:19 -070070 user root
71 group root
72 disabled
73
Bjoern Johanssond154a212017-08-31 13:48:45 -070074service dhcpclient_def /vendor/bin/dhcpclient -i eth0
Bjoern Johansson00455fa2017-02-09 22:37:51 -080075 user root
76 group root
77 disabled
78
Miroslav Tismab104c442015-09-23 18:32:27 +020079# 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#
bohub7cfb882017-08-29 12:21:07 -070085service qemu-props /vendor/bin/qemu-props
Miroslav Tismab104c442015-09-23 18:32:27 +020086 class core
87 user root
88 group root
89 oneshot
90
Yu Ning2cfff052015-05-19 14:43:55 +080091# -Q is a special logcat option that forces the
92# program to check wether it runs on the emulator
93# if it does, it redirects its output to the device
94# named by the androidboot.console kernel option
95# if not, is simply exits immediately
bohu7197f732017-03-07 14:10:50 -080096# logd user added to prevent logcat from logging content.
97# log group added to support access to read logs socket.
Yu Ning2cfff052015-05-19 14:43:55 +080098service goldfish-logcat /system/bin/logcat -Q
bohu7197f732017-03-07 14:10:50 -080099 user logd
100 group log
Yu Ning2cfff052015-05-19 14:43:55 +0800101 oneshot
bohu2a107262015-11-30 17:26:30 -0800102
Weilun Du197ae932018-03-01 21:05:02 -0800103service bugreport /system/bin/dumpstate -d -p -B -z \
bohub7cfb882017-08-29 12:21:07 -0700104 -o /data/user_de/0/com.android.shell/files/bugreports/bugreport
bohu03191742017-04-24 20:36:25 -0700105 class main
106 disabled
107 oneshot
108 keycodes 114 115 116
Bjoern Johansson00455fa2017-02-09 22:37:51 -0800109
Bjoern Johanssond154a212017-08-31 13:48:45 -0700110service wpa_supplicant /vendor/bin/hw/wpa_supplicant -Dnl80211 -iwlan0 -c/vendor/etc/wifi/wpa_supplicant.conf -g@android:wpa_wlan0
Bjoern Johansson00455fa2017-02-09 22:37:51 -0800111 socket wpa_wlan0 dgram 660 wifi wifi
112 group system wifi inet
113 oneshot
114 disabled