Repository navigation
Releases
0.1.4
Library
implementation("io.github.munkchunk:android-passport-reader:0.1.4")Changed
-
Chip Authentication and Active Authentication are held to the keys the issuer signed. Each protocol proves that the chip holds the private key for the public key it presented. Now
chipAuthenticationandactiveAuthenticationsucceed only when that key is in a file Passive Authentication verified: DG14 or DG15 exactly as EF.SOd signs it (EF.CardSecurity for PACE-CAM, as before), with EF.SOd's signature and certificate chain both holding.FAILEDwhen the key's file is not as EF.SOd signs it, or EF.SOd's signature does not verify. Active Authentication then sends no challenge.NOT_CHECKEDwhen the signature holds but no chain to a trusted CSCA can be built.- Otherwise, the protocol's own outcome, as before.
Chip Authentication runs during the read, so only a success is held to the signed DG14 afterwards; a Chip Authentication that failed or never ran keeps its own verdict. Neither check relies on the chip answering a second read of a file the same way as the first.
-
When PACE-CAM was checked, its verdict decides
chipAuthentication, and its reason names a DG14 failure if there was one. When PACE-CAM could not be checked, DG14's verdict stands.
A document whose chain does not build, for instance from one of the six countries with no trust anchor in the bundled list, can no longer pass these two checks: a key the chip proves is reported as NOT_CHECKED rather than SUCCEEDED. If your app treats them as required, decide how it handles that.
No public API changes. The bundled CSCA certificates are unchanged (BSI master list of 2026-10-01).
Sample app
passport-reader-sample-0.1.4.apk. It needs an NFC phone running Android 10 or later and has no network access. It installs over 0.1.3.
Check the download:
SHA-256 05d706e9edc2f355a42df8375b75b38e7326bdf047485f45ee59aa329c816f22
It is signed with this certificate (apksigner verify --print-certs):
CN=Iain Griffiths
SHA-256 04:C4:F9:CF:49:A5:E7:26:0D:65:60:F9:FB:09:CA:9D:82:02:A3:34:53:27:F8:DE:B9:18:8F:57:93:11:9D:4A
Known limitations
TD3 passports only; six countries have no trust anchor in the bundled CSCA list; Terminal Authentication is not reachable through the API yet; Active Authentication and PACE-CAM have not yet run against a real chip. See the README.
0.1.3
Library
implementation("io.github.munkchunk:android-passport-reader:0.1.3")Changed
- UK passports issued since late August 2026 now pass the certificate chain check. The UK began signing passports under a new Country Signing Authority (CSCA) certificate on 2026-08-24, and 0.1.2 bundled a CSCA list from before then. Those passports' document signature and every data group hash verified, but
certificateChainfailed with "No chain to a trusted CSCA". The bundled certificates now come from the BSI master list of 2026-10-01 (528 trust anchors, was 509; 81 link certificates, was 79), which includes the new UK root and its link from the previous one. Other countries' additions and withdrawals in that list come with it.
No code or public API changes.
If your app supplies its own CSCA certificates, add the new UK root to them: SHA-256 73:7C:E2:48:B6:2D:8B:6D:C1:C9:E3:AA:A8:B9:37:33:44:06:BA:C1:7B:B3:72:35:C1:C5:02:81:E6:AD:7E:DB.
Sample app
passport-reader-sample-0.1.3.apk. It needs an NFC phone running Android 10 or later and has no network access. It installs over 0.1.2.
Check the download:
SHA-256 fea3b679daa4e73d0d94dba7f56aea0df78a513407524975ea4626bbf864f6e6
It is signed with this certificate (apksigner verify --print-certs):
CN=Iain Griffiths
SHA-256 04:C4:F9:CF:49:A5:E7:26:0D:65:60:F9:FB:09:CA:9D:82:02:A3:34:53:27:F8:DE:B9:18:8F:57:93:11:9D:4A
Known limitations
TD3 passports only; six countries have no trust anchor in the bundled CSCA list; Terminal Authentication is not reachable through the API yet. See the README.
0.1.2
Library
implementation("io.github.munkchunk:android-passport-reader:0.1.2")Changed
- Expired passports now pass the certificate chain check. The chain was checked at today's date, so a passport whose document signer certificate had since expired, the usual state of an expired passport, failed
certificateChain. It is now judged at the signing time EF.SOd records, or, when it records none, at the document signer certificate's start date, and never later than now. A chain that fails then is tried again at now. EF.CardSecurity is judged the same way. The trade-off is that a document signer certificate's expiry is no longer enforced; SECURITY.md anddocs/architecture.mdset it out. - The
certificateChainreason text has changed. It now says which time decided it: "Chains to a trusted CSCA at signing time", "... when the document signer was issued" or "... now", and the same for "No chain to a trusted CSCA". Reasons are diagnostics, but an app that compared them as strings needs updating. - R8 can now shrink and obfuscate the library. Its consumer rules kept every class in the library; they now keep only the
CREATORfield of its Parcelable types. Apps that minify get a smaller APK, and need no rules of their own. - The reader manager logs through the library's logger, under the fixed tag
NfcPassportReaderManager, like the rest of the library.
No public API changes.
Sample app
passport-reader-sample-0.1.2.apk. It needs an NFC phone running Android 10 or later and has no network access. It installs over 0.1.1.
Check the download:
SHA-256 eec3e5b74a3006204341a13230e22858a5d464c2031c23db1599c5e5b470164a
It is signed with this certificate (apksigner verify --print-certs):
CN=Iain Griffiths
SHA-256 04:C4:F9:CF:49:A5:E7:26:0D:65:60:F9:FB:09:CA:9D:82:02:A3:34:53:27:F8:DE:B9:18:8F:57:93:11:9D:4A
Known limitations
TD3 passports only; six countries have no trust anchor in the bundled CSCA list; Terminal Authentication is not reachable through the API yet. See the README.
0.1.1
The first release of the library and the sample app.
Library
implementation("io.github.munkchunk:android-passport-reader:0.1.1")On Maven Central, for minSdk 29 and up. 0.1.0 was published to Central as passport-reader; use the coordinate above. The README shows the one packaging line an app needs.
Reads the chip in a TD3 ePassport over BAC or PACE, with chip authentication where the chip offers it, and returns the holder's details, the DG2 face image and a verification report: the document signature, the chain to a trusted CSCA, every data-group hash, and the chip-authenticity checks.
Sample app
passport-reader-sample-0.1.1.apk reads a passport and shows everything the chip holds, with the MRZ typed in or scanned by the camera. It needs an NFC phone running Android 10 or later and has no network access.
Check the download:
SHA-256 c07c7f32da27136e2cd017f50dbb9fd01d1a20d697645fcf126cbe673c1a0f3f
It is signed with this certificate (apksigner verify --print-certs):
CN=Iain Griffiths
SHA-256 04:C4:F9:CF:49:A5:E7:26:0D:65:60:F9:FB:09:CA:9D:82:02:A3:34:53:27:F8:DE:B9:18:8F:57:93:11:9D:4A
Known limitations
TD3 passports only; six countries have no trust anchor in the bundled CSCA list; Terminal Authentication is not reachable through the API yet. See the README.