Repository navigation
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.