Compare commits

...

2 commits

Author SHA1 Message Date
8de0d86895 ProfileDownloadFragment: Wait for euiccChannelManager to load
All checks were successful
/ build-debug (push) Successful in 4m10s
2024-09-29 15:14:43 -04:00
64a350d271 lpac-jni: Force reduce connect/read timeout for notification requests 2024-09-29 15:12:18 -04:00
2 changed files with 8 additions and 0 deletions

View file

@ -159,6 +159,8 @@ class ProfileDownloadFragment : BaseMaterialDialogFragment(),
)
lifecycleScope.launch(Dispatchers.IO) {
ensureEuiccChannelManager()
// Fetch remaining NVRAM
val str = channel.lpa.euiccInfo2?.freeNvram?.also {
freeNvram = it

View file

@ -34,6 +34,12 @@ class HttpInterfaceImpl: HttpInterface {
val conn = parsedUrl.openConnection() as HttpsURLConnection
conn.connectTimeout = 2000
if (url.contains("handleNotification")) {
conn.connectTimeout = 1000
conn.readTimeout = 1000
}
conn.sslSocketFactory = sslContext.socketFactory
conn.requestMethod = "POST"
conn.doInput = true