Jeff Sharkey | 7c38b54 | 2013-04-10 14:18:23 -0700 | [diff] [blame] | 1 | |
Jeff Sharkey | 7c38b54 | 2013-04-10 14:18:23 -0700 | [diff] [blame] | 2 | on init |
Jeff Sharkey | cbf417f | 2015-03-30 19:12:57 -0700 | [diff] [blame] | 3 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 4 | on boot |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 5 | setprop ARGH ARGH |
| 6 | setprop net.eth0.gw 10.0.2.2 |
| 7 | setprop net.eth0.dns1 10.0.2.3 |
Ron Munitz | e96a7c7 | 2013-05-16 16:28:23 +0300 | [diff] [blame] | 8 | setprop net.dns1 10.0.2.3 |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 9 | setprop net.gprs.local-ip 10.0.2.15 |
Lingfeng Yang | d0dc616 | 2017-01-19 15:53:05 -0800 | [diff] [blame] | 10 | setprop persist.adb.notify 1 |
| 11 | setprop persist.sys.usb.config adb |
| 12 | setprop qemu.adb.secure 0 |
| 13 | setprop ro.adb.secure 1 |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 14 | setprop ro.radio.use-ppp no |
| 15 | setprop ro.build.product generic |
| 16 | setprop ro.product.device generic |
| 17 | |
| 18 | # fake some battery state |
| 19 | setprop status.battery.state Slow |
| 20 | setprop status.battery.level 5 |
| 21 | setprop status.battery.level_raw 50 |
| 22 | setprop status.battery.level_scale 9 |
| 23 | |
Yurii Zubrytskyi | 6fc69c7 | 2016-05-13 14:13:32 -0700 | [diff] [blame] | 24 | # set up the GPU caching |
| 25 | setprop ro.hwui.texture_cache_size 72 |
| 26 | setprop ro.hwui.layer_cache_size 48 |
| 27 | setprop ro.hwui.r_buffer_cache_size 8 |
| 28 | setprop ro.hwui.path_cache_size 32 |
| 29 | setprop ro.hwui.gradient_cache_size 1 |
| 30 | setprop ro.hwui.drop_shadow_cache_size 6 |
| 31 | setprop ro.hwui.texture_cache_flushrate 0.4 |
| 32 | setprop ro.hwui.text_small_cache_width 1024 |
| 33 | setprop ro.hwui.text_small_cache_height 1024 |
| 34 | setprop ro.hwui.text_large_cache_width 2048 |
| 35 | setprop ro.hwui.text_large_cache_height 1024 |
| 36 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 37 | # disable some daemons the emulator doesn't want |
| 38 | stop dund |
| 39 | stop akmd |
| 40 | |
| 41 | # start essential services |
Lingfeng Yang | d0dc616 | 2017-01-19 15:53:05 -0800 | [diff] [blame] | 42 | start qemud |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 43 | start goldfish-logcat |
| 44 | start goldfish-setup |
| 45 | |
| 46 | setprop ro.setupwizard.mode EMULATOR |
| 47 | |
| 48 | # enable Google-specific location features, |
| 49 | # like NetworkLocationProvider and LocationCollector |
| 50 | setprop ro.com.google.locationfeatures 1 |
| 51 | |
| 52 | # For the emulator, which bypasses Setup Wizard, you can specify |
| 53 | # account info for the device via these two properties. Google |
| 54 | # Login Service will insert these accounts into the database when |
| 55 | # it is created (ie, after a data wipe). |
| 56 | # |
| 57 | # setprop ro.config.hosted_account username@hosteddomain.org:password |
| 58 | # setprop ro.config.google_account username@gmail.com:password |
| 59 | # |
| 60 | # You MUST have a Google account on the device, and you MAY |
| 61 | # additionally have a hosted account. No other configuration is |
| 62 | # supported, and arbitrary breakage may result if you specify |
| 63 | # something else. |
| 64 | |
Nick Kralevich | 8f9288e | 2013-07-12 13:49:49 -0700 | [diff] [blame] | 65 | on fs |
| 66 | mount_all /fstab.goldfish |
| 67 | |
bohu | 7e8b692 | 2017-03-15 00:03:43 -0700 | [diff] [blame] | 68 | #emulator is not much useful before boot complete |
| 69 | #start it later |
| 70 | on property:sys.boot_completed=1 |
| 71 | setprop sys.usb.config adb |
| 72 | start adbd |
| 73 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 74 | service goldfish-setup /system/etc/init.goldfish.sh |
| 75 | user root |
Lingfeng Yang | d0dc616 | 2017-01-19 15:53:05 -0800 | [diff] [blame] | 76 | group root |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 77 | oneshot |
| 78 | |
| 79 | # The qemu-props program is used to set various system |
| 80 | # properties on boot. It must be run early during the boot |
| 81 | # process to avoid race conditions with other daemons that |
| 82 | # might read them (e.g. surface flinger), so define it in |
| 83 | # class 'core' |
| 84 | # |
| 85 | service qemu-props /system/bin/qemu-props |
| 86 | class core |
| 87 | user root |
| 88 | group root |
| 89 | oneshot |
| 90 | |
Lingfeng Yang | d0dc616 | 2017-01-19 15:53:05 -0800 | [diff] [blame] | 91 | service qemud /system/bin/qemud |
| 92 | socket qemud stream 666 |
| 93 | oneshot |
| 94 | |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 95 | # -Q is a special logcat option that forces the |
| 96 | # program to check wether it runs on the emulator |
| 97 | # if it does, it redirects its output to the device |
| 98 | # named by the androidboot.console kernel option |
| 99 | # if not, is simply exits immediately |
bohu | 7197f73 | 2017-03-07 14:10:50 -0800 | [diff] [blame] | 100 | # logd user added to prevent logcat from logging content. |
| 101 | # log group added to support access to read logs socket. |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 102 | service goldfish-logcat /system/bin/logcat -Q |
bohu | 7197f73 | 2017-03-07 14:10:50 -0800 | [diff] [blame] | 103 | user logd |
| 104 | group log |
keunyoung | a76102f | 2013-03-05 11:01:50 -0800 | [diff] [blame] | 105 | oneshot |
bohu | 9aaf1aa | 2015-05-27 17:56:45 -0700 | [diff] [blame] | 106 | |
| 107 | service fingerprintd /system/bin/fingerprintd |
| 108 | class late_start |
| 109 | user system |
bohu | 0ff252b | 2016-06-27 18:23:28 -0700 | [diff] [blame] | 110 | |
Abhijeet Kaur | 584b8ad | 2019-08-02 15:46:50 +0100 | [diff] [blame] | 111 | service bugreport /system/bin/dumpstate -d -p |
bohu | 0ff252b | 2016-06-27 18:23:28 -0700 | [diff] [blame] | 112 | class main |
| 113 | disabled |
| 114 | oneshot |
| 115 | keycodes 114 115 116 |