lpac: update to 2.2.1, add support for custom ISD-R AID
authorDominik Borghorst <git@borghorst.net>
Thu, 16 Jan 2025 19:02:42 +0000 (20:02 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 19 Jan 2025 13:31:09 +0000 (14:31 +0100)
Updated lpac to 2.2.1 and added support for custom ISD-R AIDs.
This allows for a broader range of esim cards with non standard AIDs to be supported.
See https://github.com/estkme-group/lpac/pull/181 for additional info.

Signed-off-by: Dominik Borghorst <git@borghorst.net>
utils/lpac/Makefile
utils/lpac/files/lpac.sh
utils/lpac/files/lpac.uci

index f64e547a03e6a786f193eec79d829bf6231ca998..6afc124edfeca8c004ac0b2e3e2836708799eee2 100644 (file)
@@ -3,12 +3,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lpac
-PKG_VERSION:=2.1.0
-PKG_RELEASE:=2
+PKG_VERSION:=2.2.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/estkme-group/lpac/tar.gz/refs/tags/v$(PKG_VERSION)?
-PKG_HASH:=532c5daef6888fe91b0838e8e23bf23ea2f5f39cbb755c008676b9cdfbd833fb
+PKG_HASH:=3d87080a625b10430eebb82f89e2d24e16a84a8435a9c40b3718fd88c82028ba
 
 PKG_MAINTAINER:=David Bauer <david.bauer@uniberg.com>
 PKG_LICENSE:=AGPL-3.0-only LGPL-2.0-only
index f69dda8ff12c152f29638c8cc9b999be59462e93..1fde307fd7ba5e30250f4363754f0bd8c9fd1228 100644 (file)
@@ -8,6 +8,8 @@ APDU_DEBUG="$(uci_get lpac global apdu_debug 0)"
 HTTP_BACKEND="$(uci_get lpac global http_backend curl)"
 HTTP_DEBUG="$(uci_get lpac global http_debug 0)"
 
+CUSTOM_ISD_R_AID="$(uci_get lpac global custom_isd_r_aid A0000005591010FFFFFFFF8900000100)"
+
 export LPAC_HTTP="$HTTP_BACKEND"
 if [ "$HTTP_DEBUG" -eq 1 ]; then
     export LIBEUICC_DEBUG_HTTP="1"
@@ -30,4 +32,6 @@ elif [ "$APDU_BACKEND" = "uqmi" ]; then
     export LPAC_QMI_DEBUG="$UQMI_DEBUG"
 fi
 
+export LPAC_CUSTOM_ISD_R_AID="$CUSTOM_ISD_R_AID"
+
 /usr/lib/lpac "$@"
index 79cae9e9c237b4e9ce0a72508d335130c28ac559..040a80edbba0da5539a79846964fa2ca0e3a3afe 100644 (file)
@@ -3,6 +3,7 @@ config global global
        option          http_backend    'curl'
        option          apdu_debug      '0'
        option          http_debug      '0'
+       option          custom_isd_r_aid        'A0000005591010FFFFFFFF8900000100'
 
 config at at
        option          device          '/dev/ttyUSB2'