summaryrefslogtreecommitdiffstats
path: root/libnativebridge
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |\ \ | | | |/ | | |/|
| | | * Don't allow SUPPORTED_ABIs to be set by the native bridge.Narayan Kamath2014-10-221-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SUPPORTED_ABIs is a prioritized list of all ABIs a device support, and must not vary depending on whether or not an app is emulated. bug: 18061712 (cherry picked from commit 66f0d93c265657e17c7a1ddd74beb61070a8df69) Change-Id: I99cea3a56228dac43ae310c295881881e5a77c31
* | | | resolved conflicts for merge of 4de4e6de to lmp-mr1-dev-plus-aospCalin Juravle2014-10-291-0/+3
|\| | | | | | | | | | | | | | | Change-Id: Ie5c1c814ccd819a592d834879173edb8af15a52d
| * | | resolved conflicts for merge of e3c22c41 to stage-aosp-masterCalin Juravle2014-10-2810-46/+312
| |\| | | | | | | | | | | | | | Change-Id: I566aeb2e2de15813ee199d4635098029457fdf3d
| | * | Handle code_cache dir creation in libnativebridgeCalin Juravle2014-10-2710-45/+311
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Change-Id: I39f74c93580f2e224080dd3df2ffaa9cf9f8cd9c
| | * Use initUnchangeableSystemProperty for initializing os.arch.Calin Juravle2014-10-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 17713104 (cherry picked from commit 00851a53bebe16dd2a0460245505461f40a7a307) Change-Id: Ibddc535248a10e3534586eafb76c074332e025c4
| | * Fix mac build for nativebridge tests.Calin Juravle2014-09-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 17671501 (cherry picked from commit 2e5e8cc92081da6b0af658d12a60334acea441a1) Change-Id: Id0d729a25a5cea2fed5005cdea750e9e94f46d21
| | * LibNativeBridge: Add testingAndreas Gampe2014-09-254-4/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change PreInitializeNativeBridge to have a different path for the host to allow testing. Add a test (needs root privileges). Add a test for NeedsNativeBridge. Change error reporting to use strerror. Change-Id: Id2d488f0484ff8b0438863b48ef43770e784505f
| | * LibNativeBridge: Fix two bugsAndreas Gampe2014-09-251-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instruction set comparison must include the termination character so that prefixes are not identified as equal. Mount argument order was wrong. Change-Id: Ib70e36ce2ea5af158ebc9d7fafd00e978348d73d
| | * LibNativeBridge: Fix mac build warningAndreas Gampe2014-09-241-0/+5
| | | | | | | | | | | | Change-Id: I5a819cb5edb064b8a7288b5f2b3100c515421adf
| | * LibNativeHelper: No bind mount on macAndreas Gampe2014-09-241-0/+4
| | | | | | | | | | | | | | | | | | Cannot bind-mount /proc/cpuinfo on the mac. Change-Id: Id5f0cd46ba0eba484477c56bbecf14d95e88d6f2
| | * LibNativeBridge: Add early init & env setupjgu212014-09-233-9/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a method to set up /proc/cpuinfo with enough privileges. Set up the environment for an app in InitializeNativeBridge(). Turn on -Wall for libnativebridge. Change-Id: I0b93da93251c6b4638de786bf98cf99df07c3fc2
| | * NativeBridge: Refactor for new initialization flowAndreas Gampe2014-09-046-78/+131
| | | | | | | | | | | | | | | | | | Setup becomes Load, have explicit Initialize and Unload. Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
| | * NativeBridge: Tighten security on libnativebridgeAndreas Gampe2014-08-228-9/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not allow arbitrary paths for the native bridge - only allow simple names. Do not allow re-setup of the native bridge. Bug: 16404669 (cherry picked from commit cd2ef4c1af69727231b84ebc82864c170ff0e8ad) Change-Id: Ie22de356d2307fe2758f9094a85d44e61a4098a1