From 3520c908ed965c82eb1178f3c449bddc5b5f6786 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 6 Sep 2019 11:03:38 -0700 Subject: [PATCH] HwBinder: don't rely on kernel headers. Kernel headers are no longer exported from libhwbinder, rely on the API it exports instead (IBinder::FLAG_ONEWAY instead of TF_ONEWAY). Bug: 124524556 Test: automated boot test is sufficient Change-Id: I4d040dbde32d25c21437e06fa805eb0f10c43532 --- core/jni/android_os_HwBinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_os_HwBinder.cpp b/core/jni/android_os_HwBinder.cpp index cbae2da042810..b6427c9aa01c0 100644 --- a/core/jni/android_os_HwBinder.cpp +++ b/core/jni/android_os_HwBinder.cpp @@ -152,7 +152,7 @@ status_t JHwBinder::onTransact( uint32_t flags, TransactCallback callback) { JNIEnv *env = AndroidRuntime::getJNIEnv(); - bool isOneway = (flags & TF_ONE_WAY) != 0; + bool isOneway = (flags & IBinder::FLAG_ONEWAY) != 0; ScopedLocalRef replyObj(env, nullptr); sp replyContext = nullptr;