summaryrefslogtreecommitdiffstats
path: root/libnativebridge/native_bridge.cc
Commit message (Collapse)AuthorAgeFilesLines
* LibNativeBridge: Version 2Andreas Gampe2015-05-311-6/+36
| | | | | | | | | | | | | | | | | | | 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 (cherry picked from commit a6ac9ce98bd38099a4e89010111d14e4d5fc190e) Change-Id: Ic23a60b949f119c7d8b0e7cb27a61e6c16532a23
* Track renaming of initUnchangeableSystemProperty.Narayan Kamath2015-02-101-2/+2
| | | | | | It's now setUnchangeableSystemProperty. Change-Id: Ib42f8ac9f074230dfb7af2eb633e0a536ab7d4b7
* 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
* | Handle code_cache dir creation in libnativebridgeCalin Juravle2014-10-271-39/+92
|/ | | | | | | | | | | | | | | | 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
* LibNativeBridge: Add testingAndreas Gampe2014-09-251-4/+13
| | | | | | | | | | | 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-231-6/+218
| | | | | | | | | 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-041-66/+116
| | | | | | Setup becomes Load, have explicit Initialize and Unload. Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
* NativeBridge: Tighten security on libnativebridgeAndreas Gampe2014-08-221-7/+94
| | | | | | | | | | | | | 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
* Move native bridge library in system/coreCalin Juravle2014-08-121-0/+106
Bug: 16884833 Change-Id: I73aab8e212860ba5aee9444d801806d3da326a41