From ea7e770a6cbadc85a79e2d138ce0eda6045f5219 Mon Sep 17 00:00:00 2001 From: Enginex0 Date: Tue, 17 Mar 2026 14:16:00 +0100 Subject: [PATCH] fix(operation): correct TOO_MUCH_DATA fallback to match AOSP ResponseCode AOSP ResponseCode.TOO_MUCH_DATA = 21, not 29. --- .../interception/keystore/shim/SoftwareOperation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/SoftwareOperation.kt b/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/SoftwareOperation.kt index 2fa0ef7..13b2567 100644 --- a/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/SoftwareOperation.kt +++ b/app/src/main/java/org/matrix/TEESimulator/interception/keystore/shim/SoftwareOperation.kt @@ -223,7 +223,7 @@ class SoftwareOperation(private val txId: Long, keyPair: KeyPair, params: KeyMin private object KeystoreErrorCodes { val tooMuchData: Int by lazy { - resolveField("android.system.keystore2.ResponseCode", "TOO_MUCH_DATA", 29) + resolveField("android.system.keystore2.ResponseCode", "TOO_MUCH_DATA", 21) } val invalidOperationHandle: Int by lazy {