Compare commits

..

1 commit

Author SHA1 Message Date
e31200d142
fix: usb isd-r aid fallback 2025-04-01 21:18:20 +08:00
2 changed files with 4 additions and 4 deletions

View file

@ -64,7 +64,7 @@ open class DefaultEuiccChannelFactory(protected val context: Context) : EuiccCha
// Failed
Log.w(
DefaultEuiccChannelManager.TAG,
"OMAPI APDU interface unavailable for physical slot ${port.card.physicalSlotIndex} with ISD-R AID: ${isdrAid.encodeHex()}."
"OMAPI APDU interface unavailable for physical slot ${port.card.physicalSlotIndex}."
)
}
@ -99,7 +99,7 @@ open class DefaultEuiccChannelFactory(protected val context: Context) : EuiccCha
// Failed
Log.w(
DefaultEuiccChannelManager.TAG,
"USB APDU interface unavailable for ISD-R AID: ${isdrAid.encodeHex()}."
"USB APDU interface unavailable for ${usbDevice.vendorId}:${usbDevice.productId}."
)
}
return null

View file

@ -44,11 +44,11 @@ class PrivilegedEuiccChannelFactory(context: Context) : DefaultEuiccChannelFacto
context.preferenceRepository.verboseLoggingFlow,
context.preferenceRepository.ignoreTLSCertificateFlow,
)
} catch (_: IllegalArgumentException) {
} catch (e: IllegalArgumentException) {
// Failed
Log.w(
DefaultEuiccChannelManager.TAG,
"TelephonyManager APDU interface unavailable for slot ${port.card.physicalSlotIndex} port ${port.portIndex} with ISD-R AID: ${isdrAid.encodeHex()}."
"TelephonyManager APDU interface unavailable for slot ${port.card.physicalSlotIndex} port ${port.portIndex}, falling back"
)
}
}