Binder: Disable attemptIncStrongHandle
The driver does not support BC_ATTEMPT_ACQUIRE and will return an error. IPCThreadState does not handle driver errors, and will resend the failed command blocking all other commands. Change-Id: I643986037341821b27b62dc82df933844f4842b8
This commit is contained in:
parent
7d86b45472
commit
11cfdccfd3
@ -635,6 +635,7 @@ void IPCThreadState::decWeakHandle(int32_t handle)
|
||||
|
||||
status_t IPCThreadState::attemptIncStrongHandle(int32_t handle)
|
||||
{
|
||||
#if HAS_BC_ATTEMPT_ACQUIRE
|
||||
LOG_REMOTEREFS("IPCThreadState::attemptIncStrongHandle(%d)\n", handle);
|
||||
mOut.writeInt32(BC_ATTEMPT_ACQUIRE);
|
||||
mOut.writeInt32(0); // xxx was thread priority
|
||||
@ -649,6 +650,11 @@ status_t IPCThreadState::attemptIncStrongHandle(int32_t handle)
|
||||
#endif
|
||||
|
||||
return result;
|
||||
#else
|
||||
(void)handle;
|
||||
ALOGE("%s(%d): Not supported\n", __func__, handle);
|
||||
return INVALID_OPERATION;
|
||||
#endif
|
||||
}
|
||||
|
||||
void IPCThreadState::expungeHandle(int32_t handle, IBinder* binder)
|
||||
|
Loading…
Reference in New Issue
Block a user