OSDN Git Service

Frameworks/base: Early init native bridge
authorjgu21 <jinghui.gu@intel.com>
Wed, 10 Sep 2014 10:55:07 +0000 (06:55 -0400)
committerAndreas Gampe <agampe@google.com>
Sun, 28 Sep 2014 22:35:59 +0000 (15:35 -0700)
commit208678718f9f8db3bc279c7d5bd1445af2831ae3
treeb194dd88578c4c753c3359f67d3d13c11b52d40e
parent8120652bb1155d762d945c1a3bf1636b6825dbd2
Frameworks/base: Early init native bridge

Add the app directory to the arguments for starting a process.
Add a check for NeedsNativeBridge and a call to PreInitializeBridge
in the native fork code.

(cherry picked from commit 2eacd06bfb82b33dfcbccafbcfc0bf1218484bb5)

Bug: 17671501
Change-Id: I970db5b284b0c12e2d8a45df3950c1fff2927a4e
core/java/android/os/Process.java
core/java/com/android/internal/os/Zygote.java
core/java/com/android/internal/os/ZygoteConnection.java
core/jni/com_android_internal_os_Zygote.cpp
services/core/java/com/android/server/am/ActivityManagerService.java