Merge "HIDL: Check error value." am: 898137f817

am: 74426e9c2d

Change-Id: Iadcd6a9264e0771aa6d9fe62cca221f2391f2d12
This commit is contained in:
Steven Moreland
2018-01-19 03:21:45 +00:00
committed by android-build-merger

View File

@@ -391,6 +391,10 @@ static void JHwParcel_native_verifySuccess(JNIEnv *env, jobject thiz) {
Status status;
status_t err = ::android::hardware::readFromParcel(&status, *parcel);
signalExceptionForError(env, err);
if (!status.isOk()) {
signalExceptionForError(env, UNKNOWN_ERROR, true /* canThrowRemoteException */);
}
}
static void JHwParcel_native_release(