Skip to content

Commit

Permalink
Revert "Override OEM unlock check with downstream security state flag…
Browse files Browse the repository at this point in the history
… whenever it is present"

This reverts commit ece40a4.
  • Loading branch information
quh4gko8 committed Oct 1, 2024
1 parent 6a15553 commit 7d9390c
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1604,13 +1604,6 @@ static AttestationResult generateSerialized(final Context context, final byte[]
osEnforcedFlags |= OS_ENFORCED_FLAGS_SYSTEM_USER;
}
if (extraSecurityState != Bundle.EMPTY) {
String oemUnlockAllowedKey = "android.ext.OEM_UNLOCK_ALLOWED";
if (extraSecurityState.containsKey(oemUnlockAllowedKey)) {
osEnforcedFlags &= ~OS_ENFORCED_FLAGS_OEM_UNLOCK_ALLOWED;
if (extraSecurityState.getBoolean(oemUnlockAllowedKey, false)) {
osEnforcedFlags |= OS_ENFORCED_FLAGS_OEM_UNLOCK_ALLOWED;
}
}
}
serializer.putInt(osEnforcedFlags);

Expand Down

0 comments on commit 7d9390c

Please sign in to comment.