1 2 on early-init 3 mount debugfs debugfs /sys/kernel/debug 4 5 on init 6 # See storage config details at http://source.android.com/tech/storage/ 7 mkdir /storage/sdcard 0555 root root 8 9 export EXTERNAL_STORAGE /storage/sdcard 10 11 # Support legacy paths 12 symlink /storage/sdcard /sdcard 13 symlink /storage/sdcard /mnt/sdcard 14 15 on boot 16 setsebool in_qemu 1 17 restorecon /sys/qemu_trace/process_name 18 restorecon /sys/qemu_trace/state 19 restorecon /sys/qemu_trace/symbol 20 setprop ARGH ARGH 21 setprop net.eth0.gw 10.0.2.2 22 setprop net.eth0.dns1 10.0.2.3 23 setprop net.gprs.local-ip 10.0.2.15 24 setprop ro.radio.use-ppp no 25 setprop ro.build.product generic 26 setprop ro.product.device generic 27 28 # fake some battery state 29 setprop status.battery.state Slow 30 setprop status.battery.level 5 31 setprop status.battery.level_raw 50 32 setprop status.battery.level_scale 9 33 34 # disable some daemons the emulator doesn't want 35 stop dund 36 stop akmd 37 38 # start essential services 39 start qemud 40 start goldfish-logcat 41 start goldfish-setup 42 43 setprop ro.setupwizard.mode EMULATOR 44 45 # enable Google-specific location features, 46 # like NetworkLocationProvider and LocationCollector 47 setprop ro.com.google.locationfeatures 1 48 49 # For the emulator, which bypasses Setup Wizard, you can specify 50 # account info for the device via these two properties. Google 51 # Login Service will insert these accounts into the database when 52 # it is created (ie, after a data wipe). 53 # 54 # setprop ro.config.hosted_account username (a] hosteddomain.org:password 55 # setprop ro.config.google_account username (a] gmail.com:password 56 # 57 # You MUST have a Google account on the device, and you MAY 58 # additionally have a hosted account. No other configuration is 59 # supported, and arbitrary breakage may result if you specify 60 # something else. 61 62 service goldfish-setup /system/etc/init.goldfish.sh 63 user root 64 group root 65 oneshot 66 67 # The qemu-props program is used to set various system 68 # properties on boot. It must be run early during the boot 69 # process to avoid race conditions with other daemons that 70 # might read them (e.g. surface flinger), so define it in 71 # class 'core' 72 # 73 service qemu-props /system/bin/qemu-props 74 class core 75 user root 76 group root 77 oneshot 78 79 service qemud /system/bin/qemud 80 socket qemud stream 666 81 oneshot 82 83 # -Q is a special logcat option that forces the 84 # program to check wether it runs on the emulator 85 # if it does, it redirects its output to the device 86 # named by the androidboot.console kernel option 87 # if not, is simply exits immediately 88 89 service goldfish-logcat /system/bin/logcat -Q 90 oneshot 91