David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 1 | on fs |
Isaac Chen | bacbda6 | 2018-03-21 10:46:57 +0800 | [diff] [blame] | 2 | mount_all /vendor/etc/fstab.ranchu |
David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 3 | |
| 4 | on early-init |
Joshua Lang | 2ac3d36 | 2016-05-06 14:33:39 -0700 | [diff] [blame] | 5 | mount debugfs debugfs /sys/kernel/debug mode=755 |
David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 6 | |
| 7 | on init |
David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 8 | |
David 'Digit' Turner | e3e6865 | 2014-09-24 00:35:08 +0200 | [diff] [blame] | 9 | symlink /dev/goldfish_pipe /dev/android_pipe |
| 10 | symlink /dev/goldfish_pipe /dev/qemu_pipe |
David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 11 | |
bohu | 0319174 | 2017-04-24 20:36:25 -0700 | [diff] [blame] | 12 | on post-fs-data |
| 13 | setprop vold.post_fs_data_done 1 |
Bjoern Johansson | b1839e9 | 2018-03-19 11:18:30 -0700 | [diff] [blame] | 14 | 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 |
bohu | b7cfb88 | 2017-08-29 12:21:07 -0700 | [diff] [blame] | 17 | |
David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 18 | on boot |
Lingfeng Yang | bd42588 | 2018-04-23 13:58:17 -0700 | [diff] [blame] | 19 | setprop debug.hwui.renderer opengl |
| 20 | setprop debug.hwui.renderer ${ro.kernel.qemu.uirenderer} |
bohu | dda8a16 | 2018-02-23 09:09:54 -0800 | [diff] [blame] | 21 | setprop ro.opengles.version ${ro.kernel.qemu.opengles.version} |
bohu | dcf9201 | 2018-05-21 09:19:55 -0700 | [diff] [blame] | 22 | setprop dalvik.vm.heapsize 192m |
huans | 4c8a39f | 2018-05-11 11:21:47 -0700 | [diff] [blame] | 23 | setprop dalvik.vm.heapsize ${ro.kernel.qemu.dalvik.vm.heapsize} |
bohu | f1fa591 | 2017-12-14 21:03:50 -0800 | [diff] [blame] | 24 | chown root system /sys/power/wake_lock |
| 25 | chown root system /sys/power/wake_unlock |
Yu Ning | 0657d89 | 2015-04-02 16:59:47 +0800 | [diff] [blame] | 26 | setprop ro.hardware.audio.primary goldfish |
Yurii Zubrytskyi | 6fc69c7 | 2016-05-13 14:13:32 -0700 | [diff] [blame] | 27 | |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 28 | setprop wifi.interface wlan0 |
Miroslav Tisma | 0668c61 | 2015-06-04 15:23:19 +0200 | [diff] [blame] | 29 | |
bohu | 317e162 | 2018-06-07 12:48:03 -0700 | [diff] [blame^] | 30 | start goldfish-logcat |
| 31 | |
David 'Digit' Turner | d0fead3 | 2014-08-21 10:41:24 +0200 | [diff] [blame] | 32 | |
bohu | e34269e | 2017-07-03 22:03:15 -0700 | [diff] [blame] | 33 | service ranchu-setup /vendor/bin/init.ranchu-core.sh |
bohu | 0319174 | 2017-04-24 20:36:25 -0700 | [diff] [blame] | 34 | class core |
| 35 | user root |
| 36 | group root |
| 37 | oneshot |
| 38 | |
bohu | 317e162 | 2018-06-07 12:48:03 -0700 | [diff] [blame^] | 39 | on property:vendor.qemu.timezone=* |
| 40 | setprop persist.sys.timezone ${vendor.qemu.timezone} |
Weilun Du | 1a678f5 | 2018-02-20 18:00:55 -0800 | [diff] [blame] | 41 | |
bohu | aa95367 | 2018-06-06 15:00:41 -0700 | [diff] [blame] | 42 | on property:vendor.qemu.android.bootanim=0 |
huans | 58ea3df | 2018-05-25 10:51:17 -0700 | [diff] [blame] | 43 | setprop debug.sf.nobootanimation 1 |
| 44 | |
bohu | 317e162 | 2018-06-07 12:48:03 -0700 | [diff] [blame^] | 45 | on property:dev.bootcomplete=1 |
| 46 | setprop vendor.qemu.dev.bootcomplete 1 |
| 47 | |
bohu | e34269e | 2017-07-03 22:03:15 -0700 | [diff] [blame] | 48 | service ranchu-net /vendor/bin/init.ranchu-net.sh |
bohu | 0319174 | 2017-04-24 20:36:25 -0700 | [diff] [blame] | 49 | class late_start |
Yu Ning | 2cfff05 | 2015-05-19 14:43:55 +0800 | [diff] [blame] | 50 | user root |
Lingfeng Yang | 2c69d02 | 2017-01-06 10:12:35 -0800 | [diff] [blame] | 51 | group root wakelock |
Yu Ning | 2cfff05 | 2015-05-19 14:43:55 +0800 | [diff] [blame] | 52 | oneshot |
| 53 | |
Bjoern Johansson | d154a21 | 2017-08-31 13:48:45 -0700 | [diff] [blame] | 54 | service ipv6proxy /vendor/bin/execns router /vendor/bin/ipv6proxy -o eth0 -i wlan1,radio0-peer |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 55 | user root |
| 56 | group root |
| 57 | disabled |
| 58 | |
Bjoern Johansson | b1839e9 | 2018-03-19 11:18:30 -0700 | [diff] [blame] | 59 | service emu_hostapd /vendor/bin/execns router /vendor/bin/hw/hostapd /vendor/etc/simulated_hostapd.conf |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 60 | user root |
Bjoern Johansson | b1839e9 | 2018-03-19 11:18:30 -0700 | [diff] [blame] | 61 | group root wifi |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 62 | disabled |
| 63 | |
Bjoern Johansson | d154a21 | 2017-08-31 13:48:45 -0700 | [diff] [blame] | 64 | service 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 Johansson | bf93db3 | 2017-07-14 15:47:19 -0700 | [diff] [blame] | 65 | user root |
| 66 | group root |
| 67 | disabled |
| 68 | |
Bjoern Johansson | d154a21 | 2017-08-31 13:48:45 -0700 | [diff] [blame] | 69 | service dhcpclient_rtr /vendor/bin/execns router /vendor/bin/dhcpclient -i eth0 |
Bjoern Johansson | bf93db3 | 2017-07-14 15:47:19 -0700 | [diff] [blame] | 70 | user root |
| 71 | group root |
| 72 | disabled |
| 73 | |
Bjoern Johansson | d154a21 | 2017-08-31 13:48:45 -0700 | [diff] [blame] | 74 | service dhcpclient_def /vendor/bin/dhcpclient -i eth0 |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 75 | user root |
| 76 | group root |
| 77 | disabled |
| 78 | |
Miroslav Tisma | b104c44 | 2015-09-23 18:32:27 +0200 | [diff] [blame] | 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 | # |
bohu | b7cfb88 | 2017-08-29 12:21:07 -0700 | [diff] [blame] | 85 | service qemu-props /vendor/bin/qemu-props |
Miroslav Tisma | b104c44 | 2015-09-23 18:32:27 +0200 | [diff] [blame] | 86 | class core |
| 87 | user root |
| 88 | group root |
| 89 | oneshot |
| 90 | |
Yu Ning | 2cfff05 | 2015-05-19 14:43:55 +0800 | [diff] [blame] | 91 | # -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 |
bohu | 7197f73 | 2017-03-07 14:10:50 -0800 | [diff] [blame] | 96 | # logd user added to prevent logcat from logging content. |
| 97 | # log group added to support access to read logs socket. |
Yu Ning | 2cfff05 | 2015-05-19 14:43:55 +0800 | [diff] [blame] | 98 | service goldfish-logcat /system/bin/logcat -Q |
bohu | 7197f73 | 2017-03-07 14:10:50 -0800 | [diff] [blame] | 99 | user logd |
| 100 | group log |
Yu Ning | 2cfff05 | 2015-05-19 14:43:55 +0800 | [diff] [blame] | 101 | oneshot |
bohu | 2a10726 | 2015-11-30 17:26:30 -0800 | [diff] [blame] | 102 | |
Weilun Du | 197ae93 | 2018-03-01 21:05:02 -0800 | [diff] [blame] | 103 | service bugreport /system/bin/dumpstate -d -p -B -z \ |
bohu | b7cfb88 | 2017-08-29 12:21:07 -0700 | [diff] [blame] | 104 | -o /data/user_de/0/com.android.shell/files/bugreports/bugreport |
bohu | 0319174 | 2017-04-24 20:36:25 -0700 | [diff] [blame] | 105 | class main |
| 106 | disabled |
| 107 | oneshot |
| 108 | keycodes 114 115 116 |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 109 | |
Bjoern Johansson | d154a21 | 2017-08-31 13:48:45 -0700 | [diff] [blame] | 110 | service wpa_supplicant /vendor/bin/hw/wpa_supplicant -Dnl80211 -iwlan0 -c/vendor/etc/wifi/wpa_supplicant.conf -g@android:wpa_wlan0 |
Bjoern Johansson | 00455fa | 2017-02-09 22:37:51 -0800 | [diff] [blame] | 111 | socket wpa_wlan0 dgram 660 wifi wifi |
| 112 | group system wifi inet |
| 113 | oneshot |
| 114 | disabled |