Home | History | Annotate | Download | only in goldfish
      1 on fs
      2     mount_all /fstab.ranchu
      3 
      4 on early-init
      5     mount debugfs debugfs /sys/kernel/debug
      6 
      7 on init
      8 
      9     symlink /dev/goldfish_pipe /dev/android_pipe
     10     symlink /dev/goldfish_pipe /dev/qemu_pipe
     11 
     12 on boot
     13     setprop net.eth0.gw 10.0.2.2
     14     setprop net.eth0.dns1 10.0.2.3
     15     setprop net.gprs.local-ip 10.0.2.15
     16     setprop ro.radio.use-ppp no
     17     setprop ro.build.product generic
     18     setprop ro.product.device generic
     19     setprop ro.hardware.audio.primary goldfish
     20 
     21 # fake some battery state
     22     setprop status.battery.state Slow
     23     setprop status.battery.level 5
     24     setprop status.battery.level_raw  50
     25     setprop status.battery.level_scale 9
     26 
     27 # set up the GPU caching
     28     setprop ro.hwui.texture_cache_size 72
     29     setprop ro.hwui.layer_cache_size 48
     30     setprop ro.hwui.r_buffer_cache_size 8
     31     setprop ro.hwui.path_cache_size 32
     32     setprop ro.hwui.gradient_cache_size 1
     33     setprop ro.hwui.drop_shadow_cache_size 6
     34     setprop ro.hwui.texture_cache_flushrate 0.4
     35     setprop ro.hwui.text_small_cache_width 1024
     36     setprop ro.hwui.text_small_cache_height 1024
     37     setprop ro.hwui.text_large_cache_width 2048
     38     setprop ro.hwui.text_large_cache_height 1024
     39 
     40 # disable some daemons the emulator doesn't want
     41     stop dund
     42     stop akmd
     43 
     44 # start essential services
     45 # These were written for the classic emulator, but are applicable to ranchu
     46     start goldfish-logcat
     47     start goldfish-setup
     48 
     49 
     50 # enable Google-specific location features,
     51 # like NetworkLocationProvider and LocationCollector
     52     setprop ro.com.google.locationfeatures 1
     53 
     54 service goldfish-setup /system/etc/init.goldfish.sh
     55     user root
     56     group root
     57     oneshot
     58 
     59 # The qemu-props program is used to set various system
     60 # properties on boot. It must be run early during the boot
     61 # process to avoid race conditions with other daemons that
     62 # might read them (e.g. surface flinger), so define it in
     63 # class 'core'
     64 #
     65 service qemu-props /system/bin/qemu-props
     66     class core
     67     user root
     68     group root
     69     oneshot
     70 
     71 # -Q is a special logcat option that forces the
     72 # program to check wether it runs on the emulator
     73 # if it does, it redirects its output to the device
     74 # named by the androidboot.console kernel option
     75 # if not, is simply exits immediately
     76 
     77 service goldfish-logcat /system/bin/logcat -Q
     78     oneshot
     79 
     80 service fingerprintd /system/bin/fingerprintd
     81     class late_start
     82     user system
     83