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