|
@@ -3,10 +3,7 @@ package im.angry.openeuicc.core
|
|
|
import android.telephony.IccOpenLogicalChannelResponse
|
|
import android.telephony.IccOpenLogicalChannelResponse
|
|
|
import android.telephony.TelephonyManager
|
|
import android.telephony.TelephonyManager
|
|
|
import im.angry.openeuicc.util.*
|
|
import im.angry.openeuicc.util.*
|
|
|
-import net.typeblog.lpac_jni.LocalProfileAssistant
|
|
|
|
|
import net.typeblog.lpac_jni.ApduInterface
|
|
import net.typeblog.lpac_jni.ApduInterface
|
|
|
-import net.typeblog.lpac_jni.impl.HttpInterfaceImpl
|
|
|
|
|
-import net.typeblog.lpac_jni.impl.LocalProfileAssistantImpl
|
|
|
|
|
|
|
|
|
|
class TelephonyManagerApduInterface(
|
|
class TelephonyManagerApduInterface(
|
|
|
private val port: UiccPortInfoCompat,
|
|
private val port: UiccPortInfoCompat,
|
|
@@ -54,14 +51,4 @@ class TelephonyManagerApduInterface(
|
|
|
cla, instruction, p1, p2, p3, p4)?.decodeHex() ?: byteArrayOf()
|
|
cla, instruction, p1, p2, p3, p4)?.decodeHex() ?: byteArrayOf()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-class TelephonyManagerChannel(
|
|
|
|
|
- port: UiccPortInfoCompat,
|
|
|
|
|
- private val tm: TelephonyManager
|
|
|
|
|
-) : EuiccChannel(port) {
|
|
|
|
|
- override val lpa: LocalProfileAssistant = LocalProfileAssistantImpl(
|
|
|
|
|
- TelephonyManagerApduInterface(port, tm),
|
|
|
|
|
- HttpInterfaceImpl()
|
|
|
|
|
- )
|
|
|
|
|
}
|
|
}
|