1on fs 2 mount_all /fstab.qemu_trusty 3 4on early-init 5 mount debugfs debugfs /sys/kernel/debug mode=755 6 7on post-fs-data 8 setprop vold.post_fs_data_done 1 9# The storage proxy is a vendor binary, and so cannot access /data/ss 10 mkdir /data/vendor/ss 700 system system 11 enable storageproxyd 12 13on boot 14 chown root system /sys/power/wake_lock 15 chown root system /sys/power/wake_unlock 16 setprop ro.radio.use-ppp no 17 setprop ro.build.product generic 18 setprop ro.product.device generic 19 setprop ro.hardware.audio.primary goldfish 20 setprop ro.setupwizard.mode EMULATOR 21 22# fake some battery state 23 setprop status.battery.state Slow 24 setprop status.battery.level 5 25 setprop status.battery.level_raw 50 26 setprop status.battery.level_scale 9 27 28# set up the GPU caching 29 setprop ro.hwui.texture_cache_size 72 30 setprop ro.hwui.layer_cache_size 48 31 setprop ro.hwui.r_buffer_cache_size 8 32 setprop ro.hwui.path_cache_size 32 33 setprop ro.hwui.gradient_cache_size 1 34 setprop ro.hwui.drop_shadow_cache_size 6 35 setprop ro.hwui.texture_cache_flushrate 0.4 36 setprop ro.hwui.text_small_cache_width 1024 37 setprop ro.hwui.text_small_cache_height 1024 38 setprop ro.hwui.text_large_cache_width 2048 39 setprop ro.hwui.text_large_cache_height 1024 40 41# disable some daemons the emulator doesn't want 42 stop dund 43 stop akmd 44 45# start essential services 46# These were written for the classic emulator, but are applicable to ranchu 47 start goldfish-logcat 48# start goldfish-setup 49 50 51# enable Google-specific location features, 52# like NetworkLocationProvider and LocationCollector 53 setprop ro.com.google.locationfeatures 1 54 55#emulator is not much useful before boot complete 56#start it later 57on property:sys.boot_completed=1 58 setprop sys.usb.config adb 59 start adbd 60 start goldfish-logcat 61 start qemu_trusty-net 62 63on property:qemu.adbd=start 64 setprop sys.usb.config adb 65 start adbd 66 start goldfish-logcat 67 68service qemu_trusty-net /vendor/bin/dhcpclient -i eth0 69 class late_start 70 user root 71 group root wakelock 72 73# The qemu-props program is used to set various system 74# properties on boot. It must be run early during the boot 75# process to avoid race conditions with other daemons that 76# might read them (e.g. surface flinger), so define it in 77# class 'core' 78# 79service qemu-props /vendor/bin/qemu-props 80 class core 81 user root 82 group root 83 oneshot 84 85on property:qemu.logcat=start 86 start goldfish-logcat 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# logd user added to prevent logcat from logging content. 94# log group added to support access to read logs socket. 95service goldfish-logcat /system/bin/logcat -Q 96 user logd 97 group log 98 oneshot 99 100service fingerprintd /system/bin/fingerprintd 101 class late_start 102 user system 103 104service bugreport /system/bin/dumpstate -d -p -B \ 105 -o /data/user_de/0/com.android.shell/files/bugreports/bugreport 106 class main 107 disabled 108 oneshot 109 keycodes 114 115 116 110 111service storageproxyd /vendor/bin/storageproxyd -d /dev/trusty-ipc-dev0 \ 112 -r /dev/vport3p1 -p /data/vendor/ss -t virt 113 class main 114 disabled 115 user root 116