summaryrefslogtreecommitdiffstats
path: root/target/product
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-06-16 16:51:42 -0700
committerNarayan Kamath <narayan@google.com>2014-06-20 14:24:32 +0100
commit85455b6cce4e00c57011b5f4e746561d06ca412c (patch)
tree033d013f020c867818bee53fc8290e441eb086db /target/product
parente87fcf5e16f906353f6a62f002a1bd1f8cda5e67 (diff)
downloadbuild-85455b6cce4e00c57011b5f4e746561d06ca412c.zip
build-85455b6cce4e00c57011b5f4e746561d06ca412c.tar.gz
build-85455b6cce4e00c57011b5f4e746561d06ca412c.tar.bz2
Make default 64-bit primary, 32-bit secondary
This is required to get aarch64 & x86_64 emulators booting on lmp-preview-dev. Without this change, the system_server is a 32 bit process but java only apps that use the "android.uid.system" shared UID are dex2oated to 64 bit and won't work correctly. The correct fix needs build system changes, so this is the easiest fix for now. Note that this happens to work on volantis because the package manager adjusts their ABI correctly during boot. That can't happen on emulators because of dex-preopt; dex2oat can't oatify a dex file from inside an existing oat file. (cherry picked from commit d79504631926bbdd1bdc721e8824fcb8a9952f54) Change-Id: Id94bcc382e90b279e726f2d1d0350fc60a5020df
Diffstat (limited to 'target/product')
-rw-r--r--target/product/core_64_bit.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/product/core_64_bit.mk b/target/product/core_64_bit.mk
index 971b6bd..76e2a36 100644
--- a/target/product/core_64_bit.mk
+++ b/target/product/core_64_bit.mk
@@ -22,12 +22,12 @@
# For now this will allow 64-bit apps, but still compile all apps with JNI
# for 32-bit only.
-# Copy the 32-bit primary, 64-bit secondary zygote startup script
-PRODUCT_COPY_FILES += system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rc
+# Copy the 64-bit primary, 32-bit secondary zygote startup script
+PRODUCT_COPY_FILES += system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc
-# Set the zygote property to select the 32-bit primary, 64-bit secondary script
+# Set the zygote property to select the 64-bit primary, 32-bit secondary script
# This line must be parsed before the one in core_minimal.mk
-PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote32_64
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.zygote=zygote64_32
TARGET_SUPPORTS_32_BIT_APPS := true
TARGET_SUPPORTS_64_BIT_APPS := true