summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-04-02 14:08:39 +0100
committerNarayan Kamath <narayan@google.com>2014-04-10 10:45:37 +0100
commit468b37c106e3a0efa926de24c2690d6db2819bc0 (patch)
tree9d0d3338aa04beadde5a8eb196c9c40dd5b4cda4 /rootdir
parent9101878dd06a74cedeadca3fec3b3db68cba8bf0 (diff)
downloadsystem_core-468b37c106e3a0efa926de24c2690d6db2819bc0.zip
system_core-468b37c106e3a0efa926de24c2690d6db2819bc0.tar.gz
system_core-468b37c106e3a0efa926de24c2690d6db2819bc0.tar.bz2
Add a config for dual mode zygote.
Note that init.zygote64.rc, which supports a "pure" 64 bit zygote is around only for testing. The life cycles of both zygotes are controlled by init, and the assumption here is that they will be available always. We start the system_server in 32 bit mode. Note that the distinction between "primary" and "secondary" simply defines the order in which ABI support is queried, there's no real requirement that the primary zygote supports the primary ABI of the device. bug: 13647418 Change-Id: Id0be001ea6f934c3c2022d89a63aae9fae66cc38
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.zygote32_64.rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/rootdir/init.zygote32_64.rc b/rootdir/init.zygote32_64.rc
new file mode 100644
index 0000000..3d60a31
--- /dev/null
+++ b/rootdir/init.zygote32_64.rc
@@ -0,0 +1,12 @@
+service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server --socket-name=zygote
+ class main
+ socket zygote stream 660 root system
+ onrestart write /sys/android_power/request_state wake
+ onrestart write /sys/power/state on
+ onrestart restart media
+ onrestart restart netd
+
+service zygote_secondary /system/bin/app_process64 -Xzygote /system/bin --zygote --socket-name=zygote_secondary
+ class main
+ socket zygote_secondary stream 660 root system
+ onrestart restart zygote