Merge "Use libbinderthreadstateutils."

This commit is contained in:
Steven Moreland
2020-02-06 19:07:49 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 1 deletions

View File

@@ -233,6 +233,7 @@ cc_library_shared {
static_libs: [
"libasync_safe",
"libbinderthreadstateutils",
"libdmabufinfo",
"libgif",
"libseccomp_policy",

View File

@@ -37,6 +37,7 @@
#include <binder/Parcel.h>
#include <binder/ProcessState.h>
#include <binder/Stability.h>
#include <binderthreadstate/CallerUtils.h>
#include <cutils/atomic.h>
#include <log/log.h>
#include <utils/KeyedVector.h>
@@ -946,7 +947,7 @@ static jint android_os_Binder_getCallingUid()
static jboolean android_os_Binder_isHandlingTransaction()
{
return IPCThreadState::self()->isServingCall();
return getCurrentServingCall() == BinderCallType::BINDER;
}
static jlong android_os_Binder_clearCallingIdentity()