EuiccChannelManager: Allow attempting OMAPI for non-zero port IDs
If the OMAPI eSE API is implemented based on **logical slots**, this **could** work, however there is no guarantee.
This commit is contained in:
parent
6a6af15896
commit
2fc84146da
|
@ -59,8 +59,7 @@ open class EuiccChannelManager(protected val context: Context) {
|
||||||
|
|
||||||
protected fun tryOpenEuiccChannelUnprivileged(port: UiccPortInfoCompat): EuiccChannel? {
|
protected fun tryOpenEuiccChannelUnprivileged(port: UiccPortInfoCompat): EuiccChannel? {
|
||||||
if (port.portIndex != 0) {
|
if (port.portIndex != 0) {
|
||||||
Log.w(TAG, "OMAPI channel attempted on non-zero portId, ignoring")
|
Log.w(TAG, "OMAPI channel attempted on non-zero portId, this may or may not work.")
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.i(TAG, "Trying OMAPI for physical slot ${port.card.physicalSlotIndex}")
|
Log.i(TAG, "Trying OMAPI for physical slot ${port.card.physicalSlotIndex}")
|
||||||
|
|
Loading…
Reference in a new issue