Failed to download eSIM #3

Closed
opened 2023-10-08 10:49:09 +02:00 by rapdodge · 3 comments

Hello there,

I'm using OpenEUICC on my POCO X3 NFC that runs MIUI by Xiaomi.EU. And I'm using KernelSU.

I'm using 5ber.eSIM. I was trying to delete eSIM profile, and it's working. But when I've wanted to re-add the profile, it's kept have error Failed to download eSIM.

And I was wondering what happened. But there is success try, and when I've tried to do it again, same error happened again.

Maybe this log can help.
Best regards,

10-08 15:23:05.717  2171  3103 W InputDispatcher: Letterbox_top_ActivityRecord{9626db7 u0 im.angry.openeuicc/com.journeyapps.barcodescanner.CaptureActivity t3047} has FLAG_SLIPPERY. Please report this in b/157929241
10-08 15:23:10.346  2171  2410 D MIUIInput: [MotionEvent] publisher action=0x0, 4694089, channel '5f94b65 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity (server)'
10-08 15:23:10.453  2171  2410 D MIUIInput: [MotionEvent] publisher action=0x1, 4694197, channel '5f94b65 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity (server)'
10-08 15:23:14.317 19481 19481 D ProfileDownloadFragment:       at im.angry.openeuicc.ui.ProfileDownloadFragment$doDownloadProfile$2.invokeSuspend(ProfileDownloadFragment.kt:141)
10-08 15:23:14.352  2171  5550 W InputManager-JNI: Input channel object '5f94b65 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity (client)' was disposed without first being removed with the input manager!
10-08 15:23:14.361  2171  5550 D WindowManager: Input focus has changed to Window{d8b2c5f u0 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity} display=0 updateInputWindows = false
10-08 15:23:14.434  5505  5505 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1894 onStartInput(EditorInfo{EditorInfo{packageName=im.angry.openeuicc, inputType=0, inputTypeString=NULL, enableLearning=false, autoCorrection=false, autoComplete=false, imeOptions=0, privateImeOptions=null, actionName=UNSPECIFIED, actionLabel=null, initialSelStart=-1, initialSelEnd=-1, initialCapsMode=0, label=null, fieldId=-1, fieldName=null, extras=null, hintText=null, hintLocales=[]}}, false)
10-08 15:23:18.448  2171  5550 W NotificationService: Toast already killed. pkg=im.angry.openeuicc token=android.os.BinderProxy@5ed1c47
Hello there, I'm using OpenEUICC on my POCO X3 NFC that runs MIUI by Xiaomi.EU. And I'm using KernelSU. I'm using 5ber.eSIM. I was trying to delete eSIM profile, and it's working. But when I've wanted to re-add the profile, it's kept have error Failed to download eSIM. And I was wondering what happened. But there is success try, and when I've tried to do it again, same error happened again. Maybe this log can help. Best regards, ``` 10-08 15:23:05.717 2171 3103 W InputDispatcher: Letterbox_top_ActivityRecord{9626db7 u0 im.angry.openeuicc/com.journeyapps.barcodescanner.CaptureActivity t3047} has FLAG_SLIPPERY. Please report this in b/157929241 10-08 15:23:10.346 2171 2410 D MIUIInput: [MotionEvent] publisher action=0x0, 4694089, channel '5f94b65 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity (server)' 10-08 15:23:10.453 2171 2410 D MIUIInput: [MotionEvent] publisher action=0x1, 4694197, channel '5f94b65 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity (server)' 10-08 15:23:14.317 19481 19481 D ProfileDownloadFragment: at im.angry.openeuicc.ui.ProfileDownloadFragment$doDownloadProfile$2.invokeSuspend(ProfileDownloadFragment.kt:141) 10-08 15:23:14.352 2171 5550 W InputManager-JNI: Input channel object '5f94b65 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity (client)' was disposed without first being removed with the input manager! 10-08 15:23:14.361 2171 5550 D WindowManager: Input focus has changed to Window{d8b2c5f u0 im.angry.openeuicc/im.angry.openeuicc.ui.MainActivity} display=0 updateInputWindows = false 10-08 15:23:14.434 5505 5505 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1894 onStartInput(EditorInfo{EditorInfo{packageName=im.angry.openeuicc, inputType=0, inputTypeString=NULL, enableLearning=false, autoCorrection=false, autoComplete=false, imeOptions=0, privateImeOptions=null, actionName=UNSPECIFIED, actionLabel=null, initialSelStart=-1, initialSelEnd=-1, initialCapsMode=0, label=null, fieldId=-1, fieldName=null, extras=null, hintText=null, hintLocales=[]}}, false) 10-08 15:23:18.448 2171 5550 W NotificationService: Toast already killed. pkg=im.angry.openeuicc token=android.os.BinderProxy@5ed1c47 ```
Owner

What do you mean by re-adding the profile? Most eSIMs cannot be downloaded more than once, and this is the expected behavior if the eUICC server refuses to serve the profile to you (because you have downloaded it successfully before).

What do you mean by re-adding the profile? Most eSIMs cannot be downloaded more than once, and this is the expected behavior if the eUICC server refuses to serve the profile to you (because you have downloaded it successfully before).
Author

What do you mean by re-adding the profile? Most eSIMs cannot be downloaded more than once, and this is the expected behavior if the eUICC server refuses to serve the profile to you (because you have downloaded it successfully before).

It's possible to downloading it more than once (my cellular provider), it's tested with the 5ber.eSIM application. (truphone and go-esim)

Adding (using 5ber.eSIM app) -> delete (using 5ber.eSIM app) -> Adding (using OpenEUICC app) the result is failed.

Adding (using 5ber.eSIM app) -> delete (using OpenEUICC app) -> Adding (using 5ber.eSIM app) the result is success.

And after some testing (adding permissions), it's looks like OpenEUICC app need to have org.simalliance.openmobileapi.SMARTCARD permissions. It's run as expected (success).

Since both of removable eUICCs are having that permissions.

Both app permissions\

image

image

Edit (again): It's seeming doesn't work again after testing with org.simalliance.openmobileapi.SMARTCARD permissions, but with the 5ber.eSIM apps, works normally... I don't have any idea again.

But, wait, the permissions are gone...

It's gone

image

I'm sure I've already adding it. Let me try again.

Edit: I did manage to add openmobileapi permissions. But, same, still not working. But when I'm opening the app and the OpenUICC at the same time, it's working well... So, I don't have any idea what's happen, is that possible that there is key something inside the chip on the removable eUICC?

image
image
image

> What do you mean by re-adding the profile? Most eSIMs cannot be downloaded more than once, and this is the expected behavior if the eUICC server refuses to serve the profile to you (because you have downloaded it successfully before). It's possible to downloading it more than once (my cellular provider), it's tested with the 5ber.eSIM application. (truphone and go-esim) Adding (using 5ber.eSIM app) -> delete (using 5ber.eSIM app) -> Adding (using OpenEUICC app) the result is failed. Adding (using 5ber.eSIM app) -> delete (using OpenEUICC app) -> Adding (using 5ber.eSIM app) the result is success. And after some testing (adding permissions), it's looks like OpenEUICC app need to have `org.simalliance.openmobileapi.SMARTCARD` permissions. It's run as expected (success). Since both of removable eUICCs are having that permissions. <details> <summary>Both app permissions</summary>\ ![image](/attachments/24b72340-fd73-498b-889c-e14d55ad147d) ![image](/attachments/dee74784-2301-4c57-868e-52a97b8f68e5) </details> Edit (again): It's seeming doesn't work again after testing with `org.simalliance.openmobileapi.SMARTCARD` permissions, but with the 5ber.eSIM apps, works normally... I don't have any idea again. But, wait, the permissions are gone... <details> <summary>It's gone</summary> ![image](/attachments/e924b44f-b55f-4f83-aa71-c8bc76baa1a1) </details> I'm sure I've already adding it. Let me try again. Edit: I did manage to add openmobileapi permissions. But, same, still not working. But when I'm opening the app and the OpenUICC at the same time, it's working well... So, I don't have any idea what's happen, is that possible that there is key something inside the chip on the removable eUICC? <details> <summaryerror and working as expected</summary> ![image](/attachments/ea094cf4-75fe-46db-a7aa-5b900fe2d77a) ![image](/attachments/adf6c182-6e0e-4c91-a69d-d52c7168d69c) ![image](/attachments/ad736cdf-7926-49f2-b6f1-8555cd02340b) </details>
Owner

Hi, I am closing this issue because it looks like the problem stemmed from a lack of notification support (as in, the deletion event was never sent to the carrier). This should have been fixed by now on the master branch.

Hi, I am closing this issue because it looks like the problem stemmed from a lack of notification support (as in, the deletion event was never sent to the carrier). This should have been fixed by now on the master branch.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PeterCxy/OpenEUICC#3
No description provided.