summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 83ca687519..a53056560e 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -282,17 +282,9 @@ sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle)
// a driver API to get a handle to the context manager with
// proper reference counting.
- IPCThreadState* ipc = IPCThreadState::self();
-
- CallRestriction originalCallRestriction = ipc->getCallRestriction();
- ipc->setCallRestriction(CallRestriction::NONE);
-
Parcel data;
- status_t status = ipc->transact(
+ status_t status = IPCThreadState::self()->transact(
0, IBinder::PING_TRANSACTION, data, nullptr, 0);
-
- ipc->setCallRestriction(originalCallRestriction);
-
if (status == DEAD_OBJECT)
return nullptr;
}