summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yiwei Zhang <zzyiwei@google.com> 2019-08-05 16:57:17 -0700
committer Yiwei Zhang <zzyiwei@google.com> 2019-08-05 17:53:54 -0700
commit49b9ac79f8ca475af1e98f098f803b593b0a02d6 (patch)
tree0767fd4ff2b5cb3e818b89c64d94e5515fb5bdec
parent6aef228be8bc97006334d5abaa4c8da914886b08 (diff)
libgraphicsenv: get linker symbols from real header
Test: build, flash and boot Change-Id: I181430f0f0caef6ee5590c2ed2bf3e7e90e4ed0d
-rw-r--r--libs/graphicsenv/Android.bp4
-rw-r--r--libs/graphicsenv/GraphicsEnv.cpp17
2 files changed, 5 insertions, 16 deletions
diff --git a/libs/graphicsenv/Android.bp b/libs/graphicsenv/Android.bp
index 56521bf2b4..f11cf62e50 100644
--- a/libs/graphicsenv/Android.bp
+++ b/libs/graphicsenv/Android.bp
@@ -32,5 +32,9 @@ cc_library_shared {
"libutils",
],
+ header_libs: [
+ "libnativeloader-dummy-headers",
+ ],
+
export_include_dirs: ["include"],
}
diff --git a/libs/graphicsenv/GraphicsEnv.cpp b/libs/graphicsenv/GraphicsEnv.cpp
index 3e29e88b20..7f8d3a66b5 100644
--- a/libs/graphicsenv/GraphicsEnv.cpp
+++ b/libs/graphicsenv/GraphicsEnv.cpp
@@ -32,6 +32,7 @@
#include <cutils/properties.h>
#include <graphicsenv/IGpuService.h>
#include <log/log.h>
+#include <nativeloader/dlext_namespaces.h>
#include <sys/prctl.h>
#include <utils/Trace.h>
@@ -39,22 +40,6 @@
#include <string>
#include <thread>
-// TODO(b/37049319) Get this from a header once one exists
-extern "C" {
-android_namespace_t* android_get_exported_namespace(const char*);
-android_namespace_t* android_create_namespace(const char* name, const char* ld_library_path,
- const char* default_library_path, uint64_t type,
- const char* permitted_when_isolated_path,
- android_namespace_t* parent);
-bool android_link_namespaces(android_namespace_t* from, android_namespace_t* to,
- const char* shared_libs_sonames);
-
-enum {
- ANDROID_NAMESPACE_TYPE_ISOLATED = 1,
- ANDROID_NAMESPACE_TYPE_SHARED = 2,
-};
-}
-
// TODO(ianelliott@): Get the following from an ANGLE header:
#define CURRENT_ANGLE_API_VERSION 2 // Current API verion we are targetting
// Version-2 API: