| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Bug: N/A
Test: builds
Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
|
| |
|
|
|
|
| |
Bug: N/A
Test: N/A
Change-Id: Ie785058c0f5eb9b4086c98ccba6e63e3ed411b65
|
| |
|
|
|
|
|
|
| |
* Fix unused static variable warning.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I9c3a2031ac49368a1833a9d46af8174c3c9cd32e
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Test: make
Change-Id: I8200d7b3232edba43a583c5ff1e1b0f78c768f69
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
Test: links
Change-Id: I2e19d1ba7845b4b3d3fee934fcb1c90151fd7192
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
| |
Bug: 37512442
Test: mmm system/core/libnativebridge/tests
Change-Id: Ib1ca9ef830f58041095226c2ba18d1302c7833b4
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Test: clang-format.py ...
Change-Id: Ie08ae6a056f0381590e202a597042fb2490af530
|
| |
|
|
|
|
| |
Test: compile
Bug: 30465923
Change-Id: Id6d76510819ebd88c3f5003d00d73a0dbe85e943
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Bug: http://b/32019064
Test: builds
Change-Id: I18a1d816d63b64601485045070851f32d44e85eb
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
These modules have their dependencies satisfied, and aren't doing
anything strange.
Change-Id: I72039a15256cbd5e5eee0d79a15d66d74a6c087d
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I8d8d1ab10787899e91abafe269b59ee535e85653
|
| |
|
|
|
|
|
|
| |
This reverts commit 6d5017803e5fec20fb0e1ee178412748eb2b7279.
Bug: 26675310
Change-Id: Id56b5e832c85f01fca0a2198499d24224c5a6878
|
| |
|
|
|
|
|
| |
115-native-bridge is a flaky tests. This will help tracing the flakiness
cause.
Change-Id: I7b8000738cd97b9cdb1055a0480ff9acbd85cae6
|
| |
|
|
| |
Change-Id: I9967f3fd758c2a5b40be5b60ae72be7e2fb75136
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Change-Id: Ic68ac15b2676e4f475330c8e7bb34e0d48783686
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| | |
* commit '0d385d1c625a5ef3ffdeab3f63a2171eecbb1e44':
Track renaming of initUnchangeableSystemProperty.
|
| | |
| |
| |
| |
| |
| | |
It's now setUnchangeableSystemProperty.
Change-Id: Ib42f8ac9f074230dfb7af2eb633e0a536ab7d4b7
|
| |\|
| |
| |
| |
| | |
* commit '24dfaac494de3a31e1cd106becc2b2ad38e13bbe':
maybe fix mac build
|
| | |\
| | |
| | |
| | |
| | | |
* commit 'c6dead707de7c03bd9759b61143dd33cb1435cbc':
maybe fix mac build
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
system/core/libnativebridge/tests/CodeCacheExists_test.cpp:30:15: error: use of undeclared identifier 'ENOENT'
ASSERT_EQ(ENOENT, errno);
Change-Id: I188074b878a7ec3955a9f4b5dc7d1bfc56e2ccbc
|
| |\| |
| | |
| | |
| | | |
Change-Id: Ie5db9f745e01bd24faa317af0cd8874e1099ebdf
|
| | |\|
| | |
| | |
| | |
| | | |
* commit '649891267f3b0db1c6c37152fc570a4824d6aa39':
Add code cache tests to libnativebridge.
|
| | | |\ |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 18027433
Change-Id: Ie5369c0d5bd147af412174dc0753d8a314196643
|
| | |\| |
| | | |
| | | |
| | | |
| | | | |
* commit '8cf2ce1064847d5fed0ec728ef6e916e238767c0':
Don't allow SUPPORTED_ABIs to be set by the native bridge.
|
| | | |\ \
| | | |/
| | |/| |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\| | |
| | | |
| | | |
| | | | |
Change-Id: Ie5c1c814ccd819a592d834879173edb8af15a52d
|
| | |\| |
| | | |
| | | |
| | | | |
Change-Id: I566aeb2e2de15813ee199d4635098029457fdf3d
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 17713104
(cherry picked from commit 00851a53bebe16dd2a0460245505461f40a7a307)
Change-Id: Ibddc535248a10e3534586eafb76c074332e025c4
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 17671501
(cherry picked from commit 2e5e8cc92081da6b0af658d12a60334acea441a1)
Change-Id: Id0d729a25a5cea2fed5005cdea750e9e94f46d21
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instruction set comparison must include the termination character
so that prefixes are not identified as equal.
Mount argument order was wrong.
Change-Id: Ib70e36ce2ea5af158ebc9d7fafd00e978348d73d
|
| | | |
| | |
| | |
| | | |
Change-Id: I5a819cb5edb064b8a7288b5f2b3100c515421adf
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Cannot bind-mount /proc/cpuinfo on the mac.
Change-Id: Id5f0cd46ba0eba484477c56bbecf14d95e88d6f2
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Setup becomes Load, have explicit Initialize and Unload.
Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|