fix(interception): align attest key nspace update with upstream #169

This commit is contained in:
Enginex0
2026-03-22 01:12:25 +01:00
parent 9be0874e93
commit 315f41f434
@@ -392,13 +392,13 @@ object Keystore2Interceptor : AbstractKeystoreInterceptor() {
callingUid,
)
val newNspace = SecureRandom().nextLong()
response.metadata.key?.let { it.nspace = newNspace }
val key = response.metadata.key!!
key.nspace = SecureRandom().nextLong()
KeyMintSecurityLevelInterceptor.generatedKeys[keyId] =
KeyMintSecurityLevelInterceptor.GeneratedKeyInfo(
keyData.first,
null,
newNspace,
key.nspace,
response,
parsedParameters,
)