Merge "WrappedApplicationKey: Remove superfluous branch in deserialization." am: 2e6b40a883 am: 2efefc72f6 am: f464e50dab

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2043164

Change-Id: I4ebdf4b33b738f5078a55b870a6f2ee5fc67e682
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-03-25 01:17:29 +00:00
committed by Automerger Merge Worker

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