diff options
author | Calin Juravle <calin@google.com> | 2014-10-17 13:45:39 +0100 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2014-10-27 15:37:32 +0000 |
commit | 1402fbb13523fed9d96217e801df5678e3c01a6b (patch) | |
tree | 5b7da2b8bddbf1b418884b9c47a342dcd748c2ae /include | |
parent | 6e93b246d41275ff55dfab2d747cf0d5c60b3652 (diff) | |
download | system_core-1402fbb13523fed9d96217e801df5678e3c01a6b.zip system_core-1402fbb13523fed9d96217e801df5678e3c01a6b.tar.gz system_core-1402fbb13523fed9d96217e801df5678e3c01a6b.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/nativebridge/native_bridge.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |