forked from PeterCxy/OpenEUICC
chore: Cleanup
This commit is contained in:
parent
a53ff97ecc
commit
277d3bdc76
|
@ -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>
|
|
|
@ -11,8 +11,8 @@ class PrivilegedEuiccChannelManager(context: Context): EuiccChannelManager(conte
|
||||||
override val uiccCards: Collection<UiccCardInfoCompat>
|
override val uiccCards: Collection<UiccCardInfoCompat>
|
||||||
get() = tm.uiccCardsInfoCompat
|
get() = tm.uiccCardsInfoCompat
|
||||||
|
|
||||||
override fun tryOpenEuiccChannelPrivileged(_port: UiccPortInfoCompat): EuiccChannel? {
|
override fun tryOpenEuiccChannelPrivileged(port: UiccPortInfoCompat): EuiccChannel? {
|
||||||
val port = _port as RealUiccPortInfoCompat
|
val port = port as RealUiccPortInfoCompat
|
||||||
if (port.card.isRemovable) {
|
if (port.card.isRemovable) {
|
||||||
// Attempt unprivileged (OMAPI) before TelephonyManager
|
// Attempt unprivileged (OMAPI) before TelephonyManager
|
||||||
// but still try TelephonyManager in case OMAPI is broken
|
// but still try TelephonyManager in case OMAPI is broken
|
||||||
|
@ -21,7 +21,6 @@ class PrivilegedEuiccChannelManager(context: Context): EuiccChannelManager(conte
|
||||||
|
|
||||||
if (port.card.isEuicc) {
|
if (port.card.isEuicc) {
|
||||||
Log.i(TAG, "Trying TelephonyManager for slot ${port.card.physicalSlotIndex} port ${port.portIndex}")
|
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 {
|
try {
|
||||||
return TelephonyManagerChannel(port, tm)
|
return TelephonyManagerChannel(port, tm)
|
||||||
} catch (e: IllegalArgumentException) {
|
} catch (e: IllegalArgumentException) {
|
||||||
|
|
Loading…
Reference in a new issue