mirror of
https://github.com/creamlike1024/EasyLPAC.git
synced 2026-04-25 21:05:50 +03:00
[GH-ISSUE #34] lpac error euicc_init when using thingsmobile.com card #14
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/EasyLPAC#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tayfundogdas on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/creamlike1024/EasyLPAC/issues/34
I am getting lpac error euicc_init when using thingsmobile.com card . As I understand I need to go to Settings -> lpac ISD-R AID and type to set thingsmobile's custom AID, then retry . I don't know this information. How can I get this AID? Is there a way to send APDU commands to card and get AID?
Thanks for your help.
@creamlike1024 commented on GitHub (Mar 11, 2025):
Decompiling their app can get AID(if possible).
The AID format is defined in the SGP.02 specification, and the GSMA standard ISD-R AID is
A0 00 05 59 10 FF FF FF 89 00 01 00. If lucky enough, the manufacturer may only change the last two bytes, so traverse the AID within a limited range is possible.You can send SELECT APDU command to check if AID is valid. For euicc, it should return
61xx. Note that you should be looking for ISD-R AID, not all AID are ISD-R AID.SELECT is a Case 3 APDU, its struct is
CLA INS P1 P2 Lc Data.0x0, lower 4 bits are channel, usually using logical channel 1 so CLA is0x010xA40x04means select by AID, P2 is0x00This is a Python script for sending SELECT APDU, using GSMA standard AID returns 0x6121 on my card. Perhaps it can be rewritten to traverse AID.
@tayfundogdas commented on GitHub (Mar 11, 2025):
Thanks @creamlike1024 for your great response. I see your point. I will give a try when I have some time.
By the way, since this app using lpac project for low level operations, would it be possible, lpac provide this AIDs fetching with some info classes?
In future maybe you could add this AID finding logic to settings tab so that people able to use their sims from all vendor.
@creamlike1024 commented on GitHub (Mar 12, 2025):
Please make sure your card is compatible with SGP.22, IoT does not use this specification.
@tayfundogdas commented on GitHub (Mar 12, 2025):
Hi @creamlike1024 ,
Thank you for your comments, yes the card is an eUICC card, "All form factors (2FF, 3FF, 4FF, MFF2) are available with eUICC (eSIM) functions to ensure maximum flexibility and autonomy from network operators." It stated on their website, it also recognized in regular cell phones. Would it be possible, lpac provide this AIDs fetching with some info classes?
Best regards.
@creamlike1024 commented on GitHub (Mar 12, 2025):
This cannot be done, only SGP.22 card is supported by lpac.