Browse Source

fix: send terminal capabilities (#187)

fix 9eSIM v1 (G+D) on USB

Reviewed-on: https://gitea.angry.im/PeterCxy/OpenEUICC/pulls/187
Co-authored-by: septs <github@septs.pw>
Co-committed-by: septs <github@septs.pw>
septs 10 months ago
parent
commit
3662f93760

+ 9 - 0
app-common/src/main/java/im/angry/openeuicc/core/usb/UsbApduInterface.kt

@@ -45,6 +45,15 @@ class UsbApduInterface(
             e.printStackTrace()
             e.printStackTrace()
             throw e
             throw e
         }
         }
+
+        // Send Terminal Capabilities
+        // Specs: ETSI TS 102 221 v15.0.0 - 11.1.19 TERMINAL CAPABILITY
+        val terminalCapabilities = buildCmd(
+            0x80.toByte(), 0xaa.toByte(), 0x00, 0x00,
+            "A9088100820101830107".decodeHex(),
+            le = null,
+        )
+        transmitApduByChannel(terminalCapabilities, 0,)
     }
     }
 
 
     override fun disconnect() {
     override fun disconnect() {