commit | c37c90444774da117f8a4eef14b091f0a54086f2 | [log] [tgz] |
---|---|---|
author | Gil Dekel <gildekel@google.com> | Wed Nov 13 16:53:33 2024 -0500 |
committer | Gil Dekel <gildekel@google.com> | Sat Nov 16 01:30:59 2024 -0500 |
tree | 9d4bea5da983aef37450e238b2f44add9c79db5b | |
parent | 3e96f94d2cda8e5c9180e116aac6c57537fb970c [diff] |
SF: Parse, hash, and cache block 0 serial number More EDID fields are required as a part of migrating to EDID-based display IDs. This CL parses the device's serial number from bytes 12-15 of block 0 in the EDID blob, hashes it using a stable hash, and serves it as a part of the Edid struct. Later, amongst others, this value will be used to fabricate a unique display ID that is based on the display's EDID. See: 1. EDID spec: https://glenwing.github.io/docs/VESA-EEDID-A2.pdf 2. https://en.wikipedia.org/wiki/Extended_Display_Identification_Data#Structure,_version_1.4 Flag: com.android.graphics.surfaceflinger.flags.stable_edid_ids Bug: 378923334 Test: DisplayIdentification_test Change-Id: I8e5c79f2f51c2fd2085dfaba7f5c45fbc698cbcb