diff options
author | Narayan Kamath <narayan@google.com> | 2014-05-01 14:00:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-01 14:00:43 +0000 |
commit | 69da8a124e640c09d00546761c0502e1bcab79a6 (patch) | |
tree | d7fbe00ec4fbe87b35f6bed5cfd469414267a6a5 /core | |
parent | d85ded890d86d454a0571c63911ff911633e3a95 (diff) | |
parent | 2a9a047140b8da8f9cd7147c8bed60eeb61d1b6a (diff) | |
download | frameworks_base-69da8a124e640c09d00546761c0502e1bcab79a6.zip frameworks_base-69da8a124e640c09d00546761c0502e1bcab79a6.tar.gz frameworks_base-69da8a124e640c09d00546761c0502e1bcab79a6.tar.bz2 |
am 2a9a0471: Merge "Package manager changes for dual zygote stack."
* commit '2a9a047140b8da8f9cd7147c8bed60eeb61d1b6a':
Package manager changes for dual zygote stack.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/os/Build.java | 28 | ||||
-rw-r--r-- | core/java/android/os/Process.java | 10 |
2 files changed, 27 insertions, 11 deletions
diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index b2e0b29..ab45f02 100644 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -76,12 +76,38 @@ public class Build { public static final String SERIAL = getString("ro.serialno"); /** - * A list of ABIs (in priority) order supported by this device. + * An ordered list of ABIs supported by this device. The most preferred ABI is the first + * element in the list. + * + * See {@link #SUPPORTED_32_BIT_ABIS} and {@link #SUPPORTED_64_BIT_ABIS}. * * @hide */ public static final String[] SUPPORTED_ABIS = getString("ro.product.cpu.abilist").split(","); + /** + * An ordered list of <b>32 bit</b> ABIs supported by this device. The most preferred ABI + * is the first element in the list. + * + * See {@link #SUPPORTED_ABIS} and {@link #SUPPORTED_64_BIT_ABIS}. + * + * @hide + */ + public static final String[] SUPPORTED_32_BIT_ABIS = getString("ro.product.cpu.abilist32") + .split(","); + + /** + * An ordered list of <b>64 bit</b> ABIs supported by this device. The most preferred ABI + * is the first element in the list. + * + * See {@link #SUPPORTED_ABIS} and {@link #SUPPORTED_32_BIT_ABIS}. + * + * @hide + */ + public static final String[] SUPPORTED_64_BIT_ABIS = getString("ro.product.cpu.abilist64") + .split(","); + + /** Various version strings. */ public static class VERSION { /** diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 5dc4058..a4c4a87 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -707,16 +707,6 @@ public class Process { return primaryZygoteState; } - // TODO: Get rid of this. This is a temporary workaround until all the - // compilation related pieces for the dual zygote stack are ready. - // b/3647418. - if (System.getenv("ANDROID_SOCKET_" + SECONDARY_ZYGOTE_SOCKET) == null) { - Log.e(LOG_TAG, "Forcing app to primary zygote, secondary unavailable (ABI= " + abi + ")"); - // Should be : - // throw new ZygoteStartFailedEx("Unsupported zygote ABI: " + abi); - return primaryZygoteState; - } - // The primary zygote didn't match. Try the secondary. if (secondaryZygoteState == null || secondaryZygoteState.isClosed()) { secondaryZygoteState = ZygoteState.connect(SECONDARY_ZYGOTE_SOCKET, |