I have managed to get the latest version of lpac with dynamic drivers working by making some corrections for SailfishOS. The changes made are available in this repository GitHub - juanro49/lpac: C-based eUICC LPA and I also created a PR in the main repository fix gbinder driver compile and dynamic drivers detection for SailfishOS by juanro49 · Pull Request #411 · estkme-group/lpac · GitHub
[defaultuser@Xperia10V ~]$ whereis lpac
lpac: /usr/local/bin/lpac
[defaultuser@Xperia10V ~]$ LPAC_APDU_DEBUG=true LPAC_APDU_GBINDER_DEBUG=true LPAC_APDU=gbinder /usr/local/bin/lpac version | jq .
{
"type": "lpa",
"payload": {
"code": 0,
"message": "success",
"data": "2.3.0.r440.ce4abfaf75d2"
}
}
[defaultuser@Xperia10V ~]$ LPAC_APDU_DEBUG=true LPAC_APDU_GBINDER_DEBUG=true LPAC_APDU=gbinder /usr/local/bin/lpac driver list | jq .
{
"type": "driver",
"payload": {
"LPAC_APDU": [
"stdio",
"at_csim",
"pcsc",
"at",
"gbinder_hidl"
],
"LPAC_HTTP": [
"curl",
"stdio"
]
}
}
[defaultuser@Xperia10V ~]$ LPAC_APDU_DEBUG=true LPAC_APDU_GBINDER_DEBUG=true LPAC_APDU=gbinder /usr/local/bin/lpac chip info | jq .
Attempting to connect to android.hardware.radio@1.0::IRadio/slot1
Failed to open APDU logical channel: 17
Attempting to connect to android.hardware.radio@1.0::IRadio/slot2
Failed to open APDU logical channel: 38
{
"type": "lpa",
"payload": {
"code": -1,
"message": "euicc_init",
"data": ""
}
}
[defaultuser@Xperia10V ~]$ LPAC_APDU_DEBUG=true LPAC_APDU_GBINDER_DEBUG=true LPAC_APDU=pcsc /usr/local/bin/lpac driver apdu list | jq .
{
"type": "driver",
"payload": {
"env": "LPAC_APDU_PCSC_DRV_IFID",
"data": [
{
"env": "0",
"name": "Alcor Micro AU9540 00 00"
}
]
}
}
[defaultuser@Xperia10V ~]$