ソースを参照

fix: iccCloseLogicalChannelByPort method signature (#157)

fixes #154

Reviewed-on: https://gitea.angry.im/PeterCxy/OpenEUICC/pulls/157
Co-authored-by: septs <github@septs.pw>
Co-committed-by: septs <github@septs.pw>
septs 11 ヶ月 前
コミット
1313bfd24e

+ 6 - 4
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,