bohu | 758ef0b | 2014-10-21 14:02:45 -0700 | [diff] [blame] | 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 | # See storage config details at http://source.android.com/tech/storage/ |
| 9 | mkdir /storage/sdcard 0555 root root |
| 10 | |
| 11 | export EXTERNAL_STORAGE /storage/sdcard |
| 12 | |
| 13 | # Support legacy paths |
| 14 | #symlink /storage/sdcard /sdcard |
| 15 | #symlink /storage/sdcard /mnt/sdcard |
| 16 | |
| 17 | symlink /dev/goldfish_pipe /dev/android_pipe |
| 18 | symlink /dev/goldfish_pipe /dev/qemu_pipe |
| 19 | |
| 20 | on boot |
| 21 | setprop net.eth0.gw 10.0.2.2 |
| 22 | setprop net.eth0.dns1 10.0.2.3 |
| 23 | setprop net.gprs.local-ip 10.0.2.15 |
| 24 | setprop ro.radio.use-ppp no |
| 25 | setprop ro.build.product generic |
| 26 | setprop ro.product.device generic |
| 27 | |
| 28 | # fake some battery state |
| 29 | setprop status.battery.state Slow |
| 30 | setprop status.battery.level 5 |
| 31 | setprop status.battery.level_raw 50 |
| 32 | setprop status.battery.level_scale 9 |
| 33 | |
| 34 | # Disable GPU support |
| 35 | setprop ro.kernel.qemu 1 |
| 36 | setprop ro.kernel.qemu.gles 0 |
| 37 | symlink /system/lib64/hw/gralloc.default.aosp.so /system/lib64/hw/gralloc.default.so |
| 38 | |
| 39 | # disable RenderScript |
| 40 | setprop config.disable_renderscript 1 |
| 41 | |
| 42 | # disable some daemons the emulator doesn't want |
| 43 | stop dund |
| 44 | stop akmd |
| 45 | |
| 46 | # enable Google-specific location features, |
| 47 | # like NetworkLocationProvider and LocationCollector |
| 48 | setprop ro.com.google.locationfeatures 1 |
| 49 | |