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