summaryrefslogtreecommitdiffstats
path: root/init.ranchu.rc
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2017-04-24 20:36:25 -0700
committerGriff Hazen <griff@google.com>2017-06-21 14:06:10 -0700
commit0319174f8eb0f97cfe27c70d95b91d006ee6c1ce (patch)
tree86c585b5c29ea973cf8abc988c74adaeaa89d1e5 /init.ranchu.rc
parentccfe555a7c6eceaa4110b6ec485cb0abacc3d673 (diff)
downloadandroid_device_generic_goldfish-0319174f8eb0f97cfe27c70d95b91d006ee6c1ce.tar.gz
android_device_generic_goldfish-0319174f8eb0f97cfe27c70d95b91d006ee6c1ce.tar.bz2
android_device_generic_goldfish-0319174f8eb0f97cfe27c70d95b91d006ee6c1ce.zip
Emulator: update goldfish to 0ff252b9
Bug: 37302997 Test: Build and run sdk_google_aw_x86-userdebug emulator To commit 0ff252b95a21998caa20403da724d6d7a0f50174 oc-emu-dev Author: bohu <bohu@google.com> Date: Mon Jun 27 18:23:28 2016 -0700 Enable bugreport service Change-Id: Ie04a6f7c3a19415b63db5850dc3b9aa0488af555 (cherry picked from commit bceb8ad4f4290b0076a4315644d79cbd1b713a67)
Diffstat (limited to 'init.ranchu.rc')
-rw-r--r--init.ranchu.rc41
1 files changed, 39 insertions, 2 deletions
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 6fb6e77..c9abe1d 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -9,6 +9,9 @@ on init
symlink /dev/goldfish_pipe /dev/android_pipe
symlink /dev/goldfish_pipe /dev/qemu_pipe
+on post-fs-data
+ setprop vold.post_fs_data_done 1
+
on boot
setprop net.eth0.gw 10.0.2.2
setprop net.eth0.dns1 10.0.2.3
@@ -17,6 +20,7 @@ on boot
setprop ro.build.product generic
setprop ro.product.device generic
setprop ro.hardware.audio.primary goldfish
+ setprop ro.setupwizard.mode EMULATOR
# fake some battery state
setprop status.battery.state Slow
@@ -44,14 +48,37 @@ on boot
# start essential services
# These were written for the classic emulator, but are applicable to ranchu
start goldfish-logcat
- start goldfish-setup
+# start goldfish-setup
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
setprop ro.com.google.locationfeatures 1
-service goldfish-setup /system/etc/init.goldfish.sh
+#emulator is not much useful before boot complete
+#start it later
+on property:sys.boot_completed=1
+ setprop sys.usb.config adb
+ start adbd
+ start goldfish-logcat
+
+on property:qemu.adbd=start
+ setprop sys.usb.config adb
+ start adbd
+ start goldfish-logcat
+
+# allow goldfish-setup to take wake lock
+ chown root system /sys/power/wake_lock
+ chown root system /sys/power/wake_unlock
+
+service ranchu-setup /system/bin/init.ranchu-core.sh
+ class core
+ user root
+ group root
+ oneshot
+
+service ranchu-net /system/bin/init.ranchu-net.sh
+ class late_start
user root
group root wakelock
oneshot
@@ -68,6 +95,9 @@ service qemu-props /system/bin/qemu-props
group root
oneshot
+on property:qemu.logcat=start
+ start goldfish-logcat
+
# -Q is a special logcat option that forces the
# program to check wether it runs on the emulator
# if it does, it redirects its output to the device
@@ -83,3 +113,10 @@ service goldfish-logcat /system/bin/logcat -Q
service fingerprintd /system/bin/fingerprintd
class late_start
user system
+
+service bugreport /system/bin/dumpstate -d -p -B \
+ -o /data/data/com.android.shell/files/bugreports/bugreport
+ class main
+ disabled
+ oneshot
+ keycodes 114 115 116