From e2d4ce136543cb34bbbf3a27376e6adb309ee8c0 Mon Sep 17 00:00:00 2001 From: septs Date: Wed, 5 Mar 2025 21:37:18 +0800 Subject: [PATCH] fix: iccCloseLogicalChannelByPort method signature --- .../angry/openeuicc/util/TelephonyManagerHiddenApi.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/hidden-apis-shim/src/main/java/im/angry/openeuicc/util/TelephonyManagerHiddenApi.kt b/libs/hidden-apis-shim/src/main/java/im/angry/openeuicc/util/TelephonyManagerHiddenApi.kt index 4203fea..0d42354 100644 --- a/libs/hidden-apis-shim/src/main/java/im/angry/openeuicc/util/TelephonyManagerHiddenApi.kt +++ b/libs/hidden-apis-shim/src/main/java/im/angry/openeuicc/util/TelephonyManagerHiddenApi.kt @@ -69,11 +69,13 @@ fun TelephonyManager.iccOpenLogicalChannelByPort( ): 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.iccCloseLogicalChannelBySlot(slotId: Int, channel: Int) { + iccCloseLogicalChannelBySlot.invoke(this, slotId, channel) +} -fun TelephonyManager.iccCloseLogicalChannelByPort(slotId: Int, portId: Int, channel: Int): Boolean = - iccCloseLogicalChannelByPort.invoke(this, slotId, portId, channel) as Boolean +fun TelephonyManager.iccCloseLogicalChannelByPort(slotId: Int, portId: Int, channel: Int) { + iccCloseLogicalChannelByPort.invoke(this, slotId, portId, channel) +} fun TelephonyManager.iccTransmitApduLogicalChannelBySlot( slotId: Int, channel: Int, cla: Int, instruction: Int, -- 2.45.3