summaryrefslogtreecommitdiffstats
path: root/libnativebridge
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | 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 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
| * Switch libnativebridge to clangCalin Juravle2014-08-181-0/+2
| | | | | | | | | | | | | | | | This fixes the mac build. (cherry picked from commit 935708be6fe366c8e519b01d1fba9fd2414c0dba) Change-Id: I246a1c0af2124ed1cec653f2f44ca256f26534ff
| * Move native bridge library in system/coreCalin Juravle2014-08-122-0/+140
| | | | | | Bug: 16884833 Change-Id: I73aab8e212860ba5aee9444d801806d3da326a41
* Use initUnchangeableSystemProperty for initializing os.arch.Calin Juravle2014-10-011-5/+5
| | | | | Bug: 17713104 Change-Id: Ic847579981efcd2fd0526c994d786ee8b7a8a316
* Fix mac build for nativebridge tests.Calin Juravle2014-09-291-2/+2
| | | | | | Bug: 17671501 Change-Id: Id0d729a25a5cea2fed5005cdea750e9e94f46d21
* LibNativeBridge: Add early init & env setupjgu212014-09-266-9/+360
| | | | | | | | | | | | | | | | 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. (cherry picked from commit 962eb40abb68eb60077da158755b6a09c306aa41) (cherry picked from commit ab0da5a9a6860046619629b8e6b83692d35dff86) (cherry picked from commit 2f71cb24fa16c0388591918f1354d1f8608cc6e5) (cherry picked from commit 04054e28e24866d76034236843490829b80df40c) (cherry picked from commit 4390a632366ecf89af5f6c0fed39baf9aab2d0f1) Bug: 17671501 Change-Id: Id4f4127d82737b5e56a77175e1068ff5cea60f9d
* Revert "DO NOT MERGE Libnativebridge: Temporarily change back to late dlopen"Andreas Gampe2014-09-252-65/+30
| | | | | | | This reverts commit f00de413ed451f1a90d614ea5dce8b3d685e877c. Bug: 17645833 Change-Id: Ie5480de9cf4da2c9167db2e6137679019a29f867
* DO NOT MERGE Libnativebridge: Temporarily change back to late dlopenAndreas Gampe2014-09-102-30/+65
| | | | Bug: 17440362 Change-Id: Ifceeecd39d4ffd948f62212ebb5280ebec9bf6ff
* NativeBridge: Refactor for new initialization flowAndreas Gampe2014-09-086-78/+131
| | | | | | | | Setup becomes Load, have explicit Initialize and Unload. (cherry picked from commit 035bd7541ed909344348b6a4e17a7ef01a434653) Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
* NativeBridge: Tighten security on libnativebridgeAndreas Gampe2014-08-218-9/+298
| | | | | | | | | | Do not allow arbitrary paths for the native bridge - only allow simple names. Do not allow re-setup of the native bridge. Bug: 16404669 Change-Id: Ie22de356d2307fe2758f9094a85d44e61a4098a1
* Switch libnativebridge to clangCalin Juravle2014-08-151-0/+2
| | | | | | This fixes the mac build. Change-Id: Icaca0e3bb959072633caf6bfad828a429ff71140
* Move native bridge library in system/coreCalin Juravle2014-08-152-0/+140
Bug: 16884833 (cherry picked from commit 961ae12dea419ff0965f00e50dd16ef07181fba5) Change-Id: I67f037ea81d2a4ede4294afd8b84b7640e534a13