Merge "HIDL: unsilence error for local Java binder" am: d806764162
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1445875 Change-Id: I748df2b8c1784dd22b6d5a7655d35562e9ca7ca8
This commit is contained in:
@@ -990,6 +990,8 @@ static jobject JHwParcel_native_readStrongBinder(JNIEnv *env, jobject thiz) {
|
||||
}
|
||||
|
||||
if (!validateCanUseHwBinder(binder)) {
|
||||
jniThrowException(env, "java/lang/IllegalArgumentException",
|
||||
"Local binder is not supported in Java");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user