diff options
| author | Narayan Kamath <narayan@google.com> | 2014-11-20 10:51:26 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-20 10:51:26 +0000 |
| commit | bcb86374dccf15a8ee1dc03a1c69638fc6d9529f (patch) | |
| tree | e8d478d3cebe77a55745dc49e48eab7c11f5b93b /core/java | |
| parent | ec2d8d0bb8a36355b8d687c660b5c64e4aebd9b8 (diff) | |
| parent | 9f285bd60b219b562bc55c7c2a9fae23eae554e5 (diff) | |
| download | frameworks_base-bcb86374dccf15a8ee1dc03a1c69638fc6d9529f.zip frameworks_base-bcb86374dccf15a8ee1dc03a1c69638fc6d9529f.tar.gz frameworks_base-bcb86374dccf15a8ee1dc03a1c69638fc6d9529f.tar.bz2 | |
am 9f285bd6: Merge "Tell installd when boot completes."
* commit '9f285bd60b219b562bc55c7c2a9fae23eae554e5':
Tell installd when boot completes.
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/Process.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 3ada9bb..21a9904 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -689,6 +689,20 @@ public class Process { } /** + * Tries to establish a connection to the zygote that handles a given {@code abi}. Might block and retry if the + * zygote is unresponsive. This method is a no-op if a connection is already open. + * + * @hide + */ + public static void establishZygoteConnectionForAbi(String abi) { + try { + openZygoteSocketIfNeeded(abi); + } catch (ZygoteStartFailedEx ex) { + throw new RuntimeException("Unable to connect to zygote for abi: " + abi, ex); + } + } + + /** * Tries to open socket to Zygote process if not already open. If * already open, does nothing. May block and retry. */ |
