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
This commit is contained in:
Steven Moreland
2019-09-06 11:03:38 -07:00
parent d191463bb0
commit 3520c908ed

View File

@@ -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<jobject> replyObj(env, nullptr);
sp<JHwParcel> replyContext = nullptr;