Compare commits

...

2 commits

Author SHA1 Message Date
396647919f .gitignore: Add .idea/deploymentTargetDropDown.xml 2024-01-27 10:59:01 -05:00
277d3bdc76 chore: Cleanup 2024-01-27 10:58:38 -05:00
3 changed files with 3 additions and 20 deletions

1
.gitignore vendored
View file

@ -8,6 +8,7 @@
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/deploymentTargetDropDown.xml
.DS_Store
/build
/captures

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="LUNA000000000447" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2024-01-20T20:18:25.117832013Z" />
</component>
</project>

View file

@ -11,8 +11,8 @@ class PrivilegedEuiccChannelManager(context: Context): EuiccChannelManager(conte
override val uiccCards: Collection<UiccCardInfoCompat>
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,7 +21,6 @@ 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) {