Skip to content

Commit a81878a

Browse files
committed
suppress deprecation warning
1 parent 99d675c commit a81878a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/app/attestation/auditor/AttestationProtocol.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,7 @@ static AttestationResult generateSerialized(final Context context, final byte[]
16551655
{
16561656
final String key = "android.ext.OEM_UNLOCK_ALLOWED";
16571657
final byte def = SecurityStateExt.UNKNOWN_VALUE;
1658+
@SuppressWarnings("deprecation") // getBoolean(...) is ambiguous
16581659
final Object objVal = extraSecurityState.get(key);
16591660
final byte val = (objVal instanceof Boolean boolVal) ? (byte) (boolVal ? 1 : 0) : def;
16601661
final boolean isKnown = val >= 0 && val <= 1;

0 commit comments

Comments
 (0)