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