Compare commits
No commits in common. "d3a04b94a97eb2b81a864cc120bba3b100334308" and "ddc421dae7ebc5de421e030a854376760d1b672b" have entirely different histories.
d3a04b94a9
...
ddc421dae7
6 changed files with 2 additions and 24 deletions
|
@ -41,10 +41,7 @@ open class DefaultEuiccChannelFactory(protected val context: Context) : EuiccCha
|
|||
context.preferenceRepository.verboseLoggingFlow
|
||||
),
|
||||
context.preferenceRepository.verboseLoggingFlow
|
||||
).also {
|
||||
Log.i(DefaultEuiccChannelManager.TAG, "Is OMAPI channel, setting MSS to 60")
|
||||
it.lpa.setEs10xMss(60)
|
||||
}
|
||||
)
|
||||
} catch (e: IllegalArgumentException) {
|
||||
// Failed
|
||||
Log.w(
|
||||
|
|
|
@ -8,13 +8,6 @@ interface LocalProfileAssistant {
|
|||
// Extended EuiccInfo for use with LUIs, containing information such as firmware version
|
||||
val euiccInfo2: EuiccInfo2?
|
||||
|
||||
/**
|
||||
* Set the max segment size (mss) for all es10x commands. This can help with removable
|
||||
* eUICCs that may run at a baud rate too fast for the modem.
|
||||
* By default, this is set to 60 by libeuicc.
|
||||
*/
|
||||
fun setEs10xMss(mss: Byte)
|
||||
|
||||
// All blocking functions in this class assume that they are executed on non-Main threads
|
||||
// The IO context in Kotlin's coroutine library is recommended.
|
||||
fun enableProfile(iccid: String, refresh: Boolean = true): Boolean
|
||||
|
|
|
@ -9,7 +9,6 @@ internal object LpacJni {
|
|||
external fun destroyContext(handle: Long)
|
||||
|
||||
external fun euiccInit(handle: Long): Int
|
||||
external fun euiccSetMss(handle: Long, mss: Byte)
|
||||
external fun euiccFini(handle: Long)
|
||||
|
||||
// es10c
|
||||
|
|
|
@ -30,10 +30,6 @@ class LocalProfileAssistantImpl(
|
|||
httpInterface.usePublicKeyIds(pkids)
|
||||
}
|
||||
|
||||
override fun setEs10xMss(mss: Byte) {
|
||||
LpacJni.euiccSetMss(contextHandle, mss)
|
||||
}
|
||||
|
||||
override val valid: Boolean
|
||||
get() = !finalized && apduInterface.valid && try {
|
||||
// If we can read both eID and euiccInfo2 properly, we are likely looking at
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a5a0516f084936e7e87cf7420fb99283fa3052ef
|
||||
Subproject commit 0011ea6cc4c045c84f7aac839c1cce7804422355
|
|
@ -75,13 +75,6 @@ Java_net_typeblog_lpac_1jni_LpacJni_euiccFini(JNIEnv *env, jobject thiz, jlong h
|
|||
euicc_fini(ctx);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_net_typeblog_lpac_1jni_LpacJni_euiccSetMss(JNIEnv *env, jobject thiz, jlong handle,
|
||||
jbyte mss) {
|
||||
struct euicc_ctx *ctx = (struct euicc_ctx *) handle;
|
||||
ctx->es10x_mss = (uint8_t) mss;
|
||||
}
|
||||
|
||||
jstring toJString(JNIEnv *env, const char *pat) {
|
||||
jbyteArray bytes = NULL;
|
||||
jstring encoding = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue