Parcel marshall - disallow RPC Parcels

RPC Parcels need to be interpreted in the context of an RPC session.
Otherwise, they don't make sense.

Bug: N/A
Test: N/A
Change-Id: I7a7b83341372faae357927f1b23be181b2f907af
This commit is contained in:
Steven Moreland
2022-07-07 16:50:54 +00:00
parent 7a2f642bae
commit aa7b525204

View File

@@ -549,6 +549,11 @@ static jbyteArray android_os_Parcel_marshall(JNIEnv* env, jclass clazz, jlong na
return NULL;
}
if (parcel->isForRpc()) {
jniThrowException(env, "java/lang/RuntimeException", "Tried to marshall an RPC Parcel.");
return NULL;
}
if (parcel->objectsCount())
{
jniThrowException(env, "java/lang/RuntimeException",