diff options
Diffstat (limited to 'init.ranchu.rc')
-rw-r--r-- | init.ranchu.rc | 41 |
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 |