Compare commits
1 commit
6680b94562
...
c1faa56e9f
Author | SHA1 | Date | |
---|---|---|---|
c1faa56e9f |
1 changed files with 11 additions and 12 deletions
|
@ -132,11 +132,9 @@ private class Eastcompeace : EuiccVendor {
|
|||
|
||||
override fun tryParseEuiccVendorInfo(channel: EuiccChannel): EuiccVendorInfo? {
|
||||
if (!channel.lpa.eID.startsWith(EID_PREFIX)) return null
|
||||
return channel.apduInterface.withLogicalChannel(PRODUCT_AID, ::parseSCID)
|
||||
}
|
||||
|
||||
fun parseSCID(transmit: (ByteArray) -> ByteArray): EuiccVendorInfo? {
|
||||
val scid = decodeResponse(transmit(COMMAND))?.let(::SCID) ?: return null
|
||||
return channel.apduInterface.withLogicalChannel(PRODUCT_AID) { transmit ->
|
||||
val scid = decodeResponse(transmit(COMMAND))?.let(::SCID)
|
||||
?: return@withLogicalChannel null
|
||||
Log.i(TAG, "Eastcompeace SCID: $scid")
|
||||
EuiccVendorInfo(
|
||||
skuName = "Eastcompeace",
|
||||
|
@ -146,3 +144,4 @@ private class Eastcompeace : EuiccVendor {
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue