1 2on init 3 4on boot 5 setprop ARGH ARGH 6 setprop net.eth0.gw 10.0.2.2 7 setprop net.eth0.dns1 10.0.2.3 8 setprop net.dns1 10.0.2.3 9 setprop net.gprs.local-ip 10.0.2.15 10 setprop persist.adb.notify 1 11 setprop persist.sys.usb.config adb 12 setprop qemu.adb.secure 0 13 setprop ro.adb.secure 1 14 setprop ro.radio.use-ppp no 15 setprop ro.build.product generic 16 setprop ro.product.device generic 17 18# fake some battery state 19 setprop status.battery.state Slow 20 setprop status.battery.level 5 21 setprop status.battery.level_raw 50 22 setprop status.battery.level_scale 9 23 24# set up the GPU caching 25 setprop ro.hwui.texture_cache_size 72 26 setprop ro.hwui.layer_cache_size 48 27 setprop ro.hwui.r_buffer_cache_size 8 28 setprop ro.hwui.path_cache_size 32 29 setprop ro.hwui.gradient_cache_size 1 30 setprop ro.hwui.drop_shadow_cache_size 6 31 setprop ro.hwui.texture_cache_flushrate 0.4 32 setprop ro.hwui.text_small_cache_width 1024 33 setprop ro.hwui.text_small_cache_height 1024 34 setprop ro.hwui.text_large_cache_width 2048 35 setprop ro.hwui.text_large_cache_height 1024 36 37# disable some daemons the emulator doesn't want 38 stop dund 39 stop akmd 40 41# start essential services 42 start qemud 43 start goldfish-logcat 44 start goldfish-setup 45 46 setprop ro.setupwizard.mode EMULATOR 47 48# enable Google-specific location features, 49# like NetworkLocationProvider and LocationCollector 50 setprop ro.com.google.locationfeatures 1 51 52# For the emulator, which bypasses Setup Wizard, you can specify 53# account info for the device via these two properties. Google 54# Login Service will insert these accounts into the database when 55# it is created (ie, after a data wipe). 56# 57# setprop ro.config.hosted_account username@hosteddomain.org:password 58# setprop ro.config.google_account username@gmail.com:password 59# 60# You MUST have a Google account on the device, and you MAY 61# additionally have a hosted account. No other configuration is 62# supported, and arbitrary breakage may result if you specify 63# something else. 64 65on fs 66 mount_all /fstab.goldfish 67 68#emulator is not much useful before boot complete 69#start it later 70on property:sys.boot_completed=1 71 setprop sys.usb.config adb 72 start adbd 73 74service goldfish-setup /system/etc/init.goldfish.sh 75 user root 76 group root 77 oneshot 78 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# 85service qemu-props /system/bin/qemu-props 86 class core 87 user root 88 group root 89 oneshot 90 91service qemud /system/bin/qemud 92 socket qemud stream 666 93 oneshot 94 95# -Q is a special logcat option that forces the 96# program to check wether it runs on the emulator 97# if it does, it redirects its output to the device 98# named by the androidboot.console kernel option 99# if not, is simply exits immediately 100# logd user added to prevent logcat from logging content. 101# log group added to support access to read logs socket. 102service goldfish-logcat /system/bin/logcat -Q 103 user logd 104 group log 105 oneshot 106 107service fingerprintd /system/bin/fingerprintd 108 class late_start 109 user system 110 111service bugreport /system/bin/dumpstate -d -p 112 class main 113 disabled 114 oneshot 115 keycodes 114 115 116 116