WrappedApplicationKey: Remove superfluous branch in deserialization.
The metadata field is written unconditionally and will be represented at least by a -1 if it is null. Bug: 210655898 Test: N/A Change-Id: Iad85dbec916a2d51523b81b594b66b9518811d27
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user