1on fs 2 mount_all /fstab.ranchu 3 4on early-init 5 mount debugfs debugfs /sys/kernel/debug mode=755 6 7on init 8 9 symlink /dev/goldfish_pipe /dev/android_pipe 10 symlink /dev/goldfish_pipe /dev/qemu_pipe 11 12on post-fs-data 13 setprop vold.post_fs_data_done 1 14 15on boot 16 setprop net.eth0.gw 10.0.2.2 17 setprop net.eth0.dns1 10.0.2.3 18 setprop net.gprs.local-ip 10.0.2.15 19 setprop ro.radio.use-ppp no 20 setprop ro.build.product generic 21 setprop ro.product.device generic 22 setprop ro.hardware.audio.primary goldfish 23 setprop ro.setupwizard.mode EMULATOR 24 25# fake some battery state 26 setprop status.battery.state Slow 27 setprop status.battery.level 5 28 setprop status.battery.level_raw 50 29 setprop status.battery.level_scale 9 30 31# set up the GPU caching 32 setprop ro.hwui.texture_cache_size 72 33 setprop ro.hwui.layer_cache_size 48 34 setprop ro.hwui.r_buffer_cache_size 8 35 setprop ro.hwui.path_cache_size 32 36 setprop ro.hwui.gradient_cache_size 1 37 setprop ro.hwui.drop_shadow_cache_size 6 38 setprop ro.hwui.texture_cache_flushrate 0.4 39 setprop ro.hwui.text_small_cache_width 1024 40 setprop ro.hwui.text_small_cache_height 1024 41 setprop ro.hwui.text_large_cache_width 2048 42 setprop ro.hwui.text_large_cache_height 1024 43 44# disable some daemons the emulator doesn't want 45 stop dund 46 stop akmd 47 48# start essential services 49# These were written for the classic emulator, but are applicable to ranchu 50 start goldfish-logcat 51 start goldfish-setup 52 53 54# enable Google-specific location features, 55# like NetworkLocationProvider and LocationCollector 56 setprop ro.com.google.locationfeatures 1 57 58#emulator is not much useful before boot complete 59#start it later 60on property:sys.boot_completed=1 61 setprop sys.usb.config adb 62 start adbd 63 start goldfish-logcat 64 65# allow goldfish-setup to take wake lock 66 chown root system /sys/power/wake_lock 67 chown root system /sys/power/wake_unlock 68 69service ranchu-setup /vendor/bin/init.ranchu-core.sh 70 class core 71 user root 72 group root 73 oneshot 74 75service ranchu-net /vendor/bin/init.ranchu-net.sh 76 class late_start 77 user root 78 group root wakelock 79 oneshot 80 81# The qemu-props program is used to set various system 82# properties on boot. It must be run early during the boot 83# process to avoid race conditions with other daemons that 84# might read them (e.g. surface flinger), so define it in 85# class 'core' 86# 87service qemu-props /vendor/bin/qemu-props 88 class core 89 user root 90 group root 91 oneshot 92 93on property:qemu.logcat=start 94 start goldfish-logcat 95 96# -Q is a special logcat option that forces the 97# program to check wether it runs on the emulator 98# if it does, it redirects its output to the device 99# named by the androidboot.console kernel option 100# if not, is simply exits immediately 101# logd user added to prevent logcat from logging content. 102# log group added to support access to read logs socket. 103service goldfish-logcat /system/bin/logcat -Q 104 user logd 105 group log 106 oneshot 107 108service fingerprintd /system/bin/fingerprintd 109 class late_start 110 user system 111