summaryrefslogtreecommitdiffstats
path: root/libnativebridge
Commit message (Collapse)AuthorAgeFilesLines
* Update OWNERS for libnativebridgeJiyong Park2019-02-131-0/+2
| | | | | | | Add ART peoples as owners of libnativebridge Test: N/A Change-Id: I45b81fb6bb4771828581972d11f0f5eda590c99a
* shim libraries for libnativeloader and libnativebridgeJiyong Park2019-02-123-15/+209
| | | | | | | | | | | | | | | | | | | | | libnativeloader_lazy and libnativebridge_lazy are shim libraries for libnativeloader and libnativebridge, respectively. The shim libraries provides the same APIs as their counterparts, but when the APIs are called, the APIs from the real libraries are loaded/linked/and executed using dlopen/dlsym. Bug: 123403798 Bug: 124250621 Test: m Test: device boots to the UI Test: mma under system/core/libnativebridge with aosp_cf_x86 adb sync; execute all tests under /data/nativetest/libnativebridge-lazy-tests All passes except NativeBridgeTest.V2_Signal which is also failing in /data/nativetest/libnativebridge-tests. Change-Id: Ic6484784eaa7872dcdd2decbb30943fb34c1abd7
* Add getExportedNamespace NB callbackdimitry2019-02-043-6/+29
| | | | | | | | | | | This callback replaces getVendorNamespace(). Fix nativeloader to use NativeBridgeGetExportedNamespace instead of NativeBridgeGetVendorNamespace. Bug: http://b/121248172 Bug: http://b/121372395 Test: make Change-Id: I8fa2081e37815f6f65490c9536bed0687b7f1e77
* Fix sdk-mac build.dimitry2019-01-151-1/+9
| | | | | | | | Do not use version_script for darwin Bug: http://b/122886514 Test: make Change-Id: I8a860e67b0768cce387de1257147e8989f711f06
* Actually apply version script to libnativebridgedimitry2019-01-151-0/+1
| | | | | | | | This way the list of exported symbols will be limited by symbols that need to be exported. Test: make Change-Id: Iffc8e0b3b589e78f5d213f75971a54b473760c94
* Merge "Add eaeltsin to OWNERS"Treehugger Robot2019-01-141-0/+1
|\
| * Add eaeltsin to OWNERSdimitry2019-01-141-0/+1
| | | | | | | | | | Test: n/a Change-Id: I74b181f8aca536580b42e7c34f0473aef712dd0e
* | Move the template out of extern "C".Nicolas Geoffray2019-01-141-4/+5
| | | | | | | | | | | | | | Fixes mac build Test: rely on post-submit Change-Id: I3a6e7fe7d81cd0dfa46e4ded5a543c4cb8c6ca64
* | Use cc_test, not art_cc_test.Nicolas Geoffray2019-01-141-1/+1
|/ | | | | | | This was a copy/paste mistake. Test: build aosp-build-tools Change-Id: I9f433644a54d06cb796c7432df6577eec885f95f
* Make the native bridge API a C API.Nicolas Geoffray2019-01-146-26/+122
| | | | | | | | | In order to move the library into the runtime APEX. Test: m and boot Bug: 119840313 Bug: 122710865 Change-Id: I4aac5954d2fb5f9e3ba92e486d69f1e76614df92
* Convert more modules to Android.bpDan Willemsen2018-10-313-63/+42
| | | | | | | | Test: cd system/core; mma Test: check for mkbootfs in build artifacts Test: out/host/linux-x86/nativetest64/libcrypto_utils_test/libcrypto_utils_test Test: out/host/linux-x86/nativetest64/libnativebridge-tests/*_test Change-Id: I71141bd85f052d5d86763a8b79b219cc4c46aafb
* Remove unnecessary dynamic dependency on libbase.Martin Stjernholm2018-10-242-2/+8
| | | | | | | | This code only uses android-base/macros.h. Bug: 118374951 Test: mmma system/core/libnativebridge && for f in out/host/linux-x86/nativetest{,64}/*/*; do $f; done Change-Id: Ifa5a5a3c9370bd128ddd301ea352746699715929
* Add error_msg argument to CloseNativeLibrarydimitry2018-09-121-1/+1
| | | | | | | | error_msg is set when dlclose/NativeBridgeUnloadLibrary fails. Bug: https://issuetracker.google.com/79126103 Test: make Change-Id: I043580209538ff47320e8d9a304a21c00c4b149f
* bpfmt.Elliott Hughes2018-02-161-4/+6
| | | | | | Bug: N/A Test: builds Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
* Add OWNERS.Elliott Hughes2017-12-071-0/+1
| | | | | | Bug: N/A Test: N/A Change-Id: Ie785058c0f5eb9b4086c98ccba6e63e3ed411b65
* Use -Werror in system/core/libnativebridgeChih-Hung Hsieh2017-10-312-2/+8
| | | | | | | | * Fix unused static variable warning. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I9c3a2031ac49368a1833a9d46af8174c3c9cd32e
* Remove default librariesDan Willemsen2017-09-292-15/+0
| | | | | | | | | | libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on Linux. Test: m host Change-Id: I0b3c147b00a8ab6ff289b85db55b88836c905f5c Exempt-From-Owner-Approval: build system cleanup
* Define current ABI string in android-base/macros.hdimitry2017-08-234-40/+11
| | | | | Test: make Change-Id: I8200d7b3232edba43a583c5ff1e1b0f78c768f69
* Remove LOCAL_CLANG and clang: trueLennart Wieboldt2017-07-252-3/+0
| | | | | | | | clang is the default compiler since Android nougat Test: mma & verified it´s still build with clang Change-Id: I34adaeef2f6558a09f26027271222bad94780507 Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
* Move libnativebridge headers into the module.Steven Moreland2017-07-063-1/+412
| | | | | Test: links Change-Id: I2e19d1ba7845b4b3d3fee934fcb1c90151fd7192
* Load vendor public libraries to sphal namespaceDimitry Ivanov2017-05-251-6/+16
| | | | | | | | | | | | | | | Load vendor public libraries to sphal namespace if it exists - preserve old behavior of loading these libraries to default namespace if sphal namespace is not present on the device. Bug: http://b/37410104 Test: cts-tradefed run singleCommand cts --skip-preconditions -m CtsJniTestCases on marlin (with enabled sphal configuration) and on angler where ld.config.txt is not present. Change-Id: Iaa3fa437ba2900acc2e5b9c78039fe1553e4c9dd (cherry picked from commit af0264bbe9f5e1228eb8fb486fa3d0d8e6e8605e)
* Convert libnativebridge[23]?-dummy to soong.Tomasz Wasilczyk2017-05-084-110/+55
| | | | | | Bug: 37512442 Test: mmm system/core/libnativebridge/tests Change-Id: Ib1ca9ef830f58041095226c2ba18d1302c7833b4
* NativeBridge: add "linked namespace" semantic corresponding to linkerZhenhua WANG2017-03-294-39/+56
| | | | | | | | | For dynamic linking perspective, semantics of NativeBridge needs to align with dynamic linker. This patch adds "linked namespace" semantic which shares some libraries from one namespace to another. Test: make test-art-host-run-test-115-native-bridge Change-Id: I71ce1dde19d61363d5eb9731fd4795a8c315b3a0
* Set libnativebridge style to clang-format-2Calin Juravle2017-03-291-0/+1
| | | | | Test: clang-format.py ... Change-Id: Ie08ae6a056f0381590e202a597042fb2490af530
* liblog: use log/log.h when utilizing ALOG macrosMark Salyzyn2017-01-111-1/+1
| | | | | | Test: compile Bug: 30465923 Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
* Allow different namespace types for different classloadersDimitry Ivanov2016-11-042-4/+4
| | | | | | | | | | | An app should be able to make cross-arch calls to different apps via other app's Context.getClassLoader() Bug: 32542970 Test: Boot fugu. Check that there are no linker-namespace related errors in the log. Change-Id: I1593f4688bcde0121a5e24a707441a4935fa7dc4
* Upgrade native bridge to version 3 to support namespaceZhenhua WANG2016-10-2511-13/+507
| | | | | | | | | | | | | Native bridge implements namespace related interfaces in version 3. The namespace semantic here is same as Android dynamic linker's. Native loader wraps library loading functions of dynamic linker and native bridge. Thus, Android runtime is able to load native library of different ISA on one device by calling native loader directly. Bug: http://b/28242460 Test: mm && make test-art-host -j48 Change-Id: Idde2b9d99fb6ebe547407c716b5478a231f745a7 Signed-off-by: Zhenhua WANG <zhenhua.wang@intel.com>
* system/core: preparation to pull back interfaces from android/log.hMark Salyzyn2016-10-201-0/+3
| | | | | | | | | | | | | | | | Point to log/log.h where necessary, define LOG_TAG where necessary. Accept that private/android_logger.h is suitable replacement for log/logger.h and android/log.h. Correct liblog/README Effectively a cleanup and controlled select revert of 'system/core: drop or replace log/logger.h' and 'system/core: Replace log/log.h with android/log.h'. Test: compile Bug: 30465923 Change-Id: Ic2ad157bad6f5efe2c6af293a73bb753300b17a2
* Rely on the platform -std default.Elliott Hughes2016-10-103-7/+4
| | | | | | Bug: http://b/32019064 Test: builds Change-Id: I18a1d816d63b64601485045070851f32d44e85eb
* system/core Replace cutils/log.h with android/log.hMark Salyzyn2016-09-304-15/+22
| | | | | | | | | | | Should use android/log.h instead of cutils/log.h as a good example to all others. Adjust header order to comply with Android Coding standards. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I2c9cbbbd64d8dccf2d44356361d9742e4a9b9031
* Convert more Android.mk files to Android.bpDan Willemsen2016-07-132-54/+25
| | | | | | | These modules have their dependencies satisfied, and aren't doing anything strange. Change-Id: I72039a15256cbd5e5eee0d79a15d66d74a6c087d
* Remove invalid uses of -l and -IDan Willemsen2016-06-012-4/+3
| | | | | | | | | | | | | LOCAL_LDLIBS should only be used with -l flags for NDK and some host libraries. Other uses should use LOCAL_SHARED_LIBRARIES. LOCAL_LDFLAGS should not contain -l entries, they should be in LOCAL_LDLIBS instead. LOCAL_CFLAGS should not contain -I entries, those should use LOCAL_C_INCLUDES instead. Change-Id: Ic901aa14651572ac682166becd4f0cd86baecc34
* Add Mips64 Runtime ISA type.Douglas Leung2016-02-082-4/+8
| | | | Change-Id: I8d8d1ab10787899e91abafe269b59ee535e85653
* Revert "nativebrige: log code_cache access errors to stderr as well"Calin Juravle2016-01-271-5/+0
| | | | | | | | This reverts commit 6d5017803e5fec20fb0e1ee178412748eb2b7279. Bug: 26675310 Change-Id: Id56b5e832c85f01fca0a2198499d24224c5a6878
* nativebrige: log code_cache access errors to stderr as wellCalin Juravle2016-01-121-0/+5
| | | | | | | 115-native-bridge is a flaky tests. This will help tracing the flakiness cause. Change-Id: I7b8000738cd97b9cdb1055a0480ff9acbd85cae6
* Use __ANDROID__ instead of HAVE_ANDROID_OS.Elliott Hughes2015-07-302-4/+4
| | | | Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
* Allow native bridge to work without a code cachejgu212015-07-104-10/+68
| | | | | | | | | In isolatedProcess, the app_code_cache_dir is not needed for native bridge. This commit allows native bridge to work without a code cache in isolatedProcess. Change-Id: I8580268d5ec6ca8d44e4500c3fafe10408e1e0d3 Signed-off-by: jgu21 <jinghui.gu@intel.com>
* Add static versions for libbacktrace and libnativebridge. Bug fixes.Calin Juravle2015-07-021-0/+18
| | | | Change-Id: Ic68ac15b2676e4f475330c8e7bb34e0d48783686
* LibNativeBridge: Version 2Andreas Gampe2015-05-146-6/+230
| | | | | | | | | | | | | | | | Add a callback function to retrieve "signal handler" from the bridge, if the bridge wants it to be managed by the runtime. The signal handler will be invoked after the runtime's own one, and before any other chained handler. Add a callback function to check compatibility of the bridge with the library. Add a function to expose the native bridge version. Add a test for this function. Bug: 20217701 Change-Id: Ic23a60b949f119c7d8b0e7cb27a61e6c16532a23
* am 0d385d1c: Merge "Track renaming of initUnchangeableSystemProperty."Narayan Kamath2015-02-101-2/+2
|\ | | | | | | | | * commit '0d385d1c625a5ef3ffdeab3f63a2171eecbb1e44': Track renaming of initUnchangeableSystemProperty.
| * Track renaming of initUnchangeableSystemProperty.Narayan Kamath2015-02-101-2/+2
| | | | | | | | | | | | It's now setUnchangeableSystemProperty. Change-Id: Ib42f8ac9f074230dfb7af2eb633e0a536ab7d4b7
* | am 24dfaac4: am c6dead70: Merge "maybe fix mac build"Nick Kralevich2014-11-022-0/+2
|\| | | | | | | | | * commit '24dfaac494de3a31e1cd106becc2b2ad38e13bbe': maybe fix mac build
| * am c6dead70: Merge "maybe fix mac build"Nick Kralevich2014-11-022-0/+2
| |\ | | | | | | | | | | | | * commit 'c6dead707de7c03bd9759b61143dd33cb1435cbc': maybe fix mac build
| | * maybe fix mac buildNick Kralevich2014-11-022-0/+2
| | | | | | | | | | | | | | | | | | | | | system/core/libnativebridge/tests/CodeCacheExists_test.cpp:30:15: error: use of undeclared identifier 'ENOENT' ASSERT_EQ(ENOENT, errno); Change-Id: I188074b878a7ec3955a9f4b5dc7d1bfc56e2ccbc
* | | resolved conflicts for merge of 7a1abfe3 to lmp-mr1-dev-plus-aospCalin Juravle2014-10-291-2/+0
|\| | | | | | | | | | | Change-Id: Ie5db9f745e01bd24faa317af0cd8874e1099ebdf
| * | am 64989126: Merge "Add code cache tests to libnativebridge."Calin Juravle2014-10-295-1/+112
| |\| | | | | | | | | | | | | * commit '649891267f3b0db1c6c37152fc570a4824d6aa39': Add code cache tests to libnativebridge.
| | * Merge "Add code cache tests to libnativebridge."Calin Juravle2014-10-285-1/+112
| | |\
| | | * Add code cache tests to libnativebridge.Calin Juravle2014-10-285-1/+112
| | | | | | | | | | | | | | | | | | | | Bug: 18027433 Change-Id: Ie5369c0d5bd147af412174dc0753d8a314196643
| * | | am 8cf2ce10: Merge "Don\'t allow SUPPORTED_ABIs to be set by the native bridge."Narayan Kamath2014-10-281-43/+0
| |\| | | | | | | | | | | | | | | | | | * commit '8cf2ce1064847d5fed0ec728ef6e916e238767c0': Don't allow SUPPORTED_ABIs to be set by the native bridge.
| | * | Merge "Don't allow SUPPORTED_ABIs to be set by the native bridge."Narayan Kamath2014-10-271-43/+0
| | |\ \ | | | |/ | | |/|