summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-03-30 23:25:25 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-03-30 23:25:25 +0000
commitece6d9cbaa008b98f04684e20c5a4f4cc14314e7 (patch)
tree695f9adde527b12062f6a9afc9c0cbc402de230e
parent1c7dbd7ddd61847fdb84da8d30afc506098f3af8 (diff)
parent7bf526d2ef28103444b740f0a27f6863ff302461 (diff)
downloadplatform_system_ashmemd-ece6d9cbaa008b98f04684e20c5a4f4cc14314e7.tar.gz
platform_system_ashmemd-ece6d9cbaa008b98f04684e20c5a4f4cc14314e7.tar.bz2
platform_system_ashmemd-ece6d9cbaa008b98f04684e20c5a4f4cc14314e7.zip
Snap for 5422062 from 7bf526d2ef28103444b740f0a27f6863ff302461 to qt-release
Change-Id: Ia32ad333eb9640f4f833ba8f319c0d84120a9ea7
-rw-r--r--ashmemd_client.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/ashmemd_client.cpp b/ashmemd_client.cpp
index 04227ba..3380209 100644
--- a/ashmemd_client.cpp
+++ b/ashmemd_client.cpp
@@ -28,11 +28,6 @@ namespace android {
namespace ashmemd {
sp<IAshmemDeviceService> getAshmemService() {
- // Calls to defaultServiceManager() crash the process if it doesn't have appropriate
- // binder permissions. Check these permissions proactively.
- if (access("/dev/binder", R_OK | W_OK) != 0) {
- return nullptr;
- }
sp<IServiceManager> sm = android::defaultServiceManager();
sp<IBinder> binder = sm->checkService(String16("ashmem_device_service"));
return interface_cast<IAshmemDeviceService>(binder);