diff --git a/.gitignore b/.gitignore index 2b15a47..b4a728f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ /.idea/workspace.xml /.idea/navEditor.xml /.idea/assetWizardSettings.xml -/.idea/deploymentTargetDropDown.xml .DS_Store /build /captures diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..159f018 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/im/angry/openeuicc/core/PrivilegedEuiccChannelManager.kt b/app/src/main/java/im/angry/openeuicc/core/PrivilegedEuiccChannelManager.kt index b5dcea2..f4c700e 100644 --- a/app/src/main/java/im/angry/openeuicc/core/PrivilegedEuiccChannelManager.kt +++ b/app/src/main/java/im/angry/openeuicc/core/PrivilegedEuiccChannelManager.kt @@ -11,8 +11,8 @@ class PrivilegedEuiccChannelManager(context: Context): EuiccChannelManager(conte override val uiccCards: Collection get() = tm.uiccCardsInfoCompat - override fun tryOpenEuiccChannelPrivileged(port: UiccPortInfoCompat): EuiccChannel? { - val port = port as RealUiccPortInfoCompat + override fun tryOpenEuiccChannelPrivileged(_port: UiccPortInfoCompat): EuiccChannel? { + val port = _port as RealUiccPortInfoCompat if (port.card.isRemovable) { // Attempt unprivileged (OMAPI) before TelephonyManager // but still try TelephonyManager in case OMAPI is broken @@ -21,6 +21,7 @@ class PrivilegedEuiccChannelManager(context: Context): EuiccChannelManager(conte if (port.card.isEuicc) { Log.i(TAG, "Trying TelephonyManager for slot ${port.card.physicalSlotIndex} port ${port.portIndex}") + // TODO: On Tiramisu, we should also connect all available "ports" for MEP support try { return TelephonyManagerChannel(port, tm) } catch (e: IllegalArgumentException) {