Merge "HIDL: Check error value."
am: 898137f817
Change-Id: I838c21cc0c423d41e980a360967a2773238dff81
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user