Compare commits
1 commit
c343074839
...
4e8f922490
Author | SHA1 | Date | |
---|---|---|---|
4e8f922490 |
1 changed files with 15 additions and 13 deletions
|
@ -3,6 +3,7 @@ package net.typeblog.lpac_jni.impl
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import net.typeblog.lpac_jni.LpacJni
|
import net.typeblog.lpac_jni.LpacJni
|
||||||
import net.typeblog.lpac_jni.ApduInterface
|
import net.typeblog.lpac_jni.ApduInterface
|
||||||
|
import net.typeblog.lpac_jni.EuiccConfiguredAddresses
|
||||||
import net.typeblog.lpac_jni.EuiccInfo2
|
import net.typeblog.lpac_jni.EuiccInfo2
|
||||||
import net.typeblog.lpac_jni.HttpInterface
|
import net.typeblog.lpac_jni.HttpInterface
|
||||||
import net.typeblog.lpac_jni.HttpInterface.HttpResponse
|
import net.typeblog.lpac_jni.HttpInterface.HttpResponse
|
||||||
|
@ -94,7 +95,7 @@ class LocalProfileAssistantImpl(
|
||||||
LpacJni.euiccSetMss(contextHandle, mss)
|
LpacJni.euiccSetMss(contextHandle, mss)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getEuiccConfiguredAddresses() =
|
override fun getEuiccConfiguredAddresses(): EuiccConfiguredAddresses =
|
||||||
LpacJni.es10aGetEuiccConfiguredAddresses(contextHandle)
|
LpacJni.es10aGetEuiccConfiguredAddresses(contextHandle)
|
||||||
|
|
||||||
override val valid: Boolean
|
override val valid: Boolean
|
||||||
|
@ -216,7 +217,7 @@ class LocalProfileAssistantImpl(
|
||||||
callback
|
callback
|
||||||
)
|
)
|
||||||
|
|
||||||
if (res == 0) return
|
if (res != 0) {
|
||||||
// Construct the error now to store any error information we _can_ access
|
// Construct the error now to store any error information we _can_ access
|
||||||
val err = LocalProfileAssistant.ProfileDownloadException(
|
val err = LocalProfileAssistant.ProfileDownloadException(
|
||||||
lpaErrorReason = LpacJni.downloadErrCodeToString(-res),
|
lpaErrorReason = LpacJni.downloadErrCodeToString(-res),
|
||||||
|
@ -231,6 +232,7 @@ class LocalProfileAssistantImpl(
|
||||||
|
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun discoveryProfile(smds: String, imei: String?, callback: ProfileDiscoveryCallback) {
|
override fun discoveryProfile(smds: String, imei: String?, callback: ProfileDiscoveryCallback) {
|
||||||
val res = LpacJni.discoveryProfile(contextHandle, smds, imei, callback)
|
val res = LpacJni.discoveryProfile(contextHandle, smds, imei, callback)
|
||||||
|
|
Loading…
Add table
Reference in a new issue