|
|
@@ -14,12 +14,24 @@ private val iccOpenLogicalChannelBySlot: Method by lazy {
|
|
|
Int::class.java, String::class.java, Int::class.java
|
|
|
)
|
|
|
}
|
|
|
+private val iccOpenLogicalChannelByPort: Method by lazy {
|
|
|
+ TelephonyManager::class.java.getMethod(
|
|
|
+ "iccOpenLogicalChannelByPort",
|
|
|
+ Int::class.java, Int::class.java, String::class.java, Int::class.java
|
|
|
+ )
|
|
|
+}
|
|
|
private val iccCloseLogicalChannelBySlot: Method by lazy {
|
|
|
TelephonyManager::class.java.getMethod(
|
|
|
"iccCloseLogicalChannelBySlot",
|
|
|
Int::class.java, Int::class.java
|
|
|
)
|
|
|
}
|
|
|
+private val iccCloseLogicalChannelByPort: Method by lazy {
|
|
|
+ TelephonyManager::class.java.getMethod(
|
|
|
+ "iccCloseLogicalChannelByPort",
|
|
|
+ Int::class.java, Int::class.java, Int::class.java
|
|
|
+ )
|
|
|
+}
|
|
|
private val iccTransmitApduLogicalChannelBySlot: Method by lazy {
|
|
|
TelephonyManager::class.java.getMethod(
|
|
|
"iccTransmitApduLogicalChannelBySlot",
|
|
|
@@ -27,15 +39,30 @@ private val iccTransmitApduLogicalChannelBySlot: Method by lazy {
|
|
|
Int::class.java, Int::class.java, Int::class.java, String::class.java
|
|
|
)
|
|
|
}
|
|
|
+private val iccTransmitApduLogicalChannelByPort: Method by lazy {
|
|
|
+ TelephonyManager::class.java.getMethod(
|
|
|
+ "iccTransmitApduLogicalChannelByPort",
|
|
|
+ Int::class.java, Int::class.java, Int::class.java, Int::class.java, Int::class.java,
|
|
|
+ Int::class.java, Int::class.java, Int::class.java, String::class.java
|
|
|
+ )
|
|
|
+}
|
|
|
|
|
|
fun TelephonyManager.iccOpenLogicalChannelBySlot(
|
|
|
- slotId: Int, appletId: String, p2: Int
|
|
|
+ slotId: Int, appletId: String?, p2: Int
|
|
|
): IccOpenLogicalChannelResponse =
|
|
|
iccOpenLogicalChannelBySlot.invoke(this, slotId, appletId, p2) as IccOpenLogicalChannelResponse
|
|
|
|
|
|
+fun TelephonyManager.iccOpenLogicalChannelByPort(
|
|
|
+ slotId: Int, portId: Int, appletId: String?, p2: Int
|
|
|
+): IccOpenLogicalChannelResponse =
|
|
|
+ iccOpenLogicalChannelByPort.invoke(this, slotId, portId, appletId, p2) as IccOpenLogicalChannelResponse
|
|
|
+
|
|
|
fun TelephonyManager.iccCloseLogicalChannelBySlot(slotId: Int, channel: Int): Boolean =
|
|
|
iccCloseLogicalChannelBySlot.invoke(this, slotId, channel) as Boolean
|
|
|
|
|
|
+fun TelephonyManager.iccCloseLogicalChannelByPort(slotId: Int, portId: Int, channel: Int): Boolean =
|
|
|
+ iccCloseLogicalChannelByPort.invoke(this, slotId, portId, channel) as Boolean
|
|
|
+
|
|
|
fun TelephonyManager.iccTransmitApduLogicalChannelBySlot(
|
|
|
slotId: Int, channel: Int, cla: Int, instruction: Int,
|
|
|
p1: Int, p2: Int, p3: Int, data: String?
|
|
|
@@ -44,6 +71,14 @@ fun TelephonyManager.iccTransmitApduLogicalChannelBySlot(
|
|
|
this, slotId, channel, cla, instruction, p1, p2, p3, data
|
|
|
) as String?
|
|
|
|
|
|
+fun TelephonyManager.iccTransmitApduLogicalChannelByPort(
|
|
|
+ slotId: Int, portId: Int, channel: Int, cla: Int, instruction: Int,
|
|
|
+ p1: Int, p2: Int, p3: Int, data: String?
|
|
|
+): String? =
|
|
|
+ iccTransmitApduLogicalChannelByPort.invoke(
|
|
|
+ this, slotId, portId, channel, cla, instruction, p1, p2, p3, data
|
|
|
+ ) as String?
|
|
|
+
|
|
|
private val requestEmbeddedSubscriptionInfoListRefresh: Method by lazy {
|
|
|
SubscriptionManager::class.java.getMethod("requestEmbeddedSubscriptionInfoListRefresh", Int::class.java)
|
|
|
}
|