fix(shim): revert nspace attestation key lookup

Reverts 17c6312. The KEY_ID-domain alias-null branch targeted
duck-detector's timing-side-channel WARN, but the WARN persisted
in subsequent testing and the combined fix attempts pushed the
Tamper score from 4 to 14 with a new key-tamper detection on a
second detector. Roll back to the 2e55d56 baseline to investigate
from a clean state.
This commit is contained in:
Enginex0
2026-05-19 14:29:29 +01:00
parent 17c63120f5
commit eea60018ca
@@ -495,8 +495,7 @@ class KeyMintSecurityLevelInterceptor(
ConfigurationManager.shouldGenerate(callingUid) ||
(ConfigurationManager.shouldPatch(callingUid) && isAttestKeyRequest) ||
(attestationKey != null &&
(attestationKey.alias?.let { isAttestationKey(KeyIdentifier(callingUid, it)) }
?: attestationKeys.any { kid -> kid.uid == callingUid && generatedKeys[kid]?.nspace == attestationKey.nspace }))
isAttestationKey(KeyIdentifier(callingUid, attestationKey.alias)))
val isAuto = ConfigurationManager.isAutoMode(callingUid)