Skip to content

Commit cc831ac

Browse files
committed
Revert "Override OEM unlock check with downstream security state flag whenever it is present"
This reverts commit ece40a4.
1 parent ebe8b06 commit cc831ac

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,13 +1626,6 @@ static AttestationResult generateSerialized(final Context context, final byte[]
16261626
osEnforcedFlags |= OS_ENFORCED_FLAGS_SYSTEM_USER;
16271627
}
16281628
if (extraSecurityState != Bundle.EMPTY) {
1629-
String oemUnlockAllowedKey = "android.ext.OEM_UNLOCK_ALLOWED";
1630-
if (extraSecurityState.containsKey(oemUnlockAllowedKey)) {
1631-
osEnforcedFlags &= ~OS_ENFORCED_FLAGS_OEM_UNLOCK_ALLOWED;
1632-
if (extraSecurityState.getBoolean(oemUnlockAllowedKey, false)) {
1633-
osEnforcedFlags |= OS_ENFORCED_FLAGS_OEM_UNLOCK_ALLOWED;
1634-
}
1635-
}
16361629
}
16371630
serializer.putInt(osEnforcedFlags);
16381631

0 commit comments

Comments
 (0)