Merge "Merge "WrappedApplicationKey: Remove superfluous branch in deserialization." am: 2e6b40a883 am: 2efefc72f6 am: f464e50dab" into tm-dev

This commit is contained in:
Automerger Merge Worker
2022-03-25 01:17:56 +00:00
committed by Android (Google) Code Review

View File

@@ -167,10 +167,7 @@ public final class WrappedApplicationKey implements Parcelable {
protected WrappedApplicationKey(Parcel in) {
mAlias = in.readString();
mEncryptedKeyMaterial = in.createByteArray();
// Check if there is still data to be read.
if (in.dataAvail() > 0) {
mMetadata = in.createByteArray();
}
mMetadata = in.createByteArray();
}
@Override