Jeff Sharkey | 7c38b54 | 2013-04-10 14:18:23 -0700 | [diff] [blame] | 1 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 2 | on early-init |
Young-Ho Cha | a27863d | 2013-03-10 19:52:14 +0900 | [diff] [blame] | 3 | mount debugfs debugfs /sys/kernel/debug |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 4 | |
Jeff Sharkey | 7c38b54 | 2013-04-10 14:18:23 -0700 | [diff] [blame] | 5 | on init |
| 6 | # See storage config details at http://source.android.com/tech/storage/ |
Jeff Sharkey | 2524d39 | 2013-10-09 16:55:31 -0700 | [diff] [blame] | 7 | mkdir /mnt/media_rw/sdcard 0700 media_rw media_rw |
| 8 | mkdir /storage/sdcard 0700 root root |
Jeff Sharkey | 7c38b54 | 2013-04-10 14:18:23 -0700 | [diff] [blame] | 9 | |
| 10 | export EXTERNAL_STORAGE /storage/sdcard |
| 11 | |
| 12 | # Support legacy paths |
| 13 | symlink /storage/sdcard /sdcard |
| 14 | symlink /storage/sdcard /mnt/sdcard |
| 15 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 16 | on boot |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 17 | setprop ARGH ARGH |
| 18 | setprop net.eth0.gw 10.0.2.2 |
| 19 | setprop net.eth0.dns1 10.0.2.3 |
Ron Munitz | e96a7c7 | 2013-05-16 16:28:23 +0300 | [diff] [blame] | 20 | setprop net.dns1 10.0.2.3 |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 21 | setprop net.gprs.local-ip 10.0.2.15 |
| 22 | setprop ro.radio.use-ppp no |
| 23 | setprop ro.build.product generic |
| 24 | setprop ro.product.device generic |
| 25 | |
| 26 | # fake some battery state |
| 27 | setprop status.battery.state Slow |
| 28 | setprop status.battery.level 5 |
| 29 | setprop status.battery.level_raw 50 |
| 30 | setprop status.battery.level_scale 9 |
| 31 | |
| 32 | # disable some daemons the emulator doesn't want |
| 33 | stop dund |
| 34 | stop akmd |
| 35 | |
| 36 | # start essential services |
| 37 | start qemud |
| 38 | start goldfish-logcat |
| 39 | start goldfish-setup |
| 40 | |
| 41 | setprop ro.setupwizard.mode EMULATOR |
| 42 | |
| 43 | # enable Google-specific location features, |
| 44 | # like NetworkLocationProvider and LocationCollector |
| 45 | setprop ro.com.google.locationfeatures 1 |
| 46 | |
| 47 | # For the emulator, which bypasses Setup Wizard, you can specify |
| 48 | # account info for the device via these two properties. Google |
| 49 | # Login Service will insert these accounts into the database when |
| 50 | # it is created (ie, after a data wipe). |
| 51 | # |
| 52 | # setprop ro.config.hosted_account username@hosteddomain.org:password |
| 53 | # setprop ro.config.google_account username@gmail.com:password |
| 54 | # |
| 55 | # You MUST have a Google account on the device, and you MAY |
| 56 | # additionally have a hosted account. No other configuration is |
| 57 | # supported, and arbitrary breakage may result if you specify |
| 58 | # something else. |
| 59 | |
Nick Kralevich | 8f9288e | 2013-07-12 13:49:49 -0700 | [diff] [blame] | 60 | on fs |
| 61 | mount_all /fstab.goldfish |
| 62 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 63 | service goldfish-setup /system/etc/init.goldfish.sh |
| 64 | user root |
| 65 | group root |
| 66 | oneshot |
| 67 | |
| 68 | # The qemu-props program is used to set various system |
| 69 | # properties on boot. It must be run early during the boot |
| 70 | # process to avoid race conditions with other daemons that |
| 71 | # might read them (e.g. surface flinger), so define it in |
| 72 | # class 'core' |
| 73 | # |
| 74 | service qemu-props /system/bin/qemu-props |
| 75 | class core |
| 76 | user root |
| 77 | group root |
| 78 | oneshot |
| 79 | |
| 80 | service qemud /system/bin/qemud |
| 81 | socket qemud stream 666 |
| 82 | oneshot |
| 83 | |
| 84 | # -Q is a special logcat option that forces the |
| 85 | # program to check wether it runs on the emulator |
| 86 | # if it does, it redirects its output to the device |
| 87 | # named by the androidboot.console kernel option |
| 88 | # if not, is simply exits immediately |
| 89 | |
| 90 | service goldfish-logcat /system/bin/logcat -Q |
| 91 | oneshot |
Jeff Sharkey | 2524d39 | 2013-10-09 16:55:31 -0700 | [diff] [blame] | 92 | |
| 93 | # fusewrapped external sdcard daemon running as media_rw (1023) |
| 94 | service fuse_sdcard /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard /storage/sdcard |
| 95 | class late_start |
| 96 | disabled |