Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

Relax VendorPatchLevel Parsing #77

@JesusMcCloud

Description

@JesusMcCloud

The Vendor Patch Level contains the string "0" on the emulator, running Android 14.0.
Obviously, this is not compliant, but everybody working longer than five minutes with android key attestation knows that vendors can get even more "creative" than this

I therefore propose to make VendorPatchLevel an optional attribute. As far as I can tell from the source code, the actual value of this property is eagerly initialized on parsing, even if it is never accessed. Hence parsing fails and no verification whatsoever is possible, even if no checks for the vendor patch level are performed.

If this is fine, I'm happy to open a pull request.
First, however, we should evaluate how relaxed we really want to be, because I'd then extend my PR to more properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions