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