From 1402fbb13523fed9d96217e801df5678e3c01a6b Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Fri, 17 Oct 2014 13:45:39 +0100 Subject: Handle code_cache dir creation in libnativebridge Also: - add kPreInitiliazed state to native bridge with check transition: kOpened->kPreInitialized->kInitialized - made sure we free the memory for the code_cache_path - tidy up some error messages - tidy up tests - add a dummy native bridge to test with Bug: 18027433 Bug: 18097480 (cherry picked from commit f9d9e2a2d96559c3165405d572b08e260156074a) Change-Id: I9ce578949dbe522d5033465df7ca49fdd3aa3cbf --- include/nativebridge/native_bridge.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/nativebridge/native_bridge.h b/include/nativebridge/native_bridge.h index ac254e9..523dc49 100644 --- a/include/nativebridge/native_bridge.h +++ b/include/nativebridge/native_bridge.h @@ -37,7 +37,7 @@ bool NeedsNativeBridge(const char* instruction_set); // Do the early initialization part of the native bridge, if necessary. This should be done under // high privileges. -void PreInitializeNativeBridge(const char* app_data_dir, const char* instruction_set); +bool PreInitializeNativeBridge(const char* app_data_dir, const char* instruction_set); // Initialize the native bridge, if any. Should be called by Runtime::DidForkFromZygote. The JNIEnv* // will be used to modify the app environment for the bridge. -- cgit v1.1