Compare commits

..

1 commit

Author SHA1 Message Date
f52126eac4
fix: usb isd-r aid fallback 2025-04-01 21:32:03 +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 // Failed
Log.w( Log.w(
DefaultEuiccChannelManager.TAG, DefaultEuiccChannelManager.TAG,
"OMAPI APDU interface unavailable for physical slot ${port.card.physicalSlotIndex}." "OMAPI APDU interface unavailable for physical slot ${port.card.physicalSlotIndex} with ISD-R AID: ${isdrAid.encodeHex()}."
) )
} }
@ -99,7 +99,7 @@ open class DefaultEuiccChannelFactory(protected val context: Context) : EuiccCha
// Failed // Failed
Log.w( Log.w(
DefaultEuiccChannelManager.TAG, DefaultEuiccChannelManager.TAG,
"USB APDU interface unavailable for ${usbDevice.vendorId}:${usbDevice.productId}." "USB APDU interface unavailable for ISD-R AID: ${isdrAid.encodeHex()}."
) )
} }
return null return null

View file

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