Home | History | Annotate | Download | only in atv
      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 # enable Google-specific location features,
     50 # like NetworkLocationProvider and LocationCollector
     51     setprop ro.com.google.locationfeatures 1
     52 
     53 service goldfish-setup /system/etc/init.goldfish.sh
     54     user root
     55     group root
     56     oneshot
     57 
     58 # The qemu-props program is used to set various system
     59 # properties on boot. It must be run early during the boot
     60 # process to avoid race conditions with other daemons that
     61 # might read them (e.g. surface flinger), so define it in
     62 # class 'core'
     63 #
     64 service qemu-props /system/bin/qemu-props
     65     class core
     66     user root
     67     group root
     68     oneshot
     69 
     70 # -Q is a special logcat option that forces the
     71 # program to check wether it runs on the emulator
     72 # if it does, it redirects its output to the device
     73 # named by the androidboot.console kernel option
     74 # if not, is simply exits immediately
     75 
     76 service goldfish-logcat /system/bin/logcat -Q
     77     oneshot
     78 
     79 service fingerprintd /system/bin/fingerprintd
     80     class late_start
     81     user system
     82