Merge "zygote to preload public native libraries"
This commit is contained in:
@@ -20,6 +20,7 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
libutils \
|
||||
liblog \
|
||||
libbinder \
|
||||
libnativeloader \
|
||||
libandroid_runtime \
|
||||
$(app_process_common_shared_libs) \
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <cutils/process_name.h>
|
||||
#include <cutils/properties.h>
|
||||
#include <cutils/trace.h>
|
||||
#include <nativeloader/native_loader.h>
|
||||
#include <android_runtime/AndroidRuntime.h>
|
||||
#include <private/android_filesystem_config.h> // for AID_SYSTEM
|
||||
|
||||
@@ -304,6 +305,7 @@ int main(int argc, char* const argv[])
|
||||
}
|
||||
|
||||
if (zygote) {
|
||||
PreloadPublicNativeLibraries();
|
||||
runtime.start("com.android.internal.os.ZygoteInit", args, zygote);
|
||||
} else if (className) {
|
||||
runtime.start("com.android.internal.os.RuntimeInit", args, zygote);
|
||||
|
||||
Reference in New Issue
Block a user