Add slotId info to EuiccChannel

This commit is contained in:
Peter Cai 2022-05-01 21:24:30 -04:00
parent 3a32257c96
commit 0fdac11e79
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ package im.angry.openeuicc.core
import com.truphone.lpa.LocalProfileAssistant
data class EuiccChannel(
val slotId: Int,
val name: String,
val lpa: LocalProfileAssistant
)

View file

@ -37,7 +37,7 @@ class OmapiEuiccChannelRepository(private val context: Context) : EuiccChannelRe
val apduChannel = OmapiApduChannel(channel)
val lpa = LocalProfileAssistantImpl(apduChannel)
return EuiccChannel(reader.name, lpa)
return EuiccChannel(slotId, reader.name, lpa)
} catch (e: Exception) {
Log.e(TAG, "Unable to open eUICC channel for slot ${slotId}, skipping")
Log.e(TAG, Log.getStackTraceString(e))