summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc2.cpp
diff options
context:
space:
mode:
author Jeff Vander Stoep <jeffv@google.com> 2017-06-23 11:41:04 -0700
committer Jeff Vander Stoep <jeffv@google.com> 2017-06-23 14:49:37 -0700
commitcd04e84bbc9cc988f1d5c4170d80ea0b9f72b740 (patch)
tree0588f27b146ceb346c365b5731305e239f472b0d /libs/ui/Gralloc2.cpp
parent8669acc97d7c5ab476a99ef4129055a57e0d0c9c (diff)
Revert "libui: Load a.h.graphics.mapper passthrough service on library load"
This reverts commit 75ca86f072f82d38b21e0a13234ecbc2c24cb6ab. avc: denied { read } name="hw" scontext=u:r:cameraserver:s0 tcontext=u:object_r:system_file:s0 tclass=dir avc: denied { read } name="hw" scontext=u:r:folio_daemon:s0 tcontext=u:object_r:system_file:s0 tclass=dir avc: denied { read } name="hw" scontext=u:r:hal_imsrtp:s0 tcontext=u:object_r:system_file:s0 tclass=dir avc: denied { read } name="hw" scontext=u:r:idmap:s0 tcontext=u:object_r:system_file:s0 tclass=dir avc: denied { read } name="hw" scontext=u:r:mediaextractor:s0 tcontext=u:object_r:system_file:s0 tclass=dir avc: denied { read } name="hw" scontext=u:r:mediametrics:s0 tcontext=u:object_r:system_file:s0 tclass=dir avc: denied { read } name="hw" scontext=u:r:webview_zygote:s0 tcontext=u:object_r:system_file:s0 tclass=dir Bug: 62353585 Bug: 62912747 Bug: 35197529 Test: build and boot device. Launch camera, take pictures. Change-Id: Ic6884f7235edb9191034a285414eb93aa44ac23c
Diffstat (limited to 'libs/ui/Gralloc2.cpp')
-rw-r--r--libs/ui/Gralloc2.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/libs/ui/Gralloc2.cpp b/libs/ui/Gralloc2.cpp
index e149803004..87dbaf47d3 100644
--- a/libs/ui/Gralloc2.cpp
+++ b/libs/ui/Gralloc2.cpp
@@ -16,7 +16,6 @@
#define LOG_TAG "Gralloc2"
-#include <hidl/ServiceManagement.h>
#include <hwbinder/IPCThreadState.h>
#include <ui/Gralloc2.h>
@@ -251,17 +250,4 @@ Error Allocator::allocate(BufferDescriptor descriptor, uint32_t count,
} // namespace Gralloc2
-namespace {
-// Load the IMapper implementation library when this shared library is loaded, rather than when
-// we (lazily) create the Gralloc2::Mapper instance. Since these libraries will all be needed by
-// nearly all apps, this allows us to load them in Zygote rather than on each app launch.
-class PreloadMapperImpl {
-public:
- PreloadMapperImpl() {
- android::hardware::preloadPassthroughService<hardware::graphics::mapper::V2_0::IMapper>();
- }
-};
-static PreloadMapperImpl preloadMapperImpl;
-} // namespace
-
} // namespace android