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